File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/htmlviewer/HTMLViewerFactory.java | File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/message/viewer/TextViewer.java | |||
Method name: IHTMLViewerPlugin createHTMLViewerPluginInstance(String)
|
Method name: IHTMLViewerPlugin createHTMLViewerPluginInstance(String)
|
|||
Number of AST nodes: 7 | Number of AST nodes: 7 | |||
1 | try {↵ | 1 | try {↵ | |
2 | IExtensionHandler handler = PluginManager.getInstance()↵ | 2 | IExtensionHandler handler = PluginManager.getInstance()↵ | |
3 | .getExtensionHandler(↵ | 3 | .getExtensionHandler(↵ | |
4 | IExtensionHandlerKeys.ORG_COLUMBA_CORE_HTMLVIEWER);↵ | 4 | IExtensionHandlerKeys.ORG_COLUMBA_CORE_HTMLVIEWER);↵ | |
5 | IExtension extension = handler.getExtension(pluginId);↵ | 5 | IExtension extension = handler.getExtension(pluginId);↵ | |
6 | if (extension == null)↵ | 6 | if (extension == null)↵ | |
7 | return null;↵ | 7 | return null;↵ | |
8 | plugin = (IHTMLViewerPlugin) extension.instanciateExtension(null);↵ | 8 | plugin = (IHTMLViewerPlugin) extension.instanciateExtension(null);↵ | |
9 | return plugin;↵ | 9 | return plugin;↵ | |
10 | } catch (PluginHandlerNotFoundException e) {↵ | 10 | } catch (PluginHandlerNotFoundException e) {↵ | |
11 | LOG.severe("Error while loading viewer plugin: " + e.getMessage());↵ | 11 | LOG.severe("Error while loading viewer plugin: " + e.getMessage());↵ | |
12 | if (Logging.DEBUG)↵ | 12 | if (Logging.DEBUG)↵ | |
13 | e.printStackTrace();↵ | 13 | e.printStackTrace();↵ | |
14 | } catch (PluginException e) {↵ | 14 | } catch (PluginException e) {↵ | |
15 | LOG.severe("Error while loading viewer plugin: " + e.getMessage());↵ | 15 | LOG.severe("Error while loading viewer plugin: " + e.getMessage());↵ | |
16 | if (Logging.DEBUG)↵ | 16 | if (Logging.DEBUG)↵ | |
17 | e.printStackTrace();↵ | 17 | e.printStackTrace();↵ | |
18 | } | 18 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.8 |
Clones location | Clones are in different classes |
Number of node comparisons | 29 |
Number of mapped statements | 7 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 1.1 |
Clone type | Type 1 |
ID | Statement | ID | Statement | |
---|---|---|---|---|
2 | try | 2 | try | |
3 | IExtensionHandler handler = PluginManager.getInstance().getExtensionHandler(IExtensionHandlerKeys.ORG_COLUMBA_CORE_HTMLVIEWER); | 3 | IExtensionHandler handler = PluginManager.getInstance().getExtensionHandler(IExtensionHandlerKeys.ORG_COLUMBA_CORE_HTMLVIEWER); | |
4 | IExtension extension = handler.getExtension(pluginId); | 4 | IExtension extension = handler.getExtension(pluginId); | |
5 | if (extension == null) | 5 | if (extension == null) | |
6 | return null; | 6 | return null; | |
7 | plugin = (IHTMLViewerPlugin)extension.instanciateExtension(null); | 7 | plugin = (IHTMLViewerPlugin)extension.instanciateExtension(null); | |
8 | return plugin; | 8 | return plugin; |
Row | Violation |
---|