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 initComponents()
|
Method name: void initComponents()
|
|||
Number of AST nodes: 18 | Number of AST nodes: 18 | |||
1 | homepageLabel = new JLabel();↵ | |||
2 | panel1 = new JPanel();↵ | |||
3 | homepageTextField = new JTextField();↵ | |||
4 | homepageButton = new JButton(ImageLoader↵ | |||
5 | .getSmallIcon(IconKeys.INTERNET));↵ | |||
6 | homepageButton.setMargin(new Insets(0, 0, 0, 0));↵ | |||
7 | homepageButton.addActionListener(new ActionListener() {↵ | |||
8 | public void actionPerformed(ActionEvent e) {↵ | |||
9 | String s = homepageTextField.getText();↵ | |||
10 | try {↵ | |||
11 | URL url = new URL(s);↵ | |||
12 | ColumbaDesktop.getInstance().browse(url);↵ | |||
13 | } catch (MalformedURLException e1) {↵ | |||
14 | e1.printStackTrace();↵ | |||
15 | }↵ | |||
16 | }↵ | |||
17 | });↵ | |||
18 | weblogLabel = new JLabel();↵ | 1 | weblogLabel = new JLabel();↵ | |
19 | panel5 = new JPanel();↵ | 2 | panel5 = new JPanel();↵ | |
20 | weblogTextField = new JTextField();↵ | 3 | weblogTextField = new JTextField();↵ | |
21 | weblogButton = new JButton(ImageLoader.getSmallIcon(IconKeys.INTERNET));↵ | 4 | weblogButton = new JButton(ImageLoader.getSmallIcon(IconKeys.INTERNET));↵ | |
22 | weblogButton.setMargin(new Insets(0, 0, 0, 0));↵ | 5 | weblogButton.setMargin(new Insets(0, 0, 0, 0));↵ | |
23 | weblogButton.addActionListener(new ActionListener() {↵ | 6 | weblogButton.addActionListener(new ActionListener() {↵ | |
24 | public void actionPerformed(ActionEvent e) {↵ | 7 | public void actionPerformed(ActionEvent e) {↵ | |
25 | String s = weblogTextField.getText();↵ | 8 | String s = weblogTextField.getText();↵ | |
26 | try {↵ | 9 | try {↵ | |
27 | URL url = new URL(s);↵ | 10 | URL url = new URL(s);↵ | |
28 | ColumbaDesktop.getInstance().browse(url);↵ | 11 | ColumbaDesktop.getInstance().browse(url);↵ | |
29 | } catch (MalformedURLException e1) {↵ | 12 | } catch (MalformedURLException e1) {↵ | |
30 | e1.printStackTrace();↵ | 13 | e1.printStackTrace();↵ | |
31 | }↵ | 14 | }↵ | |
32 | }↵ | 15 | }↵ | |
33 | });↵ | 16 | });↵ | |
34 | calendarLabel = new JLabel();↵ | 17 | calendarLabel = new JLabel();↵ | |
35 | panel6 = new JPanel();↵ | 18 | panel6 = new JPanel();↵ | |
36 | calendarTextField = new JTextField();↵ | 19 | calendarTextField = new JTextField();↵ | |
37 | calendarButton = new JButton(ImageLoader↵ | 20 | calendarButton = new JButton(ImageLoader↵ | |
38 | .getSmallIcon(IconKeys.INTERNET));↵ | 21 | .getSmallIcon(IconKeys.INTERNET));↵ | |
39 | calendarButton.setMargin(new Insets(0, 0, 0, 0));↵ | 22 | calendarButton.setMargin(new Insets(0, 0, 0, 0));↵ | |
40 | calendarButton.addActionListener(new ActionListener() {↵ | 23 | calendarButton.addActionListener(new ActionListener() {↵ | |
41 | public void actionPerformed(ActionEvent e) {↵ | 24 | public void actionPerformed(ActionEvent e) {↵ | |
42 | String s = calendarTextField.getText();↵ | 25 | String s = calendarTextField.getText();↵ | |
43 | try {↵ | 26 | try {↵ | |
44 | URL url = new URL(s);↵ | 27 | URL url = new URL(s);↵ | |
45 | ColumbaDesktop.getInstance().browse(url);↵ | 28 | ColumbaDesktop.getInstance().browse(url);↵ | |
46 | } catch (MalformedURLException e1) {↵ | 29 | } catch (MalformedURLException e1) {↵ | |
47 | e1.printStackTrace();↵ | 30 | e1.printStackTrace();↵ | |
48 | }↵ | 31 | }↵ | |
49 | }↵ | 32 | }↵ | |
50 | }); | 33 | });↵ | |
34 | freebusyLabel = new JLabel();↵ | |||
35 | panel8 = new JPanel();↵ | |||
36 | freebusyTextField = new JTextField();↵ | |||
37 | freebusyButton = new JButton(ImageLoader↵ | |||
38 | .getSmallIcon(IconKeys.INTERNET));↵ | |||
39 | freebusyButton.setMargin(new Insets(0, 0, 0, 0));↵ | |||
40 | freebusyButton.addActionListener(new ActionListener() {↵ | |||
41 | public void actionPerformed(ActionEvent e) {↵ | |||
42 | String s = freebusyTextField.getText();↵ | |||
43 | try {↵ | |||
44 | URL url = new URL(s);↵ | |||
45 | ColumbaDesktop.getInstance().browse(url);↵ | |||
46 | } catch (MalformedURLException e1) {↵ | |||
47 | e1.printStackTrace();↵ | |||
48 | }↵ | |||
49 | }↵ | |||
50 |
| |||
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 the same method |
Number of node comparisons | 129 |
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 2 |
ID | Statement | ID | Statement | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
57 | homepageLabel = new JLabel(); |
| 63 | weblogLabel = new JLabel(); | |||||||||||||||||
58 | panel1 = new JPanel(); |
| 64 | panel5 = new JPanel(); | |||||||||||||||||
59 | homepageTextField = new JTextField(); |
| 65 | weblogTextField = new JTextField(); | |||||||||||||||||
60 | homepageButton = new JButton(ImageLoader.getSmallIcon(IconKeys.INTERNET)); |
| 66 | weblogButton = new JButton(ImageLoader.getSmallIcon(IconKeys.INTERNET)); | |||||||||||||||||
61 | homepageButton.setMargin(new Insets(0, 0, 0, 0)); |
| 67 | weblogButton.setMargin(new Insets(0, 0, 0, 0)); | |||||||||||||||||
62 | homepageButton.addActionListener(new ActionListener() {...}); |
| 68 | weblogButton.addActionListener(new ActionListener() {...}); | |||||||||||||||||
63 | weblogLabel = new JLabel(); |
| 69 | calendarLabel = new JLabel(); | |||||||||||||||||
64 | panel5 = new JPanel(); |
| 70 | panel6 = new JPanel(); | |||||||||||||||||
65 | weblogTextField = new JTextField(); |
| 71 | calendarTextField = new JTextField(); | |||||||||||||||||
66 | weblogButton = new JButton(ImageLoader.getSmallIcon(IconKeys.INTERNET)); |
| 72 | calendarButton = new JButton(ImageLoader.getSmallIcon(IconKeys.INTERNET)); | |||||||||||||||||
67 | weblogButton.setMargin(new Insets(0, 0, 0, 0)); |
| 73 | calendarButton.setMargin(new Insets(0, 0, 0, 0)); | |||||||||||||||||
68 | weblogButton.addActionListener(new ActionListener() {...}); |
| 74 | calendarButton.addActionListener(new ActionListener() {...}); | |||||||||||||||||
69 | calendarLabel = new JLabel(); |
| 75 | freebusyLabel = new JLabel(); | |||||||||||||||||
70 | panel6 = new JPanel(); |
| 76 | panel8 = new JPanel(); | |||||||||||||||||
71 | calendarTextField = new JTextField(); |
| 77 | freebusyTextField = new JTextField(); | |||||||||||||||||
72 | calendarButton = new JButton(ImageLoader.getSmallIcon(IconKeys.INTERNET)); |
| 78 | freebusyButton = new JButton(ImageLoader.getSmallIcon(IconKeys.INTERNET)); | |||||||||||||||||
73 | calendarButton.setMargin(new Insets(0, 0, 0, 0)); |
| 79 | freebusyButton.setMargin(new Insets(0, 0, 0, 0)); | |||||||||||||||||
74 | calendarButton.addActionListener(new ActionListener() {...}); |
| 80 | freebusyButton.addActionListener(new ActionListener() {...}); |
Row | Violation |
---|---|
1 | Expression homepageLabel is a field being modified, and thus it cannot be parameterized |
2 | Expression weblogLabel is a field being modified, and thus it cannot be parameterized |
3 | Expression panel1 is a field being modified, and thus it cannot be parameterized |
4 | Expression panel5 is a field being modified, and thus it cannot be parameterized |
5 | Expression homepageTextField is a field being modified, and thus it cannot be parameterized |
6 | Expression weblogTextField is a field being modified, and thus it cannot be parameterized |
7 | Expression homepageButton is a field being modified, and thus it cannot be parameterized |
8 | Expression weblogButton is a field being modified, and thus it cannot be parameterized |
9 | Expression homepageButton cannot be parameterized, because it has dependencies to/from statements that will be extracted |
10 | Expression weblogButton cannot be parameterized, because it has dependencies to/from statements that will be extracted |
11 | Expression homepageTextField cannot be parameterized, because it has dependencies to/from statements that will be extracted |
12 | Expression weblogTextField cannot be parameterized, because it has dependencies to/from statements that will be extracted |
13 | Expression homepageButton cannot be parameterized, because it has dependencies to/from statements that will be extracted |
14 | Expression weblogButton cannot be parameterized, because it has dependencies to/from statements that will be extracted |
15 | Expression weblogLabel is a field being modified, and thus it cannot be parameterized |
16 | Expression calendarLabel is a field being modified, and thus it cannot be parameterized |
17 | Expression panel5 is a field being modified, and thus it cannot be parameterized |
18 | Expression panel6 is a field being modified, and thus it cannot be parameterized |
19 | Expression weblogTextField is a field being modified, and thus it cannot be parameterized |
20 | Expression calendarTextField is a field being modified, and thus it cannot be parameterized |
21 | Expression weblogButton is a field being modified, and thus it cannot be parameterized |
22 | Expression calendarButton is a field being modified, and thus it cannot be parameterized |
23 | Expression weblogButton cannot be parameterized, because it has dependencies to/from statements that will be extracted |
24 | Expression calendarButton cannot be parameterized, because it has dependencies to/from statements that will be extracted |
25 | Expression weblogTextField cannot be parameterized, because it has dependencies to/from statements that will be extracted |
26 | Expression calendarTextField cannot be parameterized, because it has dependencies to/from statements that will be extracted |
27 | Expression weblogButton cannot be parameterized, because it has dependencies to/from statements that will be extracted |
28 | Expression calendarButton cannot be parameterized, because it has dependencies to/from statements that will be extracted |
29 | Expression calendarLabel is a field being modified, and thus it cannot be parameterized |
30 | Expression freebusyLabel is a field being modified, and thus it cannot be parameterized |
31 | Expression panel6 is a field being modified, and thus it cannot be parameterized |
32 | Expression panel8 is a field being modified, and thus it cannot be parameterized |
33 | Expression calendarTextField is a field being modified, and thus it cannot be parameterized |
34 | Expression freebusyTextField is a field being modified, and thus it cannot be parameterized |
35 | Expression calendarButton is a field being modified, and thus it cannot be parameterized |
36 | Expression freebusyButton is a field being modified, and thus it cannot be parameterized |
37 | Expression calendarButton cannot be parameterized, because it has dependencies to/from statements that will be extracted |
38 | Expression freebusyButton cannot be parameterized, because it has dependencies to/from statements that will be extracted |
39 | Expression calendarTextField cannot be parameterized, because it has dependencies to/from statements that will be extracted |
40 | Expression freebusyTextField cannot be parameterized, because it has dependencies to/from statements that will be extracted |
41 | Expression calendarButton cannot be parameterized, because it has dependencies to/from statements that will be extracted |
42 | Expression freebusyButton cannot be parameterized, because it has dependencies to/from statements that will be extracted |