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/TodayAction.java | |||
Method name: void NewAppointmentAction(IFrameMediator)
|
Method name: void TodayAction(IFrameMediator)
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | super(frameMediator, "New Appointment");↵ | 1 | super(frameMediator, "Show Today");↵ | |
2 | ↵ | |||
2 | putValue(AbstractColumbaAction.TOOLBAR_NAME, "New Appointment");↵ | 3 | putValue(AbstractColumbaAction.TOOLBAR_NAME, "Today");↵ | |
3 | setShowToolBarText(true);↵ | 4 | setShowToolBarText(false);↵ | |
5 | ↵ | |||
4 | putValue(AbstractColumbaAction.LARGE_ICON, ResourceLoader↵ | 6 | putValue(AbstractColumbaAction.LARGE_ICON, ImageLoader↵ | |
5 | .getIcon(IconKeys.NEW_APPOINTMENT));↵ | 7 | .getIcon(IconKeys.HOME));↵ | |
6 | putValue(AbstractColumbaAction.SMALL_ICON, ResourceLoader↵ | 8 | putValue(AbstractColumbaAction.SMALL_ICON, ImageLoader↵ | |
7 | .getSmallIcon(IconKeys.NEW_APPOINTMENT)); | 9 | .getSmallIcon(IconKeys.HOME)); | |
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 | 5 |
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 | super(frameMediator, "New Appointment"); |
| 1 | super(frameMediator, "Show Today"); | ||||||||||||||||||
2 | putValue(AbstractColumbaAction.TOOLBAR_NAME, "New Appointment"); |
| 2 | putValue(AbstractColumbaAction.TOOLBAR_NAME, "Today"); | ||||||||||||||||||
3 | setShowToolBarText(true); |
| 3 | setShowToolBarText(false); | ||||||||||||||||||
4 | putValue(AbstractColumbaAction.LARGE_ICON, ResourceLoader.getIcon(IconKeys.NEW_APPOINTMENT)); |
| 4 | putValue(AbstractColumbaAction.LARGE_ICON, ImageLoader.getIcon(IconKeys.HOME)); | ||||||||||||||||||
5 | putValue(AbstractColumbaAction.SMALL_ICON, ResourceLoader.getSmallIcon(IconKeys.NEW_APPOINTMENT)); |
| 5 | putValue(AbstractColumbaAction.SMALL_ICON, ImageLoader.getSmallIcon(IconKeys.HOME)); |
Row | Violation |
---|---|
1 | Super constructor call super(frameMediator,"New Appointment"); cannot be extracted from constructor |
2 | Super constructor call super(frameMediator,"Show Today"); cannot be extracted from constructor |
3 | Type org.columba.calendar.resourceloader.IconKeys does not match with type org.columba.core.resourceloader.IconKeys |
4 | Type org.columba.calendar.resourceloader.ResourceLoader does not match with type org.columba.core.resourceloader.ImageLoader |
5 | Type org.columba.calendar.resourceloader.IconKeys does not match with type org.columba.core.resourceloader.IconKeys |
6 | Type org.columba.calendar.resourceloader.ResourceLoader does not match with type org.columba.core.resourceloader.ImageLoader |