TreePath path = tree.getPathForRow(row);
PluginNode node = (PluginNode) path.getLastPathComponent();
if (node.isCategory()) {
return;
}
// enable/disable tree node
node.setEnabled(((Boolean) value).booleanValue());
try {
IExtension extension = pluginHandler.getExtension((String) data
.getData("Plugin.ID"));
importer = (AbstractMailboxImporter) extension
.instanciateExtension(args);
} catch (PluginException e1) {
if (Logging.DEBUG)
e1.printStackTrace();
return;
}
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/plugin/PluginTreeTableModel.java
|
|
File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/config/mailboximport/MailboxImporter.java
|
Method name: void setValueAt(Object, int, int)
|
|
Method name: void wizardFinished(WizardModelEvent)
|
Number of AST nodes: 5
|
|
Number of AST nodes: 3
|
|
1 | TreePath path = tree.getPathForRow(row);↵ | | |
|
2 | PluginNode node = (PluginNode) path.getLastPathComponent();↵ | | |
|
|
3 | if (node.isCategory()) {↵ | | |
|
4 | return;↵ | | |
|
5 | }↵ | | |
|
|
6 | // enable/disable tree node↵ | | |
|
7 | node.setEnabled(((Boolean) value).booleanValue()); | | 1 | try {↵
|
| | | 2 | IExtension extension = pluginHandler.getExtension((String) data↵
|
| | | 3 | .getData("Plugin.ID"));↵
|
|
| | | 4 | importer = (AbstractMailboxImporter) extension↵
|
| | | 5 | .instanciateExtension(args);↵
|
| | | 6 | } catch (PluginException e1) {↵
|
| | | 7 | if (Logging.DEBUG)↵
|
| | | 8 | e1.printStackTrace();↵
|
|
| | | 9 | return;↵
|
| | | 10 | }
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 0 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | Clones are in different classes |
Number of node comparisons | 1 |