File path: /sql12/plugins/dbcopy/src/net/sourceforge/squirrel_sql/plugins/dbcopy/gui/PreferencesPanel.java | File path: /sql12/plugins/refactoring/src/net/sourceforge/squirrel_sql/plugins/refactoring/prefs/RefactoringPreferencesPanel.java | |||
Method name: void addTestColumnNamesCheckBox(JPanel, int, int)
|
Method name: void addQuoteIdentifiersCheckBox(JPanel, int, int)
|
|||
Number of AST nodes: 9 | Number of AST nodes: 9 | |||
1 | GridBagConstraints c = new GridBagConstraints();↵ | 1 | GridBagConstraints c = new GridBagConstraints();↵ | |
2 | c.gridx = col;↵ | 2 | c.gridx = col;↵ | |
3 | c.gridy = row; ↵ | 3 | c.gridy = row; ↵ | |
4 | c.anchor = GridBagConstraints.WEST;↵ | 4 | c.anchor = GridBagConstraints.WEST;↵ | |
5 | String cbLabelStr =↵ | 5 | ↵ | |
6 | ↵ | 6 | // i18n[RefactoringPreferencesPanel.quoteCheckboxLabel=Quote identifiers in scripts]↵ | |
7 | String cbLabelStr = ↵ | |||
7 | s_stringMgr.getString("PreferencesPanel.testColumnNames");↵ | 8 | s_stringMgr.getString("RefactoringPreferencesPanel.↵ | |
8 | ↵ | 9 | quoteCheckboxLabel");↵ | |
10 | // i18n[RefactoringPreferencesPanel.quoteToolTip=Identifiers appear in quotes]↵ | |||
9 | String cbToolTipText =↵ | 11 | String cbToolTipText =↵ | |
10 | ↵ | 12 | ↵ | |
11 | s_stringMgr.getString("PreferencesPanel.testColumnNamesToolTip");↵ | 13 | s_stringMgr.getString("RefactoringPreferencesPanel.qualifyCheckboxToolTip");↵ | |
12 | testColumnNamesCheckBox = new JCheckBox(cbLabelStr);↵ | 14 | quoteIdentifersCheckBox = new JCheckBox(cbLabelStr);↵ | |
13 | testColumnNamesCheckBox.setToolTipText(cbToolTipText);↵ | 15 | quoteIdentifersCheckBox.setToolTipText(cbToolTipText);↵ | |
14 | panel.add(testColumnNamesCheckBox, c); | 16 | panel.add(quoteIdentifersCheckBox, c); | |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
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 | 37 |
Number of mapped statements | 9 |
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 | GridBagConstraints c = new GridBagConstraints(); | 1 | GridBagConstraints c = new GridBagConstraints(); | |||||||||||
2 | c.gridx = col; | 2 | c.gridx = col; | |||||||||||
3 | c.gridy = row; | 3 | c.gridy = row; | |||||||||||
4 | c.anchor = GridBagConstraints.WEST; | 4 | c.anchor = GridBagConstraints.WEST; | |||||||||||
5 | String cbLabelStr = s_stringMgr.getString("PreferencesPanel.testColumnNames"); |
| 5 | String cbLabelStr = s_stringMgr.getString("RefactoringPreferencesPanel.quoteCheckboxLabel"); | ||||||||||
6 | String cbToolTipText = s_stringMgr.getString("PreferencesPanel.testColumnNamesToolTip"); |
| 6 | String cbToolTipText = s_stringMgr.getString("RefactoringPreferencesPanel.qualifyCheckboxToolTip"); | ||||||||||
7 | testColumnNamesCheckBox = new JCheckBox(cbLabelStr); |
| 7 | quoteIdentifersCheckBox = new JCheckBox(cbLabelStr); | ||||||||||
8 | testColumnNamesCheckBox.setToolTipText(cbToolTipText); |
| 8 | quoteIdentifersCheckBox.setToolTipText(cbToolTipText); | ||||||||||
9 | panel.add(testColumnNamesCheckBox, c); |
| 9 | panel.add(quoteIdentifersCheckBox, c); |
Row | Violation |
---|