try { IExtensionHandler handler = PluginManager.getInstance() .getExtensionHandler( IExtensionHandlerKeys.ORG_COLUMBA_CORE_HTMLVIEWER); IExtension extension = handler.getExtension(pluginId); if (extension == null) return null; plugin = (IHTMLViewerPlugin) extension.instanciateExtension(null); return plugin; } catch (PluginHandlerNotFoundException e) { LOG.severe("Error while loading viewer plugin: " + e.getMessage()); if (Logging.DEBUG) e.printStackTrace(); } catch (PluginException e) { LOG.severe("Error while loading viewer plugin: " + e.getMessage()); if (Logging.DEBUG) e.printStackTrace();
try { IExtensionHandler handler = PluginManager.getInstance() .getExtensionHandler( IExtensionHandlerKeys.ORG_COLUMBA_CORE_HTMLVIEWER); IExtension extension = handler.getExtension(pluginId); if (extension == null) return null; plugin = (IHTMLViewerPlugin) extension.instanciateExtension(null); return plugin; } catch (PluginHandlerNotFoundException e) { LOG.severe("Error while loading viewer plugin: " + e.getMessage()); if (Logging.DEBUG) e.printStackTrace(); } catch (PluginException e) { LOG.severe("Error while loading viewer plugin: " + e.getMessage()); if (Logging.DEBUG) e.printStackTrace();
Clone fragments detected by clone detection tool
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: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
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
		
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones location
Number of node comparisons0