File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/profiles/ProfileChooserDialog.java | File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/profiles/ProfileManagerDialog.java | |||
Method name: void initComponents()
|
Method name: void initComponents()
|
|||
Number of AST nodes: 9 | Number of AST nodes: 9 | |||
1 | addButton = new ButtonWithMnemonic(GlobalResourceLoader.getString(↵ | 1 | addButton = new ButtonWithMnemonic(GlobalResourceLoader.getString(↵ | |
2 | RESOURCE_PATH, "profiles", "add"));↵ | 2 | RESOURCE_PATH, "profiles", "add"));↵ | |
3 | addButton.setActionCommand("ADD");↵ | 3 | addButton.setActionCommand("ADD");↵ | |
4 | addButton.addActionListener(this);↵ | 4 | addButton.addActionListener(this);↵ | |
5 | addButton.setEnabled(false);↵ | 5 | addButton.setEnabled(false);↵ | |
6 | ↵ | |||
7 | ↵ | |||
8 | editButton = new ButtonWithMnemonic(GlobalResourceLoader.getString(↵ | 6 | editButton = new ButtonWithMnemonic(GlobalResourceLoader.getString(↵ | |
9 | RESOURCE_PATH, "profiles", "edit"));↵ | 7 | RESOURCE_PATH, "profiles", "edit"));↵ | |
10 | editButton.setActionCommand("EDIT");↵ | 8 | editButton.setActionCommand("EDIT");↵ | |
11 | editButton.addActionListener(this);↵ | 9 | editButton.addActionListener(this);↵ | |
12 | editButton.setEnabled(false);↵ | 10 | editButton.setEnabled(false);↵ | |
13 | ↵ | |||
14 | nameLabel = new JLabel↵ | |||
15 | (GlobalResourceLoader.getString(↵ | 11 | removeButton = new ButtonWithMnemonic(GlobalResourceLoader.getString(↵ | |
16 | RESOURCE_PATH,↵ | 12 | RESOURCE_PATH,↵ | |
17 | "profiles", "label")); | 13 | "profiles", "remove")); | |
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 | 42 |
Number of mapped statements | 9 |
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 | addButton = new ButtonWithMnemonic(GlobalResourceLoader.getString(RESOURCE_PATH, "profiles", "add")); | 1 | addButton = new ButtonWithMnemonic(GlobalResourceLoader.getString(RESOURCE_PATH, "profiles", "add")); | ||||||||||||||||||||||
2 | addButton.setActionCommand("ADD"); | 2 | addButton.setActionCommand("ADD"); | ||||||||||||||||||||||
3 | addButton.addActionListener(this); | 3 | addButton.addActionListener(this); | ||||||||||||||||||||||
4 | addButton.setEnabled(false); | 4 | addButton.setEnabled(false); | ||||||||||||||||||||||
5 | editButton = new ButtonWithMnemonic(GlobalResourceLoader.getString(RESOURCE_PATH, "profiles", "edit")); | 5 | editButton = new ButtonWithMnemonic(GlobalResourceLoader.getString(RESOURCE_PATH, "profiles", "edit")); | ||||||||||||||||||||||
6 | editButton.setActionCommand("EDIT"); | 6 | editButton.setActionCommand("EDIT"); | ||||||||||||||||||||||
7 | editButton.addActionListener(this); | 7 | editButton.addActionListener(this); | ||||||||||||||||||||||
8 | editButton.setEnabled(false); | 8 | editButton.setEnabled(false); | ||||||||||||||||||||||
9 | nameLabel = new JLabel(GlobalResourceLoader.getString(RESOURCE_PATH, "profiles", "label")); |
| 9 | removeButton = new ButtonWithMnemonic(GlobalResourceLoader.getString(RESOURCE_PATH, "profiles", "remove")); |
Row | Violation |
---|---|
1 | Expression new JLabel(GlobalResourceLoader.getString(RESOURCE_PATH,"profiles","label")) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
2 | Expression new ButtonWithMnemonic(GlobalResourceLoader.getString(RESOURCE_PATH,"profiles","remove")) cannot be parameterized, because it has dependencies to/from statements that will be extracted |