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: 15 | Number of AST nodes: 15 | |||
1 | content.add(BorderLayout.CENTER,actionPanel);↵ | 1 | content.add(BorderLayout.CENTER,actionPanel);↵ | |
2 | JPanel southPanel = new JPanel();↵ | 2 | JPanel southPanel = new JPanel();↵ | |
3 | southPanel.setLayout(new BoxLayout(southPanel,BoxLayout.X_AXIS));↵ | 3 | southPanel.setLayout(new BoxLayout(southPanel,BoxLayout.X_AXIS));↵ | |
4 | southPanel.setBorder(new EmptyBorder(12,0,0,0));↵ | 4 | southPanel.setBorder(new EmptyBorder(12,0,0,0));↵ | |
5 | southPanel.add(Box.createGlue());↵ | 5 | southPanel.add(Box.createGlue());↵ | |
6 | ok = new JButton(jEdit.getProperty("common.ok"));↵ | 6 | ok = new JButton(jEdit.getProperty("common.ok"));↵ | |
7 | ok.addActionListener(actionHandler);↵ | 7 | ok.addActionListener(actionHandler);↵ | |
8 | getRootPane().setDefaultButton(ok);↵ | 8 | getRootPane().setDefaultButton(ok);↵ | |
9 | southPanel.add(ok);↵ | 9 | southPanel.add(ok);↵ | |
10 | southPanel.add(Box.createHorizontalStrut(6));↵ | 10 | southPanel.add(Box.createHorizontalStrut(6));↵ | |
11 | cancel = new JButton(jEdit.getProperty("common.cancel"));↵ | 11 | cancel = new JButton(jEdit.getProperty("common.cancel"));↵ | |
12 | cancel.addActionListener(actionHandler);↵ | 12 | cancel.addActionListener(actionHandler);↵ | |
13 | southPanel.add(cancel);↵ | 13 | southPanel.add(cancel);↵ | |
14 | southPanel.add(Box.createGlue());↵ | 14 | southPanel.add(Box.createGlue());↵ | |
15 | content.add(BorderLayout.SOUTH,southPanel); | 15 |
| |
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 | 108 |
Number of mapped statements | 15 |
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 | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
34 | content.add(BorderLayout.CENTER, actionPanel); | 56 | content.add(BorderLayout.CENTER, actionPanel); | ||||||||||||
35 | JPanel southPanel = new JPanel(); | 57 | JPanel southPanel = new JPanel(); | ||||||||||||
36 | southPanel.setLayout(new BoxLayout(southPanel, BoxLayout.X_AXIS)); | 58 | southPanel.setLayout(new BoxLayout(southPanel, BoxLayout.X_AXIS)); | ||||||||||||
37 | southPanel.setBorder(new EmptyBorder(12, 0, 0, 0)); | 59 | southPanel.setBorder(new EmptyBorder(12, 0, 0, 0)); | ||||||||||||
38 | southPanel.add(Box.createGlue()); | 60 | southPanel.add(Box.createGlue()); | ||||||||||||
39 | ok = new JButton(jEdit.getProperty("common.ok")); | 61 | ok = new JButton(jEdit.getProperty("common.ok")); | ||||||||||||
40 | ok.addActionListener(actionHandler); |
| 62 | ok.addActionListener(actionHandler); | |||||||||||
41 | getRootPane().setDefaultButton(ok); | 63 | getRootPane().setDefaultButton(ok); | ||||||||||||
42 | southPanel.add(ok); | 64 | southPanel.add(ok); | ||||||||||||
43 | southPanel.add(Box.createHorizontalStrut(6)); | 65 | southPanel.add(Box.createHorizontalStrut(6)); | ||||||||||||
44 | cancel = new JButton(jEdit.getProperty("common.cancel")); | 66 | cancel = new JButton(jEdit.getProperty("common.cancel")); | ||||||||||||
45 | cancel.addActionListener(actionHandler); |
| 67 | cancel.addActionListener(actionHandler); | |||||||||||
46 | southPanel.add(cancel); | 68 | southPanel.add(cancel); | ||||||||||||
47 | southPanel.add(Box.createGlue()); | 69 | southPanel.add(Box.createGlue()); | ||||||||||||
48 | content.add(BorderLayout.SOUTH, southPanel); | 70 | content.add(BorderLayout.SOUTH, southPanel); |
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 |
2 | 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 |