File path: /sql12/plugins/refactoring/src/net/sourceforge/squirrel_sql/plugins/refactoring/commands/DropViewCommand.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 | {↵ | |||
3 | ↵ | 2 | {↵ | |
4 | public void run()↵ | 3 | public void run()↵ | |
5 | {↵ | |||
6 | ↵ | 4 | {↵ | |
7 | GUIUtils.processOnSwingEventThread(new Runnable()↵ | 5 | GUIUtils.processOnSwingEventThread(new Runnable()↵ | |
8 | {↵ | |||
9 | public void run()↵ | |||
10 | {↵ | |||
11 | ↵ | 6 | {↵ | |
7 | public void run() {↵ | |||
12 | customDialog = new DefaultDropDialog(_info, DefaultDropDialog.DIALOG_TYPE_VIEW);↵ | 8 | customDialog = new DefaultDropDialog(_info, DefaultDropDialog.DIALOG_TYPE_↵ | |
13 | ↵ | 9 | SEQUENCE);↵ | |
14 | customDialog.addExecuteListener(new ExecuteListener());↵ | 10 | customDialog.addExecuteListener(new ExecuteListener());↵ | |
15 | customDialog.addEditSQLListener(new EditSQLListener(customDialog));↵ | 11 | customDialog.addEditSQLListener(new EditSQLListener(customDialog));↵ | |
16 | customDialog.addShowSQLListener(new ShowSQLListener(i18n.SHOWSQL_DIALOG_TITLE, customDialog));↵ | 12 | customDialog.addShowSQLListener(new ShowSQLListener(i18n.SHOWSQL_DIALOG_TITLE, customDialog));↵ | |
17 | customDialog.setLocationRelativeTo(_session.getApplication().getMainFrame());↵ | 13 | customDialog.setLocationRelativeTo(_session.getApplication().getMainFrame());↵ | |
18 | customDialog.setVisible(true);↵ | 14 | customDialog.setVisible(true);↵ | |
19 | }↵ | |||
20 | });↵ | |||
21 | }↵ | |||
22 | ↵ | 15 | }↵ | |
16 | });↵ | |||
17 | }↵ | |||
23 | }); | 18 | }); | |
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.plugins.refactoring.commands.DropViewCommand.i18n does not match with type net.sourceforge.squirrel_sql.plugins.refactoring.commands.DropSequenceCommand.i18n |