File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/profiles/ProfileChooserDialog.java | File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/config/accountlist/AccountListDialog.java | |||
Method name: void layoutComponents()
|
Method name: void initComponents()
|
|||
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 | ↵ | |||
5 | ↵ | |||
6 | //c.fill = GridBagConstraints.HORIZONTAL;↵ | 4 | // c.fill = GridBagConstraints.HORIZONTAL;↵ | |
7 | gridBagLayout.setConstraints(glue, c);↵ | 5 | gridBagLayout.setConstraints(glue, c);↵ | |
8 | ↵ | |||
9 | ↵ | |||
10 | gridBagLayout = new GridBagLayout();↵ | 6 | gridBagLayout = new GridBagLayout();↵ | |
11 | c = new GridBagConstraints();↵ | 7 | c = new GridBagConstraints();↵ | |
12 | ↵ | |||
13 | ↵ | |||
14 | JPanel eastPanel = new JPanel(gridBagLayout);↵ | 8 | JPanel eastPanel = new JPanel(gridBagLayout);↵ | |
15 | mainPanel.add(eastPanel, BorderLayout.EAST);↵ | 9 | mainPanel.add(eastPanel, BorderLayout.EAST);↵ | |
16 | ↵ | |||
17 | ↵ | |||
18 | c.fill = GridBagConstraints.HORIZONTAL;↵ | 10 | c.fill = GridBagConstraints.HORIZONTAL;↵ | |
19 | c.weightx = 1.0;↵ | 11 | c.weightx = 1.0;↵ | |
20 | c.gridwidth = GridBagConstraints.REMAINDER;↵ | 12 | c.gridwidth = GridBagConstraints.REMAINDER;↵ | |
21 | gridBagLayout.setConstraints(addButton, c);↵ | 13 | gridBagLayout.setConstraints(addButton, c);↵ | |
22 | eastPanel.add(addButton);↵ | 14 | eastPanel.add(addButton);↵ | |
23 | ↵ | |||
24 | ↵ | |||
25 | Component strut1 = Box.createRigidArea(new Dimension(30, 5));↵ | 15 | Component strut1 = Box.createRigidArea(new Dimension(30, 5));↵ | |
26 | gridBagLayout.setConstraints(strut1, c);↵ | 16 | gridBagLayout.setConstraints(strut1, c);↵ | |
27 | eastPanel.add(strut1);↵ | 17 | eastPanel.add(strut1);↵ | |
28 | ↵ | |||
29 | ↵ | |||
30 | gridBagLayout.setConstraints(editButton, c);↵ | 18 | gridBagLayout.setConstraints(editButton, c);↵ | |
31 | eastPanel.add(editButton); | 19 | 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 | 164 |
Number of mapped statements | 18 |
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 1 |
ID | Statement | ID | Statement | |
---|---|---|---|---|
13 | Component glue = Box.createVerticalGlue(); | 32 | Component glue = Box.createVerticalGlue(); | |
14 | c.anchor = GridBagConstraints.EAST; | 33 | c.anchor = GridBagConstraints.EAST; | |
15 | c.gridwidth = GridBagConstraints.REMAINDER; | 34 | c.gridwidth = GridBagConstraints.REMAINDER; | |
16 | gridBagLayout.setConstraints(glue, c); | 35 | gridBagLayout.setConstraints(glue, c); | |
17 | gridBagLayout = new GridBagLayout(); | 36 | gridBagLayout = new GridBagLayout(); | |
18 | c = new GridBagConstraints(); | 37 | c = new GridBagConstraints(); | |
19 | JPanel eastPanel = new JPanel(gridBagLayout); | 38 | JPanel eastPanel = new JPanel(gridBagLayout); | |
20 | mainPanel.add(eastPanel, BorderLayout.EAST); | 39 | mainPanel.add(eastPanel, BorderLayout.EAST); | |
21 | c.fill = GridBagConstraints.HORIZONTAL; | 40 | c.fill = GridBagConstraints.HORIZONTAL; | |
22 | c.weightx = 1.0; | 41 | c.weightx = 1.0; | |
23 | c.gridwidth = GridBagConstraints.REMAINDER; | 42 | c.gridwidth = GridBagConstraints.REMAINDER; | |
24 | gridBagLayout.setConstraints(addButton, c); | 43 | gridBagLayout.setConstraints(addButton, c); | |
25 | eastPanel.add(addButton); | 44 | eastPanel.add(addButton); | |
26 | Component strut1 = Box.createRigidArea(new Dimension(30, 5)); | 45 | Component strut1 = Box.createRigidArea(new Dimension(30, 5)); | |
27 | gridBagLayout.setConstraints(strut1, c); | 46 | gridBagLayout.setConstraints(strut1, c); | |
28 | eastPanel.add(strut1); | 47 | eastPanel.add(strut1); | |
29 | gridBagLayout.setConstraints(editButton, c); | 48 | gridBagLayout.setConstraints(editButton, c); | |
30 | eastPanel.add(editButton); | 49 | eastPanel.add(editButton); |
Row | Violation |
---|---|
1 | Clone fragment #1 returns variables glue, c, gridBagLayout, eastPanel , while Clone fragment #2 returns variables gridBagLayout, c, eastPanel, glue |