customDialog = new AddAutoIncrementDialog(columnToModify); customDialog.addExecuteListener(new ExecuteListener()); customDialog.addEditSQLListener(new EditSQLListener(customDialog)); customDialog.addShowSQLListener(new ShowSQLListener(i18n.SHOWSQL_DIALOG_TITLE, customDialog)); customDialog.setLocationRelativeTo(_session.getApplication().getMainFrame()); customDialog.setVisible(true);
_mainDialog = new VacuumTableDialog(tableinfos); _mainDialog.addExecuteListener(new ExecuteListener()); _mainDialog.addEditSQLListener(new EditSQLListener(_mainDialog)); _mainDialog.addShowSQLListener(new ShowSQLListener(i18n.SHOWSQL_DIALOG_TITLE, _mainDialog)); _mainDialog.setLocationRelativeTo(_session.getApplication().getMainFrame()); _mainDialog.setVisible(true);
Clone fragments detected by clone detection tool
File path: /sql12/plugins/refactoring/src/net/sourceforge/squirrel_sql/plugins/refactoring/commands/AddAutoIncrementCommand.java File path: /sql12/plugins/postgres/src/net/sourceforge/squirrel_sql/plugins/postgres/commands/VacuumTableCommand.java
Method name: void run() Method name: void showDialog(ITableInfo[])
Number of AST nodes: 6 Number of AST nodes: 6
1
customDialog = new AddAutoIncrementDialog(columnToModify);
1
_mainDialog = new 
2
				custom
2
VacuumTableDialog(tableinfos);
3
Dialog.addExecuteListener(new ExecuteListener());
3
        _mainDialog.addExecuteListener(new ExecuteListener());
4
				customDialog.addEditSQLListener(new EditSQLListener(customDialog));
4
        _mainDialog.addEditSQLListener(new EditSQLListener(_mainDialog));
5
				customDialog.addShowSQLListener(new ShowSQLListener(i18n.SHOWSQL_DIALOG_TITLE, customDialog));
5
        _mainDialog.addShowSQLListener(new ShowSQLListener(i18n.SHOWSQL_DIALOG_TITLE, _mainDialog));
6
				customDialog.setLocationRelativeTo(_session.getApplication().getMainFrame());
6
        _mainDialog.setLocationRelativeTo(_session.getApplication().getMainFrame());
7
				customDialog.setVisible(true);
7
        _mainDialog.setVisible(true);
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 locationClones are in different classes
Number of node comparisons0