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 addDelayTablesLabel(JPanel, int, int)
|
Method name: void addDelayRecordsLabel(JPanel, int, int)
|
|||
Number of AST nodes: 8 | Number of AST nodes: 8 | |||
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.insets = new Insets(5,25,0,0);↵ | 4 | c.insets = new Insets(5,25,0,0);↵ | |
5 | String label = ↵ | 5 | String label = ↵ | |
6 | s_stringMgr.getString("PreferencesPanel.delayTablesLabel");↵ | 6 | s_stringMgr.getString("PreferencesPanel.delayRecordsLabel");↵ | |
7 | delayTablesLabel = new JLabel(label);↵ | 7 | delayRecordsLabel = new JLabel(label);↵ | |
8 | delayTablesLabel.setHorizontalAlignment(JLabel.LEFT);↵ | 8 | delayRecordsLabel.setHorizontalAlignment(JLabel.LEFT);↵ | |
9 | panel.add(delayTablesLabel, c); | 9 | panel.add(delayRecordsLabel, 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 | 30 |
Number of mapped statements | 8 |
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.insets = new Insets(5, 25, 0, 0); | 4 | c.insets = new Insets(5, 25, 0, 0); | |||||||||||
5 | String label = s_stringMgr.getString("PreferencesPanel.delayTablesLabel"); |
| 5 | String label = s_stringMgr.getString("PreferencesPanel.delayRecordsLabel"); | ||||||||||
6 | delayTablesLabel = new JLabel(label); |
| 6 | delayRecordsLabel = new JLabel(label); | ||||||||||
7 | delayTablesLabel.setHorizontalAlignment(JLabel.LEFT); |
| 7 | delayRecordsLabel.setHorizontalAlignment(JLabel.LEFT); | ||||||||||
8 | panel.add(delayTablesLabel, c); |
| 8 | panel.add(delayRecordsLabel, c); |
Row | Violation |
---|