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 | 6 |
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) | 0.0 |
Clone type | Type 3 |
ID | Statement | ID | Statement | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2 | cutAction.setEnabled(false); |
| 24 | defaultRadioButton.setEnabled(true); | |||||||||||||||||
3 | copyAction.setEnabled(false); |
| 25 | chooseRadioButton.setEnabled(true); | |||||||||||||||||
4 | pasteAction.setEnabled(false); |
| 26 | chooseButton.setEnabled(true); | |||||||||||||||||
5 | deleteAction.setEnabled(false); |
| 27 | defaultRadioButton.setEnabled(false); | |||||||||||||||||
6 | undoAction.setEnabled(false); |
| 28 | chooseRadioButton.setEnabled(false); | |||||||||||||||||
7 | redoAction.setEnabled(false); |
| 29 | chooseButton.setEnabled(false); | |||||||||||||||||
8 | selectAllAction.setEnabled(false); |
| | ||||||||||||||||||
9 | return; |
| |
Row | Violation |
---|---|
1 | Type org.columba.core.gui.action.AbstractColumbaAction of variable cutAction does not match with type javax.swing.JRadioButton of variable defaultRadioButton |
2 | Type org.columba.core.gui.action.AbstractColumbaAction of variable copyAction does not match with type javax.swing.JRadioButton of variable chooseRadioButton |
3 | Type org.columba.core.gui.action.AbstractColumbaAction of variable pasteAction does not match with type javax.swing.JButton of variable chooseButton |
4 | Type org.columba.core.gui.action.AbstractColumbaAction of variable deleteAction does not match with type javax.swing.JRadioButton of variable defaultRadioButton |
5 | Type org.columba.core.gui.action.AbstractColumbaAction of variable undoAction does not match with type javax.swing.JRadioButton of variable chooseRadioButton |
6 | Type org.columba.core.gui.action.AbstractColumbaAction of variable redoAction does not match with type javax.swing.JButton of variable chooseButton |
7 | Unmatched statement selectAllAction.setEnabled(false); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted |
8 | Unmatched return; |