File path: /jEdit-4.2/src/org/gjt/sp/jedit/menu/RecentFilesProvider.java | File path: /jEdit-4.2/src/org/gjt/sp/jedit/menu/RecentDirectoriesProvider.java | |||
Method name: void update(JMenu)
|
Method name: void update(JMenu)
|
|||
Number of AST nodes: 6 | Number of AST nodes: 6 | |||
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.fileIcon);↵ | 6 | menuItem.setIcon(FileCellRenderer.dirIcon);↵ | |
7 | if(sort)↵ | 7 | if(sort)↵ | |
8 | menuItems.addElement(menuItem); | 8 |
| |
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 | 25 |
Number of mapped statements | 7 |
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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
16 | JMenuItem menuItem = new JMenuItem(MiscUtilities.getFileName(path)); | 15 | JMenuItem menuItem = new JMenuItem(MiscUtilities.getFileName(path)); | |||||||||||
17 | menuItem.setActionCommand(path); | 16 | menuItem.setActionCommand(path); | |||||||||||
18 | menuItem.addActionListener(actionListener); | 17 | menuItem.addActionListener(actionListener); | |||||||||||
19 | menuItem.addMouseListener(mouseListener); | 18 | menuItem.addMouseListener(mouseListener); | |||||||||||
20 | menuItem.setIcon(FileCellRenderer.fileIcon); |
| 19 | menuItem.setIcon(FileCellRenderer.dirIcon); | ||||||||||
21 | if (sort) | 20 | if (sort) | |||||||||||
22 | menuItems.addElement(menuItem); | 21 | menuItems.addElement(menuItem); |
Row | Violation |
---|