File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/base/IconTextField.java | File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/search/IconTextField.java | |||
Method name: void mouseClicked(MouseEvent)
|
Method name: void mouseClicked(MouseEvent)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | if(iconBounds.contains(e.getPoint())) {↵ | 1 | if (iconBounds.contains(e.getPoint())) {↵ | |
2 | if(popupMenu.isVisible()) {↵ | 2 | if (popupMenu.isVisible()) {↵ | |
3 | popupMenu.setVisible(false);↵ | 3 | popupMenu.setVisible(false);↵ | |
4 | } else {↵ | 4 | } else {↵ | |
5 | popupMenu.show(IconTextField.this, 0, getHeight());↵ | 5 | popupMenu.show(IconTextField.this, 0, getHeight());↵ | |
6 | }↵ | 6 | }↵ | |
7 | } | 7 | } | |
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.3 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 10 |
Number of mapped statements | 4 |
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) | 3.6 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | if (iconBounds.contains(e.getPoint())) | 1 | if (iconBounds.contains(e.getPoint())) | |||||||||||
2 | if (popupMenu.isVisible()) | 2 | if (popupMenu.isVisible()) | |||||||||||
3 | popupMenu.setVisible(false); | 3 | popupMenu.setVisible(false); | |||||||||||
else | else | |||||||||||||
4 | popupMenu.show(IconTextField.this, 0, getHeight()); |
| 4 | popupMenu.show(IconTextField.this, 0, getHeight()); |
Row | Violation |
---|