File path: /sql12/plugins/refactoring/src/net/sourceforge/squirrel_sql/plugins/refactoring/commands/AddSequenceCommand.java | File path: /sql12/plugins/postgres/src/net/sourceforge/squirrel_sql/plugins/postgres/commands/VacuumTableCommand.java | |||
Method name: void showCustomDialog()
|
Method name: void showDialog(ITableInfo[])
|
|||
Number of AST nodes: 6 | Number of AST nodes: 6 | |||
1 | customDialog = new AddModifySequenceDialog(AddModifySequenceDialog.ADD_MODE);↵ | 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); | |
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 |
Number of node comparisons | 36 |
Number of mapped statements | 5 |
Number of unmapped statements in the first code fragment | 1 |
Number of unmapped statements in the second code fragment | 1 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
| 1 | _mainDialog = new VacuumTableDialog(tableinfos); | ||||||||||||||||||||||||||||||||
1 | customDialog = new AddModifySequenceDialog(AddModifySequenceDialog.ADD_MODE); |
| | ||||||||||||||||||||||||||||||||
2 | customDialog.addExecuteListener(new ExecuteListener()); |
| 2 | _mainDialog.addExecuteListener(new ExecuteListener()); | |||||||||||||||||||||||||||||||
3 | customDialog.addEditSQLListener(new EditSQLListener(customDialog)); |
| 3 | _mainDialog.addEditSQLListener(new EditSQLListener(_mainDialog)); | |||||||||||||||||||||||||||||||
4 | customDialog.addShowSQLListener(new ShowSQLListener(i18n.SHOWSQL_DIALOG_TITLE, customDialog)); |
| 4 | _mainDialog.addShowSQLListener(new ShowSQLListener(i18n.SHOWSQL_DIALOG_TITLE, _mainDialog)); | |||||||||||||||||||||||||||||||
5 | customDialog.setLocationRelativeTo(_session.getApplication().getMainFrame()); |
| 5 | _mainDialog.setLocationRelativeTo(_session.getApplication().getMainFrame()); | |||||||||||||||||||||||||||||||
6 | customDialog.setVisible(true); |
| 6 | _mainDialog.setVisible(true); |
Row | Violation |
---|---|
1 | Unmatched statement _mainDialog=new VacuumTableDialog(tableinfos); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted |
2 | Unmatched statement customDialog=new AddModifySequenceDialog(AddModifySequenceDialog.ADD_MODE); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted |
3 | Expression customDialog cannot be unified with expression _mainDialog , because common superclass javax.swing.JDialog does not declare member(s) public void addExecuteListener(java.awt.event.ActionListener) |
4 | Expression new EditSQLListener(customDialog) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
5 | Expression new EditSQLListener(_mainDialog) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
6 | Expression customDialog cannot be unified with expression _mainDialog , because common superclass type javax.swing.JDialog cannot be passed as an argument to public void <init>(net.sourceforge.squirrel_sql.client.gui.db.IDisposableDialog) |
7 | Expression customDialog cannot be unified with expression _mainDialog , because common superclass javax.swing.JDialog does not declare member(s) public void addEditSQLListener(java.awt.event.ActionListener) |
8 | Expression customDialog cannot be unified with expression _mainDialog , because common superclass javax.swing.JDialog does not declare member(s) public void addEditSQLListener(java.awt.event.ActionListener) |
9 | Expression new ShowSQLListener(i18n.SHOWSQL_DIALOG_TITLE,customDialog) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
10 | Expression new ShowSQLListener(i18n.SHOWSQL_DIALOG_TITLE,_mainDialog) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
11 | Type net.sourceforge.squirrel_sql.plugins.refactoring.commands.AddSequenceCommand.i18n does not match with type net.sourceforge.squirrel_sql.plugins.postgres.commands.VacuumTableCommand.i18n |
12 | Expression customDialog cannot be unified with expression _mainDialog , because common superclass type javax.swing.JDialog cannot be passed as an argument to public void <init>(java.lang.String, net.sourceforge.squirrel_sql.client.gui.db.IDisposableDialog) |
13 | Expression customDialog cannot be unified with expression _mainDialog , because common superclass javax.swing.JDialog does not declare member(s) public void addShowSQLListener(java.awt.event.ActionListener) |
14 | Expression customDialog cannot be unified with expression _mainDialog , because common superclass javax.swing.JDialog does not declare member(s) public void addShowSQLListener(java.awt.event.ActionListener) |
15 | The refactoring of the clones is infeasible, because classes net.sourceforge.squirrel_sql.plugins.refactoring.commands.AddSequenceCommand and net.sourceforge.squirrel_sql.plugins.postgres.commands.VacuumTableCommand do not have a common superclass |