File path: /columba-1.4-src/contact/src/main/java/org/columba/addressbook/gui/dialog/contact/ContactEditorDialog.java | File path: /columba-1.4-src/contact/src/main/java/org/columba/addressbook/gui/dialog/contact/ContactEditorDialog.java | |||
Method name: void layoutComponents()
|
Method name: void layoutComponents()
|
|||
Number of AST nodes: 25 | Number of AST nodes: 25 | |||
1 | personalInfoPanel.add(webAddressSeparator, cc.xywh(1,↵ | |||
2 | 1, 7, 1));↵ | |||
3 | // ---- homepageLabel ----↵ | |||
4 | homepageLabel.setText(bundle↵ | |||
5 | .getString("homepageLabel.text"));↵ | |||
6 | homepageLabel.setLabelFor(homepageTextField);↵ | |||
7 | personalInfoPanel.add(homepageLabel, cc.xywh(1, 3, 1,↵ | |||
8 | 1, CellConstraints.RIGHT,↵ | |||
9 | CellConstraints.DEFAULT));↵ | |||
10 | // ======== panel1 ========↵ | |||
11 | {↵ | |||
12 | panel1.setLayout(new FormLayout(new ColumnSpec[] {↵ | |||
13 | new ColumnSpec(ColumnSpec.FILL,↵ | |||
14 | Sizes.DEFAULT,↵ | |||
15 | FormSpec.DEFAULT_GROW),↵ | |||
16 | FormFactory.LABEL_COMPONENT_GAP_COLSPEC,↵ | |||
17 | new ColumnSpec(ColumnSpec.CENTER,↵ | |||
18 | Sizes.DEFAULT, FormSpec.NO_GROW) },↵ | |||
19 | RowSpec.decodeSpecs("fill:default")));↵ | |||
20 | // ---- homepageTextField ----↵ | |||
21 | homepageTextField.setColumns(20);↵ | |||
22 | panel1.add(homepageTextField, cc.xy(1, 1));↵ | |||
23 | // ---- homepageButton ----↵ | |||
24 | panel1.add(homepageButton, cc.xy(3, 1));↵ | |||
25 | }↵ | |||
1 | personalInfoPanel.add(panel1, cc.xywh(3, 3, 5, 1));↵ | 26 | personalInfoPanel.add(panel1, cc.xywh(3, 3, 5, 1));↵ | |
2 | // ---- weblogLabel ----↵ | 27 | // ---- weblogLabel ----↵ | |
3 | weblogLabel.setText(bundle↵ | 28 | weblogLabel.setText(bundle↵ | |
4 | .getString("weblogLabel.text"));↵ | 29 | .getString("weblogLabel.text"));↵ | |
5 | weblogLabel.setLabelFor(weblogTextField);↵ | 30 | weblogLabel.setLabelFor(weblogTextField);↵ | |
6 | personalInfoPanel↵ | 31 | personalInfoPanel↵ | |
7 | .add(weblogLabel, cc.xywh(1, 5, 1, 1,↵ | 32 | .add(weblogLabel, cc.xywh(1, 5, 1, 1,↵ | |
8 | CellConstraints.RIGHT,↵ | 33 | CellConstraints.RIGHT,↵ | |
9 | CellConstraints.DEFAULT));↵ | 34 | CellConstraints.DEFAULT));↵ | |
10 | // ======== panel5 ========↵ | 35 | // ======== panel5 ========↵ | |
11 | {↵ | 36 | {↵ | |
12 | panel5.setLayout(new FormLayout(new ColumnSpec[] {↵ | 37 | panel5.setLayout(new FormLayout(new ColumnSpec[] {↵ | |
13 | new ColumnSpec(ColumnSpec.FILL,↵ | 38 | new ColumnSpec(ColumnSpec.FILL,↵ | |
14 | Sizes.DEFAULT,↵ | 39 | Sizes.DEFAULT,↵ | |
15 | FormSpec.DEFAULT_GROW),↵ | 40 | FormSpec.DEFAULT_GROW),↵ | |
16 | FormFactory.LABEL_COMPONENT_GAP_COLSPEC,↵ | 41 | FormFactory.LABEL_COMPONENT_GAP_COLSPEC,↵ | |
17 | FormFactory.DEFAULT_COLSPEC }, RowSpec↵ | 42 | FormFactory.DEFAULT_COLSPEC }, RowSpec↵ | |
18 | .decodeSpecs("fill:default")));↵ | 43 | .decodeSpecs("fill:default")));↵ | |
19 | // ---- weblogTextField ----↵ | 44 | // ---- weblogTextField ----↵ | |
20 | weblogTextField.setColumns(20);↵ | 45 | weblogTextField.setColumns(20);↵ | |
21 | panel5.add(weblogTextField, cc.xy(1, 1));↵ | 46 | panel5.add(weblogTextField, cc.xy(1, 1));↵ | |
22 | // ---- weblogButton ----↵ | 47 | // ---- weblogButton ----↵ | |
23 | panel5.add(weblogButton, cc.xy(3, 1));↵ | 48 | panel5.add(weblogButton, cc.xy(3, 1));↵ | |
24 | }↵ | 49 | }↵ | |
25 | personalInfoPanel.add(panel5, cc.xywh(3, 5, 5, 1));↵ | 50 | personalInfoPanel.add(panel5, cc.xywh(3, 5, 5, 1));↵ | |
26 | // ---- calendarLabel ----↵ | 51 | // ---- calendarLabel ----↵ | |
27 | calendarLabel.setText(bundle↵ | 52 | calendarLabel.setText(bundle↵ | |
28 | .getString("calendarLabel.text"));↵ | 53 | .getString("calendarLabel.text"));↵ | |
29 | calendarLabel.setLabelFor(calendarTextField);↵ | 54 | calendarLabel.setLabelFor(calendarTextField);↵ | |
30 | personalInfoPanel.add(calendarLabel, cc.xywh(1, 7, 1,↵ | 55 | personalInfoPanel.add(calendarLabel, cc.xywh(1, 7, 1,↵ | |
31 | 1, CellConstraints.RIGHT,↵ | 56 | 1, CellConstraints.RIGHT,↵ | |
32 | CellConstraints.DEFAULT));↵ | 57 | CellConstraints.DEFAULT));↵ | |
33 | // ======== panel6 ========↵ | 58 | // ======== panel6 ========↵ | |
34 | {↵ | 59 | {↵ | |
35 | panel6.setLayout(new FormLayout(new ColumnSpec[] {↵ | 60 | panel6.setLayout(new FormLayout(new ColumnSpec[] {↵ | |
36 | new ColumnSpec(ColumnSpec.FILL,↵ | 61 | new ColumnSpec(ColumnSpec.FILL,↵ | |
37 | Sizes.DEFAULT,↵ | 62 | Sizes.DEFAULT,↵ | |
38 | FormSpec.DEFAULT_GROW),↵ | 63 | FormSpec.DEFAULT_GROW),↵ | |
39 | FormFactory.LABEL_COMPONENT_GAP_COLSPEC,↵ | 64 | FormFactory.LABEL_COMPONENT_GAP_COLSPEC,↵ | |
40 | FormFactory.DEFAULT_COLSPEC }, RowSpec↵ | 65 | FormFactory.DEFAULT_COLSPEC }, RowSpec↵ | |
41 | .decodeSpecs("fill:default")));↵ | 66 | .decodeSpecs("fill:default")));↵ | |
42 | // ---- calendarTextField ----↵ | 67 | // ---- calendarTextField ----↵ | |
43 | calendarTextField.setColumns(20);↵ | 68 | calendarTextField.setColumns(20);↵ | |
44 | panel6.add(calendarTextField, cc.xy(1, 1));↵ | 69 | panel6.add(calendarTextField, cc.xy(1, 1));↵ | |
45 | // ---- calendarButton ----↵ | 70 | // ---- calendarButton ----↵ | |
46 | panel6.add(calendarButton, cc.xy(3, 1));↵ | 71 | panel6.add(calendarButton, cc.xy(3, 1));↵ | |
47 | }↵ | 72 | }↵ | |
48 | personalInfoPanel.add(panel6, cc.xywh(3, 7, 5, 1));↵ | 73 |
| |
49 | // ---- freebusyLabel ----↵ | |||
50 | freebusyLabel.setText(bundle↵ | |||
51 | .getString("freebusyLabel.text"));↵ | |||
52 | freebusyLabel.setLabelFor(freebusyTextField);↵ | |||
53 | personalInfoPanel.add(freebusyLabel, cc.xywh(1, 9, 1,↵ | |||
54 | 1, CellConstraints.RIGHT,↵ | |||
55 | CellConstraints.DEFAULT));↵ | |||
56 | // ======== panel8 ========↵ | |||
57 | {↵ | |||
58 | panel8.setLayout(new FormLayout(new ColumnSpec[] {↵ | |||
59 | new ColumnSpec(ColumnSpec.FILL,↵ | |||
60 | Sizes.DEFAULT,↵ | |||
61 | FormSpec.DEFAULT_GROW),↵ | |||
62 | FormFactory.LABEL_COMPONENT_GAP_COLSPEC,↵ | |||
63 | FormFactory.DEFAULT_COLSPEC }, RowSpec↵ | |||
64 | .decodeSpecs("fill:default")));↵ | |||
65 | // ---- freebusyTextField ----↵ | |||
66 | freebusyTextField.setColumns(20);↵ | |||
67 | panel8.add(freebusyTextField, cc.xy(1, 1));↵ | |||
68 | // ---- freebusyButton ----↵ | |||
69 | panel8.add(freebusyButton, cc.xy(3, 1));↵ | |||
70 | }↵ | |||
71 | personalInfoPanel.add(panel8, cc.xywh(3, 9, 5, 1)); | |||
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 the same method |
Number of node comparisons | 625 |
Number of mapped statements | 25 |
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 | |||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
84 | personalInfoPanel.add(panel1, cc.xywh(3, 3, 5, 1)); |
| 76 | personalInfoPanel.add(webAddressSeparator, cc.xywh(1, 1, 7, 1)); | ||||||||||||||||||||||
85 | weblogLabel.setText(bundle.getString("weblogLabel.text")); |
| 77 | homepageLabel.setText(bundle.getString("homepageLabel.text")); | ||||||||||||||||||||||
86 | weblogLabel.setLabelFor(weblogTextField); | 86 | weblogLabel.setLabelFor(weblogTextField); | |||||||||||||||||||||||
87 | personalInfoPanel.add(weblogLabel, cc.xywh(1, 5, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); |
| 79 | personalInfoPanel.add(homepageLabel, cc.xywh(1, 3, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); | ||||||||||||||||||||||
88 | panel5.setLayout(new FormLayout(new ColumnSpec[] {new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC}, RowSpec.decodeSpecs("fill:default"))); | 88 | panel5.setLayout(new FormLayout(new ColumnSpec[] {new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC}, RowSpec.decodeSpecs("fill:default"))); | |||||||||||||||||||||||
89 | weblogTextField.setColumns(20); | 89 | weblogTextField.setColumns(20); | |||||||||||||||||||||||
90 | panel5.add(weblogTextField, cc.xy(1, 1)); | 90 | panel5.add(weblogTextField, cc.xy(1, 1)); | |||||||||||||||||||||||
91 | panel5.add(weblogButton, cc.xy(3, 1)); | 91 | panel5.add(weblogButton, cc.xy(3, 1)); | |||||||||||||||||||||||
92 | personalInfoPanel.add(panel5, cc.xywh(3, 5, 5, 1)); |
| 84 | personalInfoPanel.add(panel1, cc.xywh(3, 3, 5, 1)); | ||||||||||||||||||||||
93 | calendarLabel.setText(bundle.getString("calendarLabel.text")); |
| 85 | weblogLabel.setText(bundle.getString("weblogLabel.text")); | ||||||||||||||||||||||
94 | calendarLabel.setLabelFor(calendarTextField); | 94 | calendarLabel.setLabelFor(calendarTextField); | |||||||||||||||||||||||
95 | personalInfoPanel.add(calendarLabel, cc.xywh(1, 7, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); |
| 87 | personalInfoPanel.add(weblogLabel, cc.xywh(1, 5, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); | ||||||||||||||||||||||
96 | panel6.setLayout(new FormLayout(new ColumnSpec[] {new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC}, RowSpec.decodeSpecs("fill:default"))); | 96 | panel6.setLayout(new FormLayout(new ColumnSpec[] {new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC}, RowSpec.decodeSpecs("fill:default"))); | |||||||||||||||||||||||
97 | calendarTextField.setColumns(20); | 97 | calendarTextField.setColumns(20); | |||||||||||||||||||||||
98 | panel6.add(calendarTextField, cc.xy(1, 1)); | 98 | panel6.add(calendarTextField, cc.xy(1, 1)); | |||||||||||||||||||||||
99 | panel6.add(calendarButton, cc.xy(3, 1)); | 99 | panel6.add(calendarButton, cc.xy(3, 1)); | |||||||||||||||||||||||
100 | personalInfoPanel.add(panel6, cc.xywh(3, 7, 5, 1)); |
| 92 | personalInfoPanel.add(panel5, cc.xywh(3, 5, 5, 1)); | ||||||||||||||||||||||
101 | freebusyLabel.setText(bundle.getString("freebusyLabel.text")); |
| 93 | calendarLabel.setText(bundle.getString("calendarLabel.text")); | ||||||||||||||||||||||
102 | freebusyLabel.setLabelFor(freebusyTextField); |
| 78 | homepageLabel.setLabelFor(homepageTextField); | ||||||||||||||||||||||
103 | personalInfoPanel.add(freebusyLabel, cc.xywh(1, 9, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); |
| 95 | personalInfoPanel.add(calendarLabel, cc.xywh(1, 7, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); | ||||||||||||||||||||||
104 | panel8.setLayout(new FormLayout(new ColumnSpec[] {new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC}, RowSpec.decodeSpecs("fill:default"))); |
| 80 | panel1.setLayout(new FormLayout(new ColumnSpec[] {new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(ColumnSpec.CENTER, Sizes.DEFAULT, FormSpec.NO_GROW)}, RowSpec.decodeSpecs("fill:default"))); | ||||||||||||||||||||||
105 | freebusyTextField.setColumns(20); |
| 81 | homepageTextField.setColumns(20); | ||||||||||||||||||||||
106 | panel8.add(freebusyTextField, cc.xy(1, 1)); |
| 82 | panel1.add(homepageTextField, cc.xy(1, 1)); | ||||||||||||||||||||||
107 | panel8.add(freebusyButton, cc.xy(3, 1)); |
| 83 | panel1.add(homepageButton, cc.xy(3, 1)); | ||||||||||||||||||||||
108 | personalInfoPanel.add(panel8, cc.xywh(3, 9, 5, 1)); |
| 100 | personalInfoPanel.add(panel6, cc.xywh(3, 7, 5, 1)); |
Row | Violation |
---|