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/DropForeignKeyCommand.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 | ↵ | |||
2 | {↵ | |||
3 | public void run() {↵ | 3 | public void run()↵ | |
4 | ↵ | |||
4 | {↵ | |||
5 | GUIUtils.processOnSwingEventThread(new Runnable() {↵ | 5 | GUIUtils.processOnSwingEventThread(new Runnable()↵ | |
6 | public void run() {↵ | |||
7 | ↵ | |||
6 | {↵ | |||
7 | public void run()↵ | |||
8 | {↵ | |||
8 | customDialog = ↵ | 9 | customDialog =↵ | |
9 | new DefaultDropDialog(_dropIndexInfo, DefaultDropDialog.DIALOG_TYPE_INDEX);↵ | 10 | new DefaultDropDialog(_foreignKeyInfo, DefaultDropDialog.DIALOG_TYPE_↵ | |
10 | ↵ | 11 | FOREIGN_KEY);↵ | |
11 | customDialog.addExecuteListener(new ExecuteListener());↵ | 12 | customDialog.addExecuteListener(new ExecuteListener());↵ | |
12 | customDialog.addEditSQLListener(new EditSQLListener(customDialog));↵ | 13 | customDialog.addEditSQLListener(new EditSQLListener(customDialog));↵ | |
13 | customDialog.addShowSQLListener(new ShowSQLListener(i18n.SHOWSQL_DIALOG_TITLE, customDialog));↵ | 14 | customDialog.addShowSQLListener(new ShowSQLListener(i18n.SHOWSQL_DIALOG_TITLE, customDialog));↵ | |
14 | customDialog.setLocationRelativeTo(_session.getApplication().getMainFrame());↵ | 15 | customDialog.setLocationRelativeTo(_session.getApplication().getMainFrame());↵ | |
15 | customDialog.setVisible(true);↵ | 16 | customDialog.setVisible(true);↵ | |
16 | }↵ | |||
17 | });↵ | |||
18 | }↵ | |||
19 | ↵ | 17 | }↵ | |
18 | });↵ | |||
19 | }↵ | |||
20 | }); | 20 | }); | |
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.ForeignKeyInfo[] of variable _foreignKeyInfo |
2 | Type net.sourceforge.squirrel_sql.plugins.refactoring.commands.DropIndexTableCommand.i18n does not match with type net.sourceforge.squirrel_sql.plugins.refactoring.commands.DropForeignKeyCommand.i18n |