File path: /jEdit-4.2/src/org/gjt/sp/jedit/gui/ErrorListDialog.java | File path: /jEdit-4.2/src/org/gjt/sp/jedit/gui/FilesChangedDialog.java | |||
Method name: void ErrorListDialog(Frame, String, String, Vector, boolean)
|
Method name: void FilesChangedDialog(View, int[], boolean)
|
|||
Number of AST nodes: 11 | Number of AST nodes: 11 | |||
1 | JPanel content = new JPanel(new BorderLayout(12,12));↵ | 1 | JPanel content = new JPanel(new BorderLayout(12,12));↵ | |
2 | content.setBorder(new EmptyBorder(12,12,12,12));↵ | 2 | content.setBorder(new EmptyBorder(12,12,12,12));↵ | |
3 | setContentPane(content);↵ | 3 | setContentPane(content);↵ | |
4 | Box iconBox = new Box(BoxLayout.Y_AXIS);↵ | 4 | Box iconBox = new Box(BoxLayout.Y_AXIS);↵ | |
5 | iconBox.add(new JLabel(UIManager.getIcon("OptionPane.errorIcon")));↵ | 5 | iconBox.add(new JLabel(UIManager.getIcon("OptionPane.warningIcon")));↵ | |
6 | iconBox.add(Box.createGlue());↵ | 6 | iconBox.add(Box.createGlue());↵ | |
7 | content.add(BorderLayout.WEST,iconBox);↵ | 7 | content.add(BorderLayout.WEST,iconBox);↵ | |
8 | JPanel centerPanel = new JPanel(new BorderLayout());↵ | 8 | JPanel centerPanel = new JPanel(new BorderLayout());↵ | |
9 | JLabel label = new JLabel(caption);↵ | 9 | JLabel label = new JLabel(jEdit.getProperty("files-changed.caption"));↵ | |
10 | label.setBorder(new EmptyBorder(0,0,6,0));↵ | 10 | label.setBorder(new EmptyBorder(0,0,6,0));↵ | |
11 | centerPanel.add(BorderLayout.NORTH,label); | 11 |
| |
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 | 64 |
Number of mapped statements | 11 |
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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2 | JPanel content = new JPanel(new BorderLayout(12, 12)); | 3 | JPanel content = new JPanel(new BorderLayout(12, 12)); | |||||||||||
3 | content.setBorder(new EmptyBorder(12, 12, 12, 12)); | 4 | content.setBorder(new EmptyBorder(12, 12, 12, 12)); | |||||||||||
4 | setContentPane(content); | 5 | setContentPane(content); | |||||||||||
5 | Box iconBox = new Box(BoxLayout.Y_AXIS); | 6 | Box iconBox = new Box(BoxLayout.Y_AXIS); | |||||||||||
6 | iconBox.add(new JLabel(UIManager.getIcon("OptionPane.errorIcon"))); |
| 7 | iconBox.add(new JLabel(UIManager.getIcon("OptionPane.warningIcon"))); | ||||||||||
7 | iconBox.add(Box.createGlue()); | 8 | iconBox.add(Box.createGlue()); | |||||||||||
8 | content.add(BorderLayout.WEST, iconBox); | 9 | content.add(BorderLayout.WEST, iconBox); | |||||||||||
9 | JPanel centerPanel = new JPanel(new BorderLayout()); | 10 | JPanel centerPanel = new JPanel(new BorderLayout()); | |||||||||||
10 | JLabel label = new JLabel(caption); |
| 11 | JLabel label = new JLabel(jEdit.getProperty("files-changed.caption")); | ||||||||||
11 | label.setBorder(new EmptyBorder(0, 0, 6, 0)); | 12 | label.setBorder(new EmptyBorder(0, 0, 6, 0)); | |||||||||||
12 | centerPanel.add(BorderLayout.NORTH, label); | 13 | centerPanel.add(BorderLayout.NORTH, label); |
Row | Violation |
---|---|
1 | Clone fragment #1 returns variables centerPanel, content , while Clone fragment #2 returns variables centerPanel, content |