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