File path: /columba-1.4-src/calendar/src/main/java/org/columba/calendar/ui/action/NewAppointmentAction.java | File path: /columba-1.4-src/calendar/src/main/java/org/columba/calendar/ui/action/GoNextAction.java | |||
Method name: void NewAppointmentAction(IFrameMediator)
|
Method name: void GoNextAction(IFrameMediator)
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | super(frameMediator, "New Appointment");↵ | 1 | super(frameMediator, "Go Next");↵ | |
2 | ↵ | |||
2 | putValue(AbstractColumbaAction.TOOLBAR_NAME, "New Appointment");↵ | 3 | putValue(AbstractColumbaAction.TOOLBAR_NAME, "Next");↵ | |
3 | setShowToolBarText(true);↵ | 4 | setShowToolBarText(false);↵ | |
4 | putValue(AbstractColumbaAction.LARGE_ICON, ResourceLoader↵ | 5 | putValue(AbstractColumbaAction.SMALL_ICON, ↵ | |
5 | .getIcon(IconKeys.NEW_APPOINTMENT));↵ | 6 | ImageLoader.getSmallIcon(IconKeys.GO_NEXT));↵ | |
6 | putValue(AbstractColumbaAction.SMALL_ICON, ResourceLoader↵ | 7 | putValue(AbstractColumbaAction.LARGE_ICON, ↵ | |
7 | .getSmallIcon(IconKeys.NEW_APPOINTMENT)); | 8 | ImageLoader.getIcon(IconKeys.GO_NEXT)); | |
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 having the same super class |
Number of node comparisons | 25 |
Number of mapped statements | 3 |
Number of unmapped statements in the first code fragment | 2 |
Number of unmapped statements in the second code fragment | 2 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | super(frameMediator, "New Appointment"); |
| 1 | super(frameMediator, "Go Next"); | ||||||||||||
2 | putValue(AbstractColumbaAction.TOOLBAR_NAME, "New Appointment"); |
| 2 | putValue(AbstractColumbaAction.TOOLBAR_NAME, "Next"); | ||||||||||||
3 | setShowToolBarText(true); |
| 3 | setShowToolBarText(false); | ||||||||||||
|
| 4 | putValue(AbstractColumbaAction.SMALL_ICON, ImageLoader.getSmallIcon(IconKeys.GO_NEXT)); | |||||||||||||
4 | putValue(AbstractColumbaAction.LARGE_ICON, ResourceLoader.getIcon(IconKeys.NEW_APPOINTMENT)); |
| | |||||||||||||
|
| 5 | putValue(AbstractColumbaAction.LARGE_ICON, ImageLoader.getIcon(IconKeys.GO_NEXT)); | |||||||||||||
5 | putValue(AbstractColumbaAction.SMALL_ICON, ResourceLoader.getSmallIcon(IconKeys.NEW_APPOINTMENT)); |
| |
Row | Violation |
---|---|
1 | Super constructor call super(frameMediator,"New Appointment"); cannot be extracted from constructor |
2 | Super constructor call super(frameMediator,"Go Next"); cannot be extracted from constructor |
3 | Unmatched statement putValue(AbstractColumbaAction.SMALL_ICON,ImageLoader.getSmallIcon(IconKeys.GO_NEXT)); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted |
4 | Unmatched statement putValue(AbstractColumbaAction.LARGE_ICON,ResourceLoader.getIcon(IconKeys.NEW_APPOINTMENT)); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted |
5 | Unmatched statement putValue(AbstractColumbaAction.LARGE_ICON,ImageLoader.getIcon(IconKeys.GO_NEXT)); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted |
6 | Unmatched statement putValue(AbstractColumbaAction.SMALL_ICON,ResourceLoader.getSmallIcon(IconKeys.NEW_APPOINTMENT)); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted |