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 addRecordCountLabel(JPanel, int, int)
|
Method name: void addFetchSizeLabel(JPanel, int, int)
|
|||
Number of AST nodes: 10 | Number of AST nodes: 10 | |||
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 commitLabel = ↵ | 5 | String bsLabel = ↵ | |
6 | s_stringMgr.getString("PreferencesPanel.commitRecordCountLabel");↵ | 6 | s_stringMgr.getString("PreferencesPanel.↵ | |
7 | commitRecordCount↵ | 7 | fetchSizeLabel");↵ | |
8 | Label = new JLabel(commitLabel);↵ | 8 | selectFetchSizeLabel = new JLabel(bsLabel);↵ | |
9 | commitRecordCountLabel.setHorizontalAlignment(JLabel.RIGHT);↵ | 9 | selectFetchSizeLabel.setHorizontalAlignment(JLabel.LEFT);↵ | |
10 | String commitlabelToolTipText = ↵ | 10 | String labelToolTipText = ↵ | |
11 | s_stringMgr.getString("PreferencesPanel.commitRecordCountToolTip");↵ | 11 | s_stringMgr.getString("PreferencesPanel.fetchSizeToolTip");↵ | |
12 | commitRecordCountLabel.setToolTipText(commitlabelToolTipText);↵ | 12 | selectFetchSizeLabel.setToolTipText(labelToolTipText);↵ | |
13 | panel.add(commitRecordCountLabel, c); | 13 | panel.add(selectFetchSizeLabel, 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 | 46 |
Number of mapped statements | 10 |
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 commitLabel = s_stringMgr.getString("PreferencesPanel.commitRecordCountLabel"); |
| 5 | String bsLabel = s_stringMgr.getString("PreferencesPanel.fetchSizeLabel"); | |||||||||||||
6 | commitRecordCountLabel = new JLabel(commitLabel); |
| 6 | selectFetchSizeLabel = new JLabel(bsLabel); | |||||||||||||
7 | commitRecordCountLabel.setHorizontalAlignment(JLabel.RIGHT); |
| 7 | selectFetchSizeLabel.setHorizontalAlignment(JLabel.LEFT); | |||||||||||||
8 | String commitlabelToolTipText = s_stringMgr.getString("PreferencesPanel.commitRecordCountToolTip"); |
| 8 | String labelToolTipText = s_stringMgr.getString("PreferencesPanel.fetchSizeToolTip"); | |||||||||||||
9 | commitRecordCountLabel.setToolTipText(commitlabelToolTipText); |
| 9 | selectFetchSizeLabel.setToolTipText(labelToolTipText); | |||||||||||||
10 | panel.add(commitRecordCountLabel, c); |
| 10 | panel.add(selectFetchSizeLabel, c); |
Row | Violation |
---|