File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/composer/contact/SelectAddressDialog.java | File path: /columba-1.4-src/contact/src/main/java/org/columba/addressbook/gui/dialog/group/EditGroupDialog.java | |||
Method name: void layoutComponents()
|
Method name: void layoutComponents()
|
|||
Number of AST nodes: 17 | Number of AST nodes: 17 | |||
1 | getContentPane().setLayout(new BorderLayout());↵ | 1 | getContentPane().setLayout(new BorderLayout());↵ | |
2 | JPanel mainPanel = new JPanel(new BorderLayout());↵ | 2 | JPanel mainPanel = new JPanel(new BorderLayout());↵ | |
3 | mainPanel.setBorder(BorderFactory.createEmptyBorder(12, 12, 12, 12));↵ | 3 | mainPanel.setBorder(BorderFactory.createEmptyBorder(12, 12, 12, 12));↵ | |
4 | FormLayout layout = new FormLayout(↵ | 4 | FormLayout layout = new FormLayout(↵ | |
5 | "fill:default:grow, 12px, fill:default:grow", //$NON-NLS-1$↵ | 5 | "fill:default:grow", //$NON-NLS-1$↵ | |
6 | "fill:default:grow"); //$NON-NLS-1$↵ | 6 | "default, 12px, fill:default:grow"); //$NON-NLS-1$↵ | |
7 | CellConstraints cc = new CellConstraints();↵ | 7 | CellConstraints cc = new CellConstraints();↵ | |
8 | mainPanel.setLayout(layout);↵ | 8 | mainPanel.setLayout(layout);↵ | |
9 | mainPanel.add(createAddressbookPanel(), cc.xy(1, 1));↵ | 9 | mainPanel.add(createGroupNamePanel(), cc.xy(1, 1));↵ | |
10 | mainPanel.add(createRecipientsPanel(), cc.xy(3, 1));↵ | 10 | mainPanel.add(createGroupPanel(), cc.xy(1, 3));↵ | |
11 | getContentPane().add(mainPanel, BorderLayout.CENTER);↵ | 11 | getContentPane().add(mainPanel, BorderLayout.CENTER);↵ | |
12 | JPanel bottomPanel = new JPanel(new BorderLayout());↵ | 12 | JPanel bottomPanel = new JPanel(new BorderLayout());↵ | |
13 | bottomPanel.setBorder(new SingleSideEtchedBorder(SwingConstants.TOP));↵ | 13 | bottomPanel.setBorder(new SingleSideEtchedBorder(SwingConstants.TOP));↵ | |
14 | JPanel buttonPanel = new JPanel(new GridLayout(1, 2, 6, 0));↵ | 14 | JPanel buttonPanel = new JPanel(new GridLayout(1, 2, 6, 0));↵ | |
15 | buttonPanel.setBorder(BorderFactory.createEmptyBorder(12, 12, 12, 12));↵ | 15 | buttonPanel.setBorder(BorderFactory.createEmptyBorder(12, 12, 12, 12));↵ | |
16 | buttonPanel.add(okButton);↵ | 16 | buttonPanel.add(okButton);↵ | |
17 | buttonPanel.add(cancelButton);↵ | 17 | buttonPanel.add(cancelButton);↵ | |
18 | bottomPanel.add(buttonPanel, BorderLayout.EAST);↵ | 18 | bottomPanel.add(buttonPanel, BorderLayout.EAST);↵ | |
19 | getContentPane().add(bottomPanel, BorderLayout.SOUTH); | 19 |
| |
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 in different classes having the same super class |
Number of node comparisons | 111 |
Number of mapped statements | 17 |
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 | getContentPane().setLayout(new BorderLayout()); | 1 | getContentPane().setLayout(new BorderLayout()); | ||||||||||||||||||
2 | JPanel mainPanel = new JPanel(new BorderLayout()); | 2 | JPanel mainPanel = new JPanel(new BorderLayout()); | ||||||||||||||||||
3 | mainPanel.setBorder(BorderFactory.createEmptyBorder(12, 12, 12, 12)); | 3 | mainPanel.setBorder(BorderFactory.createEmptyBorder(12, 12, 12, 12)); | ||||||||||||||||||
4 | FormLayout layout = new FormLayout("fill:default:grow, 12px, fill:default:grow", "fill:default:grow"); |
| 4 | FormLayout layout = new FormLayout("fill:default:grow", "default, 12px, fill:default:grow"); | |||||||||||||||||
5 | CellConstraints cc = new CellConstraints(); | 5 | CellConstraints cc = new CellConstraints(); | ||||||||||||||||||
6 | mainPanel.setLayout(layout); | 6 | mainPanel.setLayout(layout); | ||||||||||||||||||
7 | mainPanel.add(createAddressbookPanel(), cc.xy(1, 1)); |
| 7 | mainPanel.add(createGroupNamePanel(), cc.xy(1, 1)); | |||||||||||||||||
8 | mainPanel.add(createRecipientsPanel(), cc.xy(3, 1)); |
| 8 | mainPanel.add(createGroupPanel(), cc.xy(1, 3)); | |||||||||||||||||
9 | getContentPane().add(mainPanel, BorderLayout.CENTER); | 9 | getContentPane().add(mainPanel, BorderLayout.CENTER); | ||||||||||||||||||
10 | JPanel bottomPanel = new JPanel(new BorderLayout()); | 10 | JPanel bottomPanel = new JPanel(new BorderLayout()); | ||||||||||||||||||
11 | bottomPanel.setBorder(new SingleSideEtchedBorder(SwingConstants.TOP)); | 11 | bottomPanel.setBorder(new SingleSideEtchedBorder(SwingConstants.TOP)); | ||||||||||||||||||
12 | JPanel buttonPanel = new JPanel(new GridLayout(1, 2, 6, 0)); | 12 | JPanel buttonPanel = new JPanel(new GridLayout(1, 2, 6, 0)); | ||||||||||||||||||
13 | buttonPanel.setBorder(BorderFactory.createEmptyBorder(12, 12, 12, 12)); | 13 | buttonPanel.setBorder(BorderFactory.createEmptyBorder(12, 12, 12, 12)); | ||||||||||||||||||
14 | buttonPanel.add(okButton); | 14 | buttonPanel.add(okButton); | ||||||||||||||||||
15 | buttonPanel.add(cancelButton); | 15 | buttonPanel.add(cancelButton); | ||||||||||||||||||
16 | bottomPanel.add(buttonPanel, BorderLayout.EAST); | 16 | bottomPanel.add(buttonPanel, BorderLayout.EAST); | ||||||||||||||||||
17 | getContentPane().add(bottomPanel, BorderLayout.SOUTH); | 17 | getContentPane().add(bottomPanel, BorderLayout.SOUTH); |
Row | Violation |
---|---|
1 | Expression createGroupNamePanel() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
2 | Expression createGroupPanel() cannot be parameterized, because it has dependencies to/from statements that will be extracted |