File path: /sql12/plugins/postgres/src/net/sourceforge/squirrel_sql/plugins/postgres/commands/VacuumTableCommand.java | File path: /sql12/plugins/postgres/src/net/sourceforge/squirrel_sql/plugins/postgres/commands/VacuumDatabaseCommand.java | |||
Method name: void executeScript(String)
|
Method name: void executeScript(String)
|
|||
Number of AST nodes: 7 | Number of AST nodes: 7 | |||
1 | final MessageDialog messageDialog = new MessageDialog();↵ | 1 | final MessageDialog messageDialog = new MessageDialog();↵ | |
2 | messageDialog.setTitle("SQL Execution Output"); ↵ | 2 | messageDialog.setTitle("SQL Execution Output"); ↵ | |
3 | messageDialog.setLocationRelativeTo(_session.getApplication().getMainFrame());↵ | 3 | messageDialog.setLocationRelativeTo(_session.getApplication().getMainFrame());↵ | |
4 | final VacuumTableSQLExecuterHandler handler = new VacuumTableSQLExecuterHandler(_session, messageDialog, i18n.PROGRESS_DIALOG_TITLE, i18n.COMMAND_PREFIX);↵ | 4 | final VacuumDatabaseSQLExecuterHandler handler = new VacuumDatabaseSQLExecuterHandler(_session, messageDialog, i18n.PROGRESS_DIALOG_TITLE, i18n.COMMAND_PREFIX);↵ | |
5 | final SQLExecuterTask executer = new SQLExecuterTask(_session, script, handler);↵ | 5 | final SQLExecuterTask executer = new SQLExecuterTask(_session, script, handler);↵ | |
6 | executer.setSchemaCheck(false);↵ | 6 | executer.setSchemaCheck(false);↵ | |
7 | _session.getApplication().getThreadPool().addTask(new Runnable() {↵ | 7 | _session.getApplication().getThreadPool().addTask(new Runnable() {↵ | |
8 | public void run() {↵ | 8 | public void run() {↵ | |
9 | GUIUtils.processOnSwingEventThread(new Runnable() {↵ | 9 | GUIUtils.processOnSwingEventThread(new Runnable() {↵ | |
10 | public void run() {↵ | 10 | public void run() {↵ | |
11 | _mainDialog.setVisible(false);↵ | 11 | _mainDialog.setVisible(false);↵ | |
12 | messageDialog.setVisible(true);↵ | 12 | messageDialog.setVisible(true);↵ | |
13 | }↵ | 13 | }↵ | |
14 | });↵ | 14 | });↵ | |
15 | executer.run();↵ | 15 | executer.run();↵ | |
16 | }↵ | 16 | }↵ | |
17 | }); | 17 |
| |
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 | 15 |
Number of mapped statements | 7 |
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 | final MessageDialog messageDialog = new MessageDialog(); | 1 | final MessageDialog messageDialog = new MessageDialog(); | |||||||||||||||||||||||||||
2 | messageDialog.setTitle("SQL Execution Output"); | 2 | messageDialog.setTitle("SQL Execution Output"); | |||||||||||||||||||||||||||
3 | messageDialog.setLocationRelativeTo(_session.getApplication().getMainFrame()); | 3 | messageDialog.setLocationRelativeTo(_session.getApplication().getMainFrame()); | |||||||||||||||||||||||||||
4 | final VacuumTableSQLExecuterHandler handler = new VacuumTableSQLExecuterHandler(_session, messageDialog, i18n.PROGRESS_DIALOG_TITLE, i18n.COMMAND_PREFIX); |
| 4 | final VacuumDatabaseSQLExecuterHandler handler = new VacuumDatabaseSQLExecuterHandler(_session, messageDialog, i18n.PROGRESS_DIALOG_TITLE, i18n.COMMAND_PREFIX); | ||||||||||||||||||||||||||
5 | final SQLExecuterTask executer = new SQLExecuterTask(_session, script, handler); |
| 5 | final SQLExecuterTask executer = new SQLExecuterTask(_session, script, handler); | ||||||||||||||||||||||||||
6 | executer.setSchemaCheck(false); | 6 | executer.setSchemaCheck(false); | |||||||||||||||||||||||||||
7 | _session.getApplication().getThreadPool().addTask(new Runnable() {...}); |
| 7 | _session.getApplication().getThreadPool().addTask(new Runnable() {...}); |
Row | Violation |
---|---|
1 | Expression new VacuumTableSQLExecuterHandler(_session,messageDialog,i18n.PROGRESS_DIALOG_TITLE,i18n.COMMAND_PREFIX) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
2 | Expression new VacuumDatabaseSQLExecuterHandler(_session,messageDialog,i18n.PROGRESS_DIALOG_TITLE,i18n.COMMAND_PREFIX) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
3 | Type net.sourceforge.squirrel_sql.plugins.postgres.commands.VacuumTableCommand.i18n does not match with type net.sourceforge.squirrel_sql.plugins.postgres.commands.VacuumDatabaseCommand.i18n |
4 | Type net.sourceforge.squirrel_sql.plugins.postgres.commands.VacuumTableCommand.i18n does not match with type net.sourceforge.squirrel_sql.plugins.postgres.commands.VacuumDatabaseCommand.i18n |