File path: /sql12/plugins/dbcopy/src/net/sourceforge/squirrel_sql/plugins/dbcopy/gui/PreferencesPanel.java | File path: /sql12/plugins/dbcopy/src/net/sourceforge/squirrel_sql/plugins/dbcopy/gui/PreferencesPanel.java | |||
Method name: void addCopyPrimaryKeysCheckBox(JPanel, int, int)
|
Method name: void addWriteScriptCheckBox(JPanel, int, int)
|
|||
Number of AST nodes: 11 | Number of AST nodes: 11 | |||
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.gridwidth = 2; // Span across two columns↵ | 4 | c.gridwidth = 2; // Span across two columns↵ | |
5 | c.insets = new Insets(10,0,0,0);↵ | 5 | c.insets = new Insets(10,0,0,0);↵ | |
6 | c.anchor = GridBagConstraints.WEST;↵ | 6 | c.anchor = GridBagConstraints.WEST;↵ | |
7 | String cbLabelStr = ↵ | 7 | String cbLabelStr = ↵ | |
8 | s_stringMgr.getString("PreferencesPanel.copyPrimaryKeys");↵ | 8 | s_stringMgr.getString("PreferencesPanel.writeScript");↵ | |
9 | String toolTipText = ↵ | 9 | String toolTipText = ↵ | |
10 | s_stringMgr.getString("PreferencesPanel.copyPrimaryKeysToolTip");↵ | 10 | s_stringMgr.getString("PreferencesPanel.writeScriptToolTip");↵ | |
11 | copyPrimaryKeys = new JCheckBox(cbLabelStr);↵ | 11 | writeScriptCheckBox = new JCheckBox(cbLabelStr);↵ | |
12 | copyPrimaryKeys.setToolTipText(toolTipText);↵ | 12 | writeScriptCheckBox.setToolTipText(toolTipText);↵ | |
13 | panel.add(copyPrimaryKeys, c); | 13 | panel.add(writeScriptCheckBox, 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 declared in the same class |
Number of node comparisons | 59 |
Number of mapped statements | 11 |
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.gridwidth = 2; | 4 | c.gridwidth = 2; | |||||||||||
5 | c.insets = new Insets(10, 0, 0, 0); | 5 | c.insets = new Insets(10, 0, 0, 0); | |||||||||||
6 | c.anchor = GridBagConstraints.WEST; | 6 | c.anchor = GridBagConstraints.WEST; | |||||||||||
7 | String cbLabelStr = s_stringMgr.getString("PreferencesPanel.copyPrimaryKeys"); |
| 7 | String cbLabelStr = s_stringMgr.getString("PreferencesPanel.writeScript"); | ||||||||||
8 | String toolTipText = s_stringMgr.getString("PreferencesPanel.copyPrimaryKeysToolTip"); |
| 8 | String toolTipText = s_stringMgr.getString("PreferencesPanel.writeScriptToolTip"); | ||||||||||
9 | copyPrimaryKeys = new JCheckBox(cbLabelStr); |
| 9 | writeScriptCheckBox = new JCheckBox(cbLabelStr); | ||||||||||
10 | copyPrimaryKeys.setToolTipText(toolTipText); |
| 10 | writeScriptCheckBox.setToolTipText(toolTipText); | ||||||||||
11 | panel.add(copyPrimaryKeys, c); |
| 11 | panel.add(writeScriptCheckBox, c); |
Row | Violation |
---|