File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/context/ContextResultBox.java | File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/search/SearchResultBox.java | |||
Method name: void ContextResultBox(IFrameMediator, IContextProvider, IContextSearchManager)
|
Method name: void SearchResultBox(IFrameMediator, ISearchProvider, ISearchCriteria, IResultPanel)
|
|||
Number of AST nodes: 10 | Number of AST nodes: 10 | |||
1 | link.setOpaque(true);↵ | 1 | link.setOpaque(true);↵ | |
2 | // link.setBackground(titleBackground);↵ | 2 | //link.setBackground(titleBackground);↵ | |
3 | link.setFocusPainted(false);↵ | 3 | link.setFocusPainted(false);↵ | |
4 | link.setUnclickedColor(UIManager.getColor("Label.foreground"));↵ | 4 | link.setUnclickedColor(UIManager.getColor("Label.foreground"));↵ | |
5 | link.setClickedColor(UIManager.getColor("Label.foreground"));↵ | 5 | link.setClickedColor(UIManager.getColor("Label.foreground"));↵ | |
6 | moreLink = new JXHyperlink();↵ | 6 | moreLink = new JXHyperlink();↵ | |
7 | moreLink.setEnabled(false);↵ | 7 | moreLink.setEnabled(false);↵ | |
8 | moreLink.setText("Show More ..");↵ | 8 | moreLink.setText("Show More ..");↵ | |
9 | Font font = UIManager.getFont("Label.font");↵ | 9 | Font font = UIManager.getFont("Label.font");↵ | |
10 | Font smallFont = new Font(font.getName(), font.getStyle(), font↵ | 10 | Font smallFont = new Font(font.getName(), font.getStyle(), font↵ | |
11 | .getSize() - 2);↵ | 11 | .getSize() - 2);↵ | |
12 | moreLink.setFont(smallFont); | 12 |
| |
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 | 67 |
Number of mapped statements | 10 |
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 1 |
ID | Statement | ID | Statement | |
---|---|---|---|---|
14 | link.setOpaque(true); | 16 | link.setOpaque(true); | |
15 | link.setFocusPainted(false); | 17 | link.setFocusPainted(false); | |
16 | link.setUnclickedColor(UIManager.getColor("Label.foreground")); | 18 | link.setUnclickedColor(UIManager.getColor("Label.foreground")); | |
17 | link.setClickedColor(UIManager.getColor("Label.foreground")); | 19 | link.setClickedColor(UIManager.getColor("Label.foreground")); | |
18 | moreLink = new JXHyperlink(); | 20 | moreLink = new JXHyperlink(); | |
19 | moreLink.setEnabled(false); | 21 | moreLink.setEnabled(false); | |
20 | moreLink.setText("Show More .."); | 22 | moreLink.setText("Show More .."); | |
21 | Font font = UIManager.getFont("Label.font"); | 23 | Font font = UIManager.getFont("Label.font"); | |
22 | Font smallFont = new Font(font.getName(), font.getStyle(), font.getSize() - 2); | 24 | Font smallFont = new Font(font.getName(), font.getStyle(), font.getSize() - 2); | |
23 | moreLink.setFont(smallFont); | 25 | moreLink.setFont(smallFont); |
Row | Violation |
---|