File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/config/columns/ColumnConfigDialog.java | File path: /columba-1.4-src/calendar/src/main/java/org/columba/calendar/ui/dialog/EditEventDialog.java | |||
Method name: void updateButtonState()
|
Method name: void actionPerformed(ActionEvent)
|
|||
Number of AST nodes: 5 | Number of AST nodes: 4 | |||
1 | if (selection.isSelected()) {↵ | 1 | if (action.↵ | |
2 | hideButton.setEnabled(true);↵ | |||
3 | show↵ | 2 | equals("Recurrence")) {↵ | |
3 | if (recurrenceCheckBox.isSelected()) {↵ | |||
4 | // enable button↵ | |||
4 | Button.setEnabled(false);↵ | 5 | recurrenceButton.setEnabled(true);↵ | |
5 | } else {↵ | 6 | } else {↵ | |
6 | showButton.setEnabled(true);↵ | 7 | ↵ | |
7 | hid↵ | 8 | // disable button↵ | |
8 | eButton.setEnabled(false);↵ | 9 | recurrenceButton.setEnabled(false);↵ | |
9 | ↵ | 10 | }↵ | |
10 | } | 11 | } | |
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.3 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 15 |
Number of mapped statements | 3 |
Number of unmapped statements in the first code fragment | 2 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 2.2 |
Clone type | Type 3 |
ID | Statement | ID | Statement | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | if (selection.isSelected()) |
| 20 | if (recurrenceCheckBox.isSelected()) | ||||||||||||||
2 | hideButton.setEnabled(true); |
| 21 | recurrenceButton.setEnabled(true); | ||||||||||||||
3 | showButton.setEnabled(false); | | ||||||||||||||||
else | else | |||||||||||||||||
4 | showButton.setEnabled(true); | | ||||||||||||||||
5 | hideButton.setEnabled(false); |
| 22 | recurrenceButton.setEnabled(false); |
Row | Violation |
---|---|
1 | Type org.frapuccino.checkablelist.CheckableItemImpl of variable selection does not match with type javax.swing.JCheckBox of variable recurrenceCheckBox |