File path: /jEdit-4.2/src/org/gjt/sp/jedit/textarea/JEditTextArea.java | File path: /jEdit-4.2/src/org/gjt/sp/jedit/textarea/JEditTextArea.java | |||
Method name: void doSingleClick(MouseEvent)
|
Method name: void doSingleDrag(MouseEvent)
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | float dragStartLineWidth = offsetToXY(↵ | 1 | float dotLineWidth = offsetToXY(↵ | |
2 | dragStartLine,getLineLength(dragStartLine),↵ | 2 | dotLine,getLineLength(dotLine),↵ | |
3 | returnValue).x;↵ | 3 | returnValue).x;↵ | |
4 | if(x > dragStartLineWidth)↵ | 4 | if(x > dotLineWidth)↵ | |
5 | {↵ | 5 | {↵ | |
6 | extraEndVirt = (int)(↵ | 6 | extraEndVirt = (int)(↵ | |
7 | (x - dragStartLineWidth)↵ | 7 | (x - dotLineWidth)↵ | |
8 | / charWidth);↵ | 8 | / charWidth);↵ | |
9 | if(!getPainter().isBlockCaretEnabled()↵ | 9 | if(!getPainter().isBlockCaretEnabled()↵ | |
10 | && !isOverwriteEnabled()↵ | 10 | && !isOverwriteEnabled()↵ | |
11 | && (x - getHorizontalOffset()) % charWidth > charWidth / 2)↵ | 11 | && (x - getHorizontalOffset()) % charWidth > charWidth / 2)↵ | |
12 | {↵ | 12 | ↵ | |
13 | extraEndVirt++;↵ | 13 | extraEndVirt++;↵ | |
14 | }↵ | 14 | ↵ | |
15 | } | 15 |
| |
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.9 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 10 |
Number of mapped statements | 5 |
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) | 86.9 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4 | float dragStartLineWidth = offsetToXY(dragStartLine, getLineLength(dragStartLine), returnValue).x; |
| 12 | float dotLineWidth = offsetToXY(dotLine, getLineLength(dotLine), returnValue).x; | ||||||||||||||||
5 | if (x > dragStartLineWidth) |
| 13 | if (x > dotLineWidth) | ||||||||||||||||
6 | extraEndVirt = (int)((x - dragStartLineWidth) / charWidth); |
| 14 | extraEndVirt = (int)((x - dotLineWidth) / charWidth); | ||||||||||||||||
7 | if (!getPainter().isBlockCaretEnabled() && !isOverwriteEnabled() && (x - getHorizontalOffset()) % charWidth > charWidth / 2) | 15 | if (!getPainter().isBlockCaretEnabled() && !isOverwriteEnabled() && (x - getHorizontalOffset()) % charWidth > charWidth / 2) | |||||||||||||||||
8 | extraEndVirt++; | 16 | extraEndVirt++; |
Row | Violation |
---|