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: 6 | Number of AST nodes: 6 | |||
1 | if(chunkCache.getLineInfo(screenLastLine).lastSubregion)↵ | 1 | if(chunkCache.getLineInfo(screenLastLine).lastSubregion)↵ | |
2 | {↵ | 2 | {↵ | |
3 | float dragStartLineWidth = offsetToXY(↵ | 3 | float dotLineWidth = offsetToXY(↵ | |
4 | dragStartLine,getLineLength(dragStartLine),↵ | 4 | dotLine,getLineLength(dotLine),↵ | |
5 | returnValue).x;↵ | 5 | returnValue).x;↵ | |
6 | if(x > dragStartLineWidth)↵ | 6 | if(x > dotLineWidth)↵ | |
7 | {↵ | 7 | {↵ | |
8 | extraEndVirt = (int)(↵ | 8 | extraEndVirt = (int)(↵ | |
9 | (x - dragStartLineWidth)↵ | 9 | (x - dotLineWidth)↵ | |
10 | / charWidth);↵ | 10 | / charWidth);↵ | |
11 | if(!getPainter().isBlockCaretEnabled()↵ | 11 | if(!getPainter().isBlockCaretEnabled()↵ | |
12 | && !isOverwriteEnabled()↵ | 12 | && !isOverwriteEnabled()↵ | |
13 | && (x - getHorizontalOffset()) % charWidth > charWidth / 2)↵ | 13 | && (x - getHorizontalOffset()) % charWidth > charWidth / 2)↵ | |
14 | {↵ | 14 | ↵ | |
15 | extraEndVirt++;↵ | 15 | extraEndVirt++;↵ | |
16 | }↵ | 16 | ↵ | |
17 | }↵ | 17 | }↵ | |
18 | } | 18 |
| |
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 | 12 |
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) | 239.8 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3 | if (chunkCache.getLineInfo(screenLastLine).lastSubregion) | 11 | if (chunkCache.getLineInfo(screenLastLine).lastSubregion) | |||||||||||||||||
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 |
---|