for (Component c : _tabbedExecutionsPanel.getComponents())
{
if (c != _tabbedExecutionsPanel.getSelectedComponent())
_tabbedExecutionsPanel.remove(c);
}
if (wb != null) {
for (String name : wb.getSheetNames()) {
sheetName.addItem(name);
}
}
Clone fragments detected by clone detection tool
File path: /sql12/plugins/postgres/src/net/sourceforge/squirrel_sql/plugins/postgres/explain/ExplainExecuterPanel.java
|
|
File path: /sql12/plugins/dataimport/src/net/sourceforge/squirrel_sql/plugins/dataimport/importer/excel/ExcelSettingsPanel.java
|
Method name: void actionPerformed(ActionEvent)
|
|
Method name: void init()
|
Number of AST nodes: 3
|
|
Number of AST nodes: 3
|
|
1 | for (Component c : _tabbedExecutionsPanel.getComponents())↵ | | |
|
2 | {↵ | | |
|
3 | if (c != _tabbedExecutionsPanel.getSelectedComponent↵ | | 1 | if (wb != null) {↵
|
4 | ())
↵ | | 2 | for (String name : wb.getSheetNames()) {↵
|
5 | _tabbedExecutionsPanel.remove(c);↵ | | 3 | ↵
|
6 | ↵ | | 4 | sheetName.addItem(name);↵
|
| | | 5 | }↵
|
7 | } | | 6 | }
|
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 |