File path: /sql12/plugins/syntax/src/net/sourceforge/squirrel_sql/plugins/syntax/netbeans/SquirrelNBDialogFactory.java
|
|
File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DatabaseSpecificBooleanValue.java
|
Method name: Dialog createDialog(String, JPanel, boolean, JButton[], boolean, int, int, ActionListener)
|
|
Method name: String getBooleanValue(String, ISQLDatabaseMetaData)
|
Number of AST nodes: 2
|
|
Number of AST nodes: 3
|
|
1 | if (actionListeners[j].equals(listener))↵ | | |
|
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 | //↵ | | |
|
8 | // If we add the listener again and again replace↵ | | |
|
9 | // will be done as often as the dialog is opened.↵ | | |
|
10 | // This is especially nasty if the text to replace↵ | | |
|
11 | // is part of the replacement text.↵ | | |
|
12 | found = true;↵ | | |
|
13 | ↵ | | 1 | for (int i = 0; i < _booleans.length; i++) {↵
|
| | | 2 | if(_booleans[i].productMatches(md)) {↵
|
| | | 3 | return _booleans[i].getBooleanValue(orig);↵
|
| | | 4 | }↵
|
14 | } | | 5 | }
|