File path: /columba-1.4-src/calendar/src/main/java/org/columba/calendar/ui/dialog/RecurrenceDialog.java | File path: /columba-1.4-src/calendar/src/main/java/org/columba/calendar/ui/dialog/EditEventDialog.java | |||
Method name: void RecurrenceDialog(Frame, IEventInfo)
|
Method name: void EditEventDialog(JFrame, IEventInfo)
|
|||
Number of AST nodes: 9 | Number of AST nodes: 9 | |||
1 | setLayout(new BorderLayout()); ↵ | 1 | setLayout(new BorderLayout());↵ | |
2 | getContentPane().add( ↵ | 2 | getContentPane().add(↵ | |
3 | new DialogHeaderPanel("Recurrence", ↵ | 3 | new DialogHeaderPanel("New Appointment",↵ | |
4 | "Edit Recurrence Properties", ImageLoader ↵ | 4 | "Edit Appointment Properties", ImageLoader↵ | |
5 | .getIcon(IconKeys.USER)), ↵ | 5 | .getIcon(IconKeys.USER)),↵ | |
6 | BorderLayout.NORTH); ↵ | 6 | BorderLayout.NORTH);↵ | |
7 | getContentPane().add(createPanel(), BorderLayout.CENTER); ↵ | 7 | getContentPane().add(createPanel(), BorderLayout.CENTER);↵ | |
8 | getContentPane().add(createButtonPanel(), BorderLayout.SOUTH);↵ | 8 | getContentPane().add(createButtonPanel(), BorderLayout.SOUTH);↵ | |
9 | ↵ | |||
10 | getRootPane().registerKeyboardAction(this, "CANCEL", ↵ | 9 | getRootPane().registerKeyboardAction(this, "CANCEL",↵ | |
11 | KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE, 0), ↵ | 10 | KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE, 0),↵ | |
12 | JComponent.WHEN_IN_FOCUSED_WINDOW);↵ | 11 | JComponent.WHEN_IN_FOCUSED_WINDOW);↵ | |
13 | ↵ | |||
14 | updateComponents(true);↵ | 12 | updateComponents(true);↵ | |
15 | ↵ | |||
16 | pack(); ↵ | 13 | pack();↵ | |
17 | setLocationRelativeTo(null); ↵ | 14 | setLocationRelativeTo(null);↵ | |
18 | setVisible(true); | 15 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
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 having the same super class |
Number of node comparisons | 81 |
Number of mapped statements | 9 |
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 | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4 | setLayout(new BorderLayout()); | 21 | setLayout(new BorderLayout()); | ||||||||||||||
5 | getContentPane().add(new DialogHeaderPanel("Recurrence", "Edit Recurrence Properties", ImageLoader.getIcon(IconKeys.USER)), BorderLayout.NORTH); |
| 22 | getContentPane().add(new DialogHeaderPanel("New Appointment", "Edit Appointment Properties", ImageLoader.getIcon(IconKeys.USER)), BorderLayout.NORTH); | |||||||||||||
6 | getContentPane().add(createPanel(), BorderLayout.CENTER); | 23 | getContentPane().add(createPanel(), BorderLayout.CENTER); | ||||||||||||||
7 | getContentPane().add(createButtonPanel(), BorderLayout.SOUTH); | 24 | getContentPane().add(createButtonPanel(), BorderLayout.SOUTH); | ||||||||||||||
8 | getRootPane().registerKeyboardAction(this, "CANCEL", KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE, 0), JComponent.WHEN_IN_FOCUSED_WINDOW); | 25 | getRootPane().registerKeyboardAction(this, "CANCEL", KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE, 0), JComponent.WHEN_IN_FOCUSED_WINDOW); | ||||||||||||||
9 | updateComponents(true); | 26 | updateComponents(true); | ||||||||||||||
10 | pack(); | 27 | pack(); | ||||||||||||||
11 | setLocationRelativeTo(null); | 28 | setLocationRelativeTo(null); | ||||||||||||||
12 | setVisible(true); | 29 | setVisible(true); |
Row | Violation |
---|