File path: /jEdit-4.2/src/org/gjt/sp/jedit/options/BrowserColorsOptionPane.java | File path: /jEdit-4.2/src/org/gjt/sp/jedit/options/ToolBarOptionPane.java | |||
Method name: void _init()
|
Method name: void _init()
|
|||
Number of AST nodes: 20 | Number of AST nodes: 20 | |||
1 | JPanel buttons = new JPanel();↵ | 1 | JPanel buttons = new JPanel();↵ | |
2 | buttons.setBorder(new EmptyBorder(3,0,0,0));↵ | 2 | buttons.setBorder(new EmptyBorder(3,0,0,0));↵ | |
3 | buttons.setLayout(new BoxLayout(buttons,BoxLayout.X_AXIS));↵ | 3 | buttons.setLayout(new BoxLayout(buttons,BoxLayout.X_AXIS));↵ | |
4 | ActionHandler actionHandler = new ActionHandler();↵ | 4 | ActionHandler actionHandler = new ActionHandler();↵ | |
5 | add = new RolloverButton(GUIUtilities.loadIcon("Plus.png"));↵ | 5 | add = new RolloverButton(GUIUtilities.loadIcon("Plus.png"));↵ | |
6 | add.setToolTipText(jEdit.getProperty("common.add"));↵ | 6 | add.setToolTipText(jEdit.getProperty("options.toolbar.add"));↵ | |
7 | add.addActionListener(actionHandler);↵ | 7 | add.addActionListener(actionHandler);↵ | |
8 | buttons.add(add);↵ | 8 | buttons.add(add);↵ | |
9 | buttons.add(Box.createHorizontalStrut(6));↵ | 9 | buttons.add(Box.createHorizontalStrut(6));↵ | |
10 | remove = new RolloverButton(GUIUtilities.loadIcon("Minus.png"));↵ | 10 | remove = new RolloverButton(GUIUtilities.loadIcon("Minus.png"));↵ | |
11 | remove.setToolTipText(jEdit.getProperty("common.remove"));↵ | 11 | remove.setToolTipText(jEdit.getProperty("options.toolbar.remove"));↵ | |
12 | remove.addActionListener(actionHandler);↵ | 12 | remove.addActionListener(actionHandler);↵ | |
13 | buttons.add(remove);↵ | 13 | buttons.add(remove);↵ | |
14 | buttons.add(Box.createHorizontalStrut(6));↵ | 14 | buttons.add(Box.createHorizontalStrut(6));↵ | |
15 | moveUp = new RolloverButton(GUIUtilities.loadIcon("ArrowU.png"));↵ | 15 | moveUp = new RolloverButton(GUIUtilities.loadIcon("ArrowU.png"));↵ | |
16 | moveUp.setToolTipText(jEdit.getProperty("common.moveUp"));↵ | 16 | moveUp.setToolTipText(jEdit.getProperty("options.toolbar.moveUp"));↵ | |
17 | moveUp.addActionListener(actionHandler);↵ | 17 | moveUp.addActionListener(actionHandler);↵ | |
18 | buttons.add(moveUp);↵ | 18 | buttons.add(moveUp);↵ | |
19 | buttons.add(Box.createHorizontalStrut(6));↵ | 19 | buttons.add(Box.createHorizontalStrut(6));↵ | |
20 | moveDown = new RolloverButton(GUIUtilities.loadIcon("ArrowD.png")); | 20 |
| |
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 | 189 |
Number of mapped statements | 16 |
Number of unmapped statements in the first code fragment | 4 |
Number of unmapped statements in the second code fragment | 4 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
15 | JPanel buttons = new JPanel(); | 38 | JPanel buttons = new JPanel(); | ||||||||||||||
16 | buttons.setBorder(new EmptyBorder(3, 0, 0, 0)); | 39 | buttons.setBorder(new EmptyBorder(3, 0, 0, 0)); | ||||||||||||||
17 | buttons.setLayout(new BoxLayout(buttons, BoxLayout.X_AXIS)); | 40 | buttons.setLayout(new BoxLayout(buttons, BoxLayout.X_AXIS)); | ||||||||||||||
18 | ActionHandler actionHandler = new ActionHandler(); | | |||||||||||||||
| 41 | ActionHandler actionHandler = new ActionHandler(); | |||||||||||||||
19 | add = new RolloverButton(GUIUtilities.loadIcon("Plus.png")); |
| 42 | add = new RolloverButton(GUIUtilities.loadIcon("Plus.png")); | |||||||||||||
20 | add.setToolTipText(jEdit.getProperty("common.add")); |
| 43 | add.setToolTipText(jEdit.getProperty("options.toolbar.add")); | |||||||||||||
21 | add.addActionListener(actionHandler); | | |||||||||||||||
| 44 | add.addActionListener(actionHandler); | |||||||||||||||
22 | buttons.add(add); |
| 45 | buttons.add(add); | |||||||||||||
23 | buttons.add(Box.createHorizontalStrut(6)); | 46 | buttons.add(Box.createHorizontalStrut(6)); | ||||||||||||||
24 | remove = new RolloverButton(GUIUtilities.loadIcon("Minus.png")); |
| 47 | remove = new RolloverButton(GUIUtilities.loadIcon("Minus.png")); | |||||||||||||
25 | remove.setToolTipText(jEdit.getProperty("common.remove")); |
| 48 | remove.setToolTipText(jEdit.getProperty("options.toolbar.remove")); | |||||||||||||
26 | remove.addActionListener(actionHandler); | | |||||||||||||||
| 49 | remove.addActionListener(actionHandler); | |||||||||||||||
27 | buttons.add(remove); |
| 50 | buttons.add(remove); | |||||||||||||
28 | buttons.add(Box.createHorizontalStrut(6)); | 51 | buttons.add(Box.createHorizontalStrut(6)); | ||||||||||||||
29 | moveUp = new RolloverButton(GUIUtilities.loadIcon("ArrowU.png")); |
| 52 | moveUp = new RolloverButton(GUIUtilities.loadIcon("ArrowU.png")); | |||||||||||||
30 | moveUp.setToolTipText(jEdit.getProperty("common.moveUp")); |
| 53 | moveUp.setToolTipText(jEdit.getProperty("options.toolbar.moveUp")); | |||||||||||||
31 | moveUp.addActionListener(actionHandler); | | |||||||||||||||
| 54 | moveUp.addActionListener(actionHandler); | |||||||||||||||
32 | buttons.add(moveUp); |
| 55 | buttons.add(moveUp); | |||||||||||||
33 | buttons.add(Box.createHorizontalStrut(6)); | 56 | buttons.add(Box.createHorizontalStrut(6)); | ||||||||||||||
34 | moveDown = new RolloverButton(GUIUtilities.loadIcon("ArrowD.png")); |
| 57 | moveDown = new RolloverButton(GUIUtilities.loadIcon("ArrowD.png")); |
Row | Violation |
---|