File path: /jEdit-4.2/src/org/gjt/sp/jedit/options/ContextOptionPane.java | File path: /jEdit-4.2/src/org/gjt/sp/jedit/options/ToolBarOptionPane.java | |||
Method name: void ContextAddDialog(Component)
|
Method name: void ToolBarEditDialog(Component, DefaultComboBoxModel, ToolBarOptionPane.Button)
|
|||
Number of AST nodes: 7 | Number of AST nodes: 7 | |||
1 | JPanel typePanel = new JPanel(new GridLayout(3,1,6,6));↵ | 1 | JPanel typePanel = new JPanel(new GridLayout(3,1,6,6));↵ | |
2 | typePanel.setBorder(new EmptyBorder(0,0,6,0));↵ | 2 | typePanel.setBorder(new EmptyBorder(0,0,6,0));↵ | |
3 | typePanel.add(new JLabel(↵ | 3 | typePanel.add(new JLabel(↵ | |
4 | jEdit.getProperty("options.context.add.caption")));↵ | 4 | jEdit.getProperty("options.toolbar.edit.caption")));↵ | |
5 | separator = new JRadioButton(jEdit.getProperty("options.context"↵ | 5 | separator = new JRadioButton(jEdit.getProperty("options.toolbar"↵ | |
6 | + ".add.separator"));↵ | 6 | + ".edit.separator"));↵ | |
7 | separator.addActionListener(actionHandler);↵ | 7 | separator.addActionListener(actionHandler);↵ | |
8 | grp.add(separator);↵ | 8 | grp.add(separator);↵ | |
9 | typePanel.add(separator); | 9 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 1 |
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 | 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 | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7 | JPanel typePanel = new JPanel(new GridLayout(3, 1, 6, 6)); | 7 | JPanel typePanel = new JPanel(new GridLayout(3, 1, 6, 6)); | ||||||||||||||
8 | typePanel.setBorder(new EmptyBorder(0, 0, 6, 0)); | 8 | typePanel.setBorder(new EmptyBorder(0, 0, 6, 0)); | ||||||||||||||
9 | typePanel.add(new JLabel(jEdit.getProperty("options.context.add.caption"))); |
| 9 | typePanel.add(new JLabel(jEdit.getProperty("options.toolbar.edit.caption"))); | |||||||||||||
10 | separator = new JRadioButton(jEdit.getProperty("options.context" + ".add.separator")); |
| 10 | separator = new JRadioButton(jEdit.getProperty("options.toolbar" + ".edit.separator")); | |||||||||||||
11 | separator.addActionListener(actionHandler); |
| 11 | separator.addActionListener(actionHandler); | |||||||||||||
12 | grp.add(separator); | 12 | grp.add(separator); | ||||||||||||||
13 | typePanel.add(separator); | 13 | typePanel.add(separator); |
Row | Violation |
---|---|
1 | Type org.gjt.sp.jedit.options.ContextAddDialog.ActionHandler of variable actionHandler does not match with type org.gjt.sp.jedit.options.ToolBarEditDialog.ActionHandler of variable actionHandler |