File path: /jEdit-4.2/src/org/gjt/sp/jedit/gui/FilesChangedDialog.java | File path: /jEdit-4.2/src/org/gjt/sp/jedit/gui/CloseDialog.java | |||
Method name: void FilesChangedDialog(View, int[], boolean)
|
Method name: void CloseDialog(View)
|
|||
Number of AST nodes: 13 | Number of AST nodes: 13 | |||
1 | super(view,jEdit.getProperty("files-changed.title"),false);↵ | 1 | super(view,jEdit.getProperty("close.title"),true);↵ | |
2 | this.view = view;↵ | 2 | this.view = view;↵ | |
3 | JPanel content = new JPanel(new BorderLayout(12,12));↵ | 3 | JPanel content = new JPanel(new BorderLayout(12,12));↵ | |
4 | content.setBorder(new EmptyBorder(12,12,12,12));↵ | 4 | content.setBorder(new EmptyBorder(12,12,12,12));↵ | |
5 | setContentPane(content);↵ | 5 | setContentPane(content);↵ | |
6 | Box iconBox = new Box(BoxLayout.Y_AXIS);↵ | 6 | Box iconBox = new Box(BoxLayout.Y_AXIS);↵ | |
7 | iconBox.add(new JLabel(UIManager.getIcon("OptionPane.warningIcon")));↵ | 7 | iconBox.add(new JLabel(UIManager.getIcon("OptionPane.warningIcon")));↵ | |
8 | iconBox.add(Box.createGlue());↵ | 8 | iconBox.add(Box.createGlue());↵ | |
9 | content.add(BorderLayout.WEST,iconBox);↵ | 9 | content.add(BorderLayout.WEST,iconBox);↵ | |
10 | JPanel centerPanel = new JPanel(new BorderLayout());↵ | 10 | JPanel centerPanel = new JPanel(new BorderLayout());↵ | |
11 | JLabel label = new JLabel(jEdit.getProperty("files-changed.caption"));↵ | 11 | JLabel label = new JLabel(jEdit.getProperty("close.caption"));↵ | |
12 | label.setBorder(new EmptyBorder(0,0,6,0));↵ | 12 | label.setBorder(new EmptyBorder(0,0,6,0));↵ | |
13 | centerPanel.add(BorderLayout.NORTH,label); | 13 |
| |
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 | 66 |
Number of mapped statements | 13 |
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 | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | super(view, jEdit.getProperty("files-changed.title"), false); |
| 1 | super(view, jEdit.getProperty("close.title"), true); | |||||||||||||
2 | this.view = view; | 2 | this.view = view; | ||||||||||||||
3 | JPanel content = new JPanel(new BorderLayout(12, 12)); | 3 | JPanel content = new JPanel(new BorderLayout(12, 12)); | ||||||||||||||
4 | content.setBorder(new EmptyBorder(12, 12, 12, 12)); | 4 | content.setBorder(new EmptyBorder(12, 12, 12, 12)); | ||||||||||||||
5 | setContentPane(content); | 5 | setContentPane(content); | ||||||||||||||
6 | Box iconBox = new Box(BoxLayout.Y_AXIS); | 6 | Box iconBox = new Box(BoxLayout.Y_AXIS); | ||||||||||||||
7 | iconBox.add(new JLabel(UIManager.getIcon("OptionPane.warningIcon"))); | 7 | iconBox.add(new JLabel(UIManager.getIcon("OptionPane.warningIcon"))); | ||||||||||||||
8 | iconBox.add(Box.createGlue()); | 8 | iconBox.add(Box.createGlue()); | ||||||||||||||
9 | content.add(BorderLayout.WEST, iconBox); | 9 | content.add(BorderLayout.WEST, iconBox); | ||||||||||||||
10 | JPanel centerPanel = new JPanel(new BorderLayout()); | 10 | JPanel centerPanel = new JPanel(new BorderLayout()); | ||||||||||||||
11 | JLabel label = new JLabel(jEdit.getProperty("files-changed.caption")); |
| 11 | JLabel label = new JLabel(jEdit.getProperty("close.caption")); | |||||||||||||
12 | label.setBorder(new EmptyBorder(0, 0, 6, 0)); | 12 | label.setBorder(new EmptyBorder(0, 0, 6, 0)); | ||||||||||||||
13 | 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 |