File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/composer/contact/SelectAddressDialog.java | File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/composer/contact/SelectAddressDialog.java | |||
Method name: JPanel createButtonPanel()
|
Method name: JPanel createRemoveButtonPanel()
|
|||
Number of AST nodes: 8 | Number of AST nodes: 8 | |||
1 | JPanel panel = new JPanel();↵ | 1 | JPanel panel = new JPanel();↵ | |
2 | FormLayout layout = new FormLayout(↵ | 2 | FormLayout layout = new FormLayout(↵ | |
3 | "fill:default:grow, 6px, fill:default:grow, 6px, fill:default:grow", //$NON-NLS-1$↵ | 3 | "fill:default:grow, 6px, fill:default:grow, 6px, fill:default:grow", //$NON-NLS-1$↵ | |
4 | "default"); //$NON-NLS-1$↵ | 4 | "default"); //$NON-NLS-1$↵ | |
5 | PanelBuilder builder = new PanelBuilder(layout, panel);↵ | 5 | PanelBuilder builder = new PanelBuilder(layout, panel);↵ | |
6 | CellConstraints cc = new CellConstraints();↵ | 6 | CellConstraints cc = new CellConstraints();↵ | |
7 | builder.add(toButton, cc.xy(1, 1));↵ | 7 | builder.add(toRemoveButton, cc.xy(1, 1));↵ | |
8 | builder.add(ccButton, cc.xy(3, 1));↵ | 8 | builder.add(ccRemoveButton, cc.xy(3, 1));↵ | |
9 | builder.add(bccButton, cc.xy(5, 1));↵ | 9 | builder.add(bccRemoveButton, cc.xy(5, 1));↵ | |
10 | return panel; | 10 |
| |
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 | 26 |
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 | JPanel panel = new JPanel(); | 1 | JPanel panel = new JPanel(); | |||||||||||
2 | FormLayout layout = new FormLayout("fill:default:grow, 6px, fill:default:grow, 6px, fill:default:grow", "default"); | 2 | FormLayout layout = new FormLayout("fill:default:grow, 6px, fill:default:grow, 6px, fill:default:grow", "default"); | |||||||||||
3 | PanelBuilder builder = new PanelBuilder(layout, panel); | 3 | PanelBuilder builder = new PanelBuilder(layout, panel); | |||||||||||
4 | CellConstraints cc = new CellConstraints(); | 4 | CellConstraints cc = new CellConstraints(); | |||||||||||
5 | builder.add(toButton, cc.xy(1, 1)); |
| 5 | builder.add(toRemoveButton, cc.xy(1, 1)); | ||||||||||
6 | builder.add(ccButton, cc.xy(3, 1)); |
| 6 | builder.add(ccRemoveButton, cc.xy(3, 1)); | ||||||||||
7 | builder.add(bccButton, cc.xy(5, 1)); |
| 7 | builder.add(bccRemoveButton, cc.xy(5, 1)); | ||||||||||
8 | return panel; | 8 | return panel; |
Row | Violation |
---|