File path: /sql12/plugins/refactoring/src/net/sourceforge/squirrel_sql/plugins/refactoring/commands/DropIndexTableCommand.java | File path: /sql12/plugins/refactoring/src/net/sourceforge/squirrel_sql/plugins/refactoring/commands/DropSequenceCommand.java | |||
Method name: void showCustomDialog()
|
Method name: void showCustomDialog()
|
|||
Number of AST nodes: 1 | Number of AST nodes: 1 | |||
1 | _session.getApplication().getThreadPool().addTask(new Runnable() {↵ | 1 | _session.getApplication().getThreadPool().addTask(new Runnable() {↵ | |
2 | public void run() {↵ | 2 | public void run() {↵ | |
3 | GUIUtils.processOnSwingEventThread(new Runnable() {↵ | 3 | GUIUtils.processOnSwingEventThread(new Runnable() {↵ | |
4 | public void run() {↵ | 4 | public void run() {↵ | |
5 | customDialog = new DefaultDropDialog(_dropIndexInfo, DefaultDropDialog.DIALOG_TYPE_INDEX);↵ | 5 | customDialog = new DefaultDropDialog(_info, DefaultDropDialog.DIALOG_TYPE_SEQUENCE);↵ | |
6 | customDialog.addExecuteListener(new ExecuteListener());↵ | 6 | customDialog.addExecuteListener(new ExecuteListener());↵ | |
7 | customDialog.addEditSQLListener(new EditSQLListener(customDialog));↵ | 7 | customDialog.addEditSQLListener(new EditSQLListener(customDialog));↵ | |
8 | customDialog.addShowSQLListener(new ShowSQLListener(i18n.SHOWSQL_DIALOG_TITLE, customDialog));↵ | 8 | customDialog.addShowSQLListener(new ShowSQLListener(i18n.SHOWSQL_DIALOG_TITLE, customDialog));↵ | |
9 | customDialog.setLocationRelativeTo(_session.getApplication().getMainFrame());↵ | 9 | customDialog.setLocationRelativeTo(_session.getApplication().getMainFrame());↵ | |
10 | customDialog.setVisible(true);↵ | 10 | customDialog.setVisible(true);↵ | |
11 | }↵ | 11 | }↵ | |
12 | });↵ | 12 | });↵ | |
13 | }↵ | 13 | }↵ | |
14 | }); | 14 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 1 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 1 |
Number of mapped statements | 1 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | _session.getApplication().getThreadPool().addTask(new Runnable() {...}); |
| 1 | _session.getApplication().getThreadPool().addTask(new Runnable() {...}); |
Row | Violation |
---|---|
1 | Type net.sourceforge.squirrel_sql.fw.sql.IndexInfo[] of variable _dropIndexInfo does not match with type net.sourceforge.squirrel_sql.fw.sql.IDatabaseObjectInfo[] of variable _info |
2 | Type net.sourceforge.squirrel_sql.plugins.refactoring.commands.DropIndexTableCommand.i18n does not match with type net.sourceforge.squirrel_sql.plugins.refactoring.commands.DropSequenceCommand.i18n |