File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/util/FindDialog.java | File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/util/FindReplaceDialog.java | |||
Method name: void initComponents()
|
Method name: void initComponents()
|
|||
Number of AST nodes: 7 | Number of AST nodes: 7 | |||
1 | JPanel panelMain = new JPanel(layout);↵ | 1 | JPanel panelMain = new JPanel(layout);↵ | |
2 | panelMain.setBorder(BorderFactory.createEmptyBorder(12,12,12,12));↵ | 2 | panelMain.setBorder(BorderFactory.createEmptyBorder(12,12,12,12));↵ | |
3 | ↵ | 3 | ↵ | |
4 | panelMain.add(createInputPanel(),cc.xy(1,1));↵ | 4 | panelMain.add(createInputPanel(), cc.xy(1,1));↵ | |
5 | panelMain.add(createButtonPanel(),cc.xywh(3,1,1,3));↵ | 5 | panelMain.add(createButtonPanel(),cc.xywh(3,1,1,3));↵ | |
6 | panelMain.add(createOptionPanel(),cc.xy(1,3));↵ | 6 | panelMain.add(createOptionPanel(),cc.xy(1,3));↵ | |
7 | ↵ | 7 | ↵ | |
8 | getContentPane().add(panelMain,BorderLayout.SOUTH);↵ | 8 | getContentPane().add(panelMain,BorderLayout.SOUTH);↵ | |
9 | getContentPane().add(↵ | 9 | getContentPane().add(↵ | |
10 | new DialogHeaderPanel(GlobalResourceLoader.getString(RESOURCE_PATH,↵ | 10 | new DialogHeaderPanel(GlobalResourceLoader.getString(RESOURCE_PATH,↵ | |
11 | "find", "header_title"), GlobalResourceLoader↵ | 11 | "findreplace", "header_title"), GlobalResourceLoader↵ | |
12 | .getString(RESOURCE_PATH, "find", "header_description"),↵ | 12 | .getString(RESOURCE_PATH, "findreplace", "header_description"),↵ | |
13 | ImageLoader.getIcon(IconKeys.SEARCH)),↵ | 13 | ImageLoader.getIcon(IconKeys.SEARCH)),↵ | |
14 | BorderLayout.NORTH); | 14 |
| |
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 | 29 |
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 | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3 | JPanel panelMain = new JPanel(layout); | 4 | JPanel panelMain = new JPanel(layout); | ||||||||||||||
4 | panelMain.setBorder(BorderFactory.createEmptyBorder(12, 12, 12, 12)); | 5 | panelMain.setBorder(BorderFactory.createEmptyBorder(12, 12, 12, 12)); | ||||||||||||||
5 | panelMain.add(createInputPanel(), cc.xy(1, 1)); | 6 | panelMain.add(createInputPanel(), cc.xy(1, 1)); | ||||||||||||||
6 | panelMain.add(createButtonPanel(), cc.xywh(3, 1, 1, 3)); | 7 | panelMain.add(createButtonPanel(), cc.xywh(3, 1, 1, 3)); | ||||||||||||||
7 | panelMain.add(createOptionPanel(), cc.xy(1, 3)); | 8 | panelMain.add(createOptionPanel(), cc.xy(1, 3)); | ||||||||||||||
8 | getContentPane().add(panelMain, BorderLayout.SOUTH); | 9 | getContentPane().add(panelMain, BorderLayout.SOUTH); | ||||||||||||||
9 | getContentPane().add(new DialogHeaderPanel(GlobalResourceLoader.getString(RESOURCE_PATH, "find", "header_title"), GlobalResourceLoader.getString(RESOURCE_PATH, "find", "header_description"), ImageLoader.getIcon(IconKeys.SEARCH)), BorderLayout.NORTH); |
| 10 | getContentPane().add(new DialogHeaderPanel(GlobalResourceLoader.getString(RESOURCE_PATH, "findreplace", "header_title"), GlobalResourceLoader.getString(RESOURCE_PATH, "findreplace", "header_description"), ImageLoader.getIcon(IconKeys.SEARCH)), BorderLayout.NORTH); |
Row | Violation |
---|