File path: /jEdit-4.2/src/org/gjt/sp/jedit/menu/RecentDirectoriesProvider.java | File path: /jEdit-4.2/src/org/gjt/sp/jedit/menu/RecentFilesProvider.java | |||
Method name: void update(JMenu)
|
Method name: void update(JMenu)
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | JMenuItem menuItem = new JMenuItem(MiscUtilities↵ | 1 | JMenuItem menuItem = new JMenuItem(MiscUtilities↵ | |
2 | .getFileName(path));↵ | 2 | .getFileName(path));↵ | |
3 | menuItem.setActionCommand(path);↵ | 3 | menuItem.setActionCommand(path);↵ | |
4 | menuItem.addActionListener(actionListener);↵ | 4 | menuItem.addActionListener(actionListener);↵ | |
5 | menuItem.addMouseListener(mouseListener);↵ | 5 | menuItem.addMouseListener(mouseListener);↵ | |
6 | menuItem.setIcon(FileCellRenderer.dirIcon); | 6 | menuItem.setIcon(FileCellRenderer.fileIcon); | |
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 |
Number of node comparisons | 18 |
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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
15 | JMenuItem menuItem = new JMenuItem(MiscUtilities.getFileName(path)); | 16 | JMenuItem menuItem = new JMenuItem(MiscUtilities.getFileName(path)); | |||||||||||
16 | menuItem.setActionCommand(path); | 17 | menuItem.setActionCommand(path); | |||||||||||
17 | menuItem.addActionListener(actionListener); | 18 | menuItem.addActionListener(actionListener); | |||||||||||
18 | menuItem.addMouseListener(mouseListener); | 19 | menuItem.addMouseListener(mouseListener); | |||||||||||
19 | menuItem.setIcon(FileCellRenderer.dirIcon); |
| 20 | menuItem.setIcon(FileCellRenderer.fileIcon); |
Row | Violation |
---|