File path: /columba-1.4-src/contact/src/main/java/org/columba/addressbook/gui/focus/FocusManager.java | File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/config/account/ReceiveOptionsPanel.java | |||
Method name: void enableActions(FocusOwner)
|
Method name: void updateComponents(boolean)
|
|||
Number of AST nodes: 8 | Number of AST nodes: 7 | |||
1 | cutAction.setEnabled(false);↵ | |||
2 | copyActi↵ | 1 | if (playsoundCheckBox.isSelected()) {↵ | |
3 | on.setEnabled(false);↵ | 2 | defaultRadioButton.setEnabled(true);↵ | |
4 | pasteAction.setEnabled(false);↵ | 3 | chooseRadioButton.setEnabled(true);↵ | |
5 | deleteAction.setEnabled(fa↵ | 4 | chooseButton.setEnabled(true);↵ | |
6 | lse);↵ | 5 | } else {↵ | |
7 | undoAction.setEnabled(false);↵ | 6 | defaultRadioButton.setEnabled(false);↵ | |
8 | redoAction.setEnabled(false);↵ | 7 | chooseRadioButton.setEnabled(false);↵ | |
9 | selectAllAction.setEnabled(false);↵ | 8 | chooseButton.setEnabled(false);↵ | |
10 | return; | 9 | } | |
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 different classes |
Number of node comparisons | 48 |
Number of mapped statements | 3 |
Number of unmapped statements in the first code fragment | 5 |
Number of unmapped statements in the second code fragment | 3 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 3 |
ID | Statement | ID | Statement | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2 | cutAction.setEnabled(false); | | ||||||||||||||||
3 | copyAction.setEnabled(false); | | ||||||||||||||||
4 | pasteAction.setEnabled(false); | | ||||||||||||||||
5 | deleteAction.setEnabled(false); | | ||||||||||||||||
| 24 | defaultRadioButton.setEnabled(true); | ||||||||||||||||
| 25 | chooseRadioButton.setEnabled(true); | ||||||||||||||||
| 26 | chooseButton.setEnabled(true); | ||||||||||||||||
6 | undoAction.setEnabled(false); |
| 29 | chooseButton.setEnabled(false); | ||||||||||||||
7 | redoAction.setEnabled(false); |
| 28 | chooseRadioButton.setEnabled(false); | ||||||||||||||
8 | selectAllAction.setEnabled(false); |
| 27 | defaultRadioButton.setEnabled(false); | ||||||||||||||
9 | return; |
| |
Row | Violation |
---|---|
1 | Type org.columba.core.gui.action.AbstractColumbaAction of variable undoAction does not match with type javax.swing.JButton of variable chooseButton |
2 | Type org.columba.core.gui.action.AbstractColumbaAction of variable redoAction does not match with type javax.swing.JRadioButton of variable chooseRadioButton |
3 | Type org.columba.core.gui.action.AbstractColumbaAction of variable selectAllAction does not match with type javax.swing.JRadioButton of variable defaultRadioButton |
4 | Unmatched return; |