File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/plugin/PluginManagerDialog.java | File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/profiles/ProfileChooserDialog.java | |||
Method name: void initComponents()
|
Method name: void layoutComponents()
|
|||
Number of AST nodes: 18 | Number of AST nodes: 18 | |||
1 | Component glue = Box.createVerticalGlue();↵ | 1 | Component glue = Box.createVerticalGlue();↵ | |
2 | c.anchor = GridBagConstraints.EAST;↵ | 2 | c.anchor = GridBagConstraints.EAST;↵ | |
3 | c.gridwidth = GridBagConstraints.REMAINDER;↵ | 3 | c.gridwidth = GridBagConstraints.REMAINDER;↵ | |
4 | ↵ | 4 | ↵ | |
5 | // c.fill = GridBagConstraints.HORIZONTAL;↵ | 5 | //c.fill = GridBagConstraints.HORIZONTAL;↵ | |
6 | gridBagLayout.setConstraints(glue, c);↵ | 6 | gridBagLayout.setConstraints(glue, c);↵ | |
7 | ↵ | 7 | ↵ | |
8 | gridBagLayout = new GridBagLayout();↵ | 8 | gridBagLayout = new GridBagLayout();↵ | |
9 | c = new GridBagConstraints();↵ | 9 | c = new GridBagConstraints();↵ | |
10 | ↵ | 10 | ↵ | |
11 | JPanel eastPanel = new JPanel(gridBagLayout);↵ | 11 | JPanel eastPanel = new JPanel(gridBagLayout);↵ | |
12 | mainPanel.add(eastPanel, BorderLayout.EAST);↵ | 12 | mainPanel.add(eastPanel, BorderLayout.EAST);↵ | |
13 | ↵ | 13 | ↵ | |
14 | c.fill = GridBagConstraints.HORIZONTAL;↵ | 14 | c.fill = GridBagConstraints.HORIZONTAL;↵ | |
15 | c.weightx = 1.0;↵ | 15 | c.weightx = 1.0;↵ | |
16 | c.gridwidth = GridBagConstraints.REMAINDER;↵ | 16 | c.gridwidth = GridBagConstraints.REMAINDER;↵ | |
17 | gridBagLayout.setConstraints(installButton, c);↵ | 17 | gridBagLayout.setConstraints(addButton, c);↵ | |
18 | eastPanel.add(installButton);↵ | 18 | eastPanel.add(addButton);↵ | |
19 | ↵ | 19 | ↵ | |
20 | Component strut1 = Box.createRigidArea(new Dimension(30, 5));↵ | 20 | Component strut1 = Box.createRigidArea(new Dimension(30, 5));↵ | |
21 | gridBagLayout.setConstraints(strut1, c);↵ | 21 | gridBagLayout.setConstraints(strut1, c);↵ | |
22 | eastPanel.add(strut1);↵ | 22 | eastPanel.add(strut1);↵ | |
23 | ↵ | 23 | ↵ | |
24 | gridBagLayout.setConstraints(removeButton, c);↵ | 24 | gridBagLayout.setConstraints(editButton, c);↵ | |
25 | eastPanel.add(removeButton); | 25 | eastPanel.add(editButton); | |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 1 |
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 | 176 |
Number of mapped statements | 18 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 1 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 3 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
32 | Component glue = Box.createVerticalGlue(); | 13 | Component glue = Box.createVerticalGlue(); | |||||||||||
33 | c.anchor = GridBagConstraints.EAST; | 14 | c.anchor = GridBagConstraints.EAST; | |||||||||||
| 15 | c.gridwidth = GridBagConstraints.REMAINDER; | ||||||||||||
34 | c.gridwidth = GridBagConstraints.REMAINDER; | 23 | c.gridwidth = GridBagConstraints.REMAINDER; | |||||||||||
35 | gridBagLayout.setConstraints(glue, c); | 16 | gridBagLayout.setConstraints(glue, c); | |||||||||||
36 | gridBagLayout = new GridBagLayout(); | 17 | gridBagLayout = new GridBagLayout(); | |||||||||||
37 | c = new GridBagConstraints(); | 18 | c = new GridBagConstraints(); | |||||||||||
38 | JPanel eastPanel = new JPanel(gridBagLayout); | 19 | JPanel eastPanel = new JPanel(gridBagLayout); | |||||||||||
39 | mainPanel.add(eastPanel, BorderLayout.EAST); | 20 | mainPanel.add(eastPanel, BorderLayout.EAST); | |||||||||||
40 | c.fill = GridBagConstraints.HORIZONTAL; | 21 | c.fill = GridBagConstraints.HORIZONTAL; | |||||||||||
41 | c.weightx = 1.0; | 22 | c.weightx = 1.0; | |||||||||||
42 | c.gridwidth = GridBagConstraints.REMAINDER; | 23 | c.gridwidth = GridBagConstraints.REMAINDER; | |||||||||||
43 | gridBagLayout.setConstraints(installButton, c); |
| 24 | gridBagLayout.setConstraints(addButton, c); | ||||||||||
44 | eastPanel.add(installButton); |
| 25 | eastPanel.add(addButton); | ||||||||||
45 | Component strut1 = Box.createRigidArea(new Dimension(30, 5)); | 26 | Component strut1 = Box.createRigidArea(new Dimension(30, 5)); | |||||||||||
46 | gridBagLayout.setConstraints(strut1, c); | 27 | gridBagLayout.setConstraints(strut1, c); | |||||||||||
47 | eastPanel.add(strut1); | 28 | eastPanel.add(strut1); | |||||||||||
48 | gridBagLayout.setConstraints(removeButton, c); |
| 29 | gridBagLayout.setConstraints(editButton, c); | ||||||||||
49 | eastPanel.add(removeButton); |
| 30 | eastPanel.add(editButton); |
Row | Violation |
---|---|
1 | Clone fragment #1 returns variables gridBagLayout, c, eastPanel, glue , while Clone fragment #2 returns variables glue, c, gridBagLayout, eastPanel |