ICalendarStore store = ((CalendarCommandReference) getReference())
.getStore();
ICalendarItem calendar = ((CalendarCommandReference) getReference())
.getSrcCalendar();
new CalendarExporter()
.exportCalendar(destFile, calendar.getId(), store);
String action = arg0.getActionCommand();
JRadioButtonMenuItem m = (JRadioButtonMenuItem) arg0.getSource();
setText(m.getText());
fireItemStateChanged(new ItemEvent(this, 0, action, ItemEvent.SELECTED));
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/calendar/src/main/java/org/columba/calendar/command/ExportCalendarCommand.java
|
|
File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/base/ComboMenu.java
|
Method name: void execute(IWorkerStatusController)
|
|
Method name: void actionPerformed(ActionEvent)
|
Number of AST nodes: 3
|
|
Number of AST nodes: 4
|
|
1 | ICalendarStore store = ((CalendarCommandReference) getReference())↵ | | 1 | String action = arg0.getActionCommand();↵
|
2 | .getStore();↵ | | 2 | ↵
|
3 | ICalendarItem calendar = ((CalendarCommandReference) getReference())↵ | | 3 | JRadioButtonMenuItem m = (JRadioButtonMenuItem) arg0.getSource();↵
|
|
4 | .getSrcCalendar();↵ | | 4 | ↵
|
|
5 | new CalendarExporter()↵ | | |
|
6 | .exportCalendar(destFile, calendar.getId(), store↵ | | 5 | setText(m.getText());↵
|
|
7 | ); | | 6 | fireItemStateChanged(new ItemEvent(this, 0, action, ItemEvent.SELECTED));
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 0 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | Clones are in different classes |
Number of node comparisons | 12 |