moreLink = new JXHyperlink();
moreLink.setEnabled(false);
moreLink.setText("Show More ..");
Font font = UIManager.getFont("Label.font");
Font smallFont = new Font(font.getName(), font.getStyle(), font
.getSize() - 2);
moreLink.setFont(smallFont);
moreLink = new JXHyperlink();
moreLink.setEnabled(false);
moreLink.setText("Show More ..");
Font font = UIManager.getFont("Label.font");
Font smallFont = new Font(font.getName(), font.getStyle(), font
.getSize() - 2);
moreLink.setFont(smallFont);
Clone fragments detected by clone detection tool
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: 6
|
|
Number of AST nodes: 6
|
|
1 | moreLink = new JXHyperlink();↵ | | 1 | moreLink = new JXHyperlink();↵
|
2 | moreLink.setEnabled(false);↵ | | 2 | moreLink.setEnabled(false);↵
|
3 | moreLink.setText("Show More ..");↵ | | 3 | moreLink.setText("Show More ..");↵
|
4 | Font font = UIManager.getFont("Label.font");↵ | | 4 | Font font = UIManager.getFont("Label.font");↵
|
5 | Font smallFont = new Font(font.getName(), font.getStyle(), font↵ | | 5 | Font smallFont = new Font(font.getName(), font.getStyle(), font↵
|
6 | .getSize() - 2);↵ | | 6 | .getSize() - 2);↵
|
7 | moreLink.setFont(smallFont); | | 7 | moreLink.setFont(smallFont);
|
See real code fragment |
|
See real code fragment |
Summary
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 | 19 |
-
{Refactorable}
Mapping Summary
Number of mapped statements | 6 |
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 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
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); |
Precondition Violations (0)
Row |
Violation |