File path: /sql12/plugins/syntax/src/net/sourceforge/squirrel_sql/plugins/syntax/netbeans/SquirrelNBDialogFactory.java | File path: /sql12/plugins/syntax/src/net/sourceforge/squirrel_sql/plugins/syntax/UncommentAction.java | |||
Method name: Dialog createDialog(String, JPanel, boolean, JButton[], boolean, int, int, ActionListener)
|
Method name: void uncomment(ISQLEntryPanel)
|
|||
Number of AST nodes: 2 | Number of AST nodes: 2 | |||
1 | if (actionListeners[j].equals(listener))↵ | 1 | if(lines[i].↵ | |
2 | {↵ | |||
3 | // We don't add a listener to a button twice↵ | |||
4 | // because the FindDialogSupport class will call↵ | |||
5 | // this method with the same button instances↵ | |||
6 | // whenever the replace dialog is opened.↵ | |||
7 | ↵ | 2 | startsWith(startOfLineComment))↵ | |
8 | //↵ | 3 | ↵ | |
9 | ↵ | 4 | {↵ | |
10 | // If we add the listener again and again replace↵ | 5 | ↵ | |
11 | // will be done as often as the dialog is opened.↵ | |||
12 | // This is especially nasty if the text to replace↵ | |||
13 | // is part of the replacement text.↵ | |||
14 | found = true;↵ | |||
15 | ↵ | 6 | caretPosition -= startOfLineComment.length();↵ | |
16 | } | 7 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 0 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.2 |
Clones location | Clones are in different classes |
Number of node comparisons | 1 |