try { IExtension extension = pluginHandler.getExtension((String) data .getData("Plugin.ID")); importer = (AbstractMailboxImporter) extension .instanciateExtension(null); String description = importer.getDescription(); descriptionLabel.setText(description); } catch (PluginException e) { if (Logging.DEBUG) { e.printStackTrace(); } }
IExtension extension = e.nextElement(); try { IAttachmentHandler attachmentHandler = (IAttachmentHandler) extension .instanciateExtension(null); attachmentHandler.execute(new AttachmentContext( tempFile, header)); attachmentHandlerExecuted &= true; } catch (PluginException e1) { LOG.severe("Error while loading plugin: " + e1.getMessage()); if (Logging.DEBUG) e1.printStackTrace(); }
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/config/mailboximport/PluginStep.java File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/message/command/OpenAttachmentCommand.java
Method name: void valueChanged(ListSelectionEvent) Method name: void updateGUI()
Number of AST nodes: 5 Number of AST nodes: 5
1
try {
2
			IExtension extension = pluginHandler.getExtension((String) data
1
IExtension extension = 
3
					.getData("Plugin.ID"));
4
			importer = (AbstractMailboxImport
2
e.nextElement();
3
					try {
5
er) extension
4
						IAttachmentHandler attachmentHandler = (IAttachmentHandler) extension
6
					.instanciateExtension(null);
5
								.instanciateExtension(null);
7
			String description = importer.getDescription();
6
			
8
			descriptionLabel.setText(description);
7
			attachmentHandler.execute(new AttachmentContext(
8
								tempFile, header));
9
						attachmentHandlerExecuted &= true;
9
		} catch (PluginException e) {
10
					} catch (PluginException e1) {
10
			
11
						LOG.severe("Error while loading plugin: "
12
								+ e1.getMessage());
11
if (Logging.DEBUG) {
13
						if (Logging.DEBUG)
12
				e.printStackTrace();
14
							e1.printStackTrace();
13
			}
15
			
14
		}
16
		}
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.1
Clones locationClones are in different classes
Number of node comparisons1