File path: /jEdit-4.2/src/org/gjt/sp/jedit/gui/DockableWindowManager.java | File path: /jEdit-4.2/src/org/gjt/sp/jedit/gui/DockableWindowManager.java | |||
Method name: void addLayoutComponent(Component, Object)
|
Method name: void addLayoutComponent(Component, Object)
|
|||
Number of AST nodes: 19 | Number of AST nodes: 10 | |||
1 | center = comp;↵ | |||
2 | else if(TOP_TOOLBARS.equals(cons))↵ | |||
1 | topToolbars = comp;↵ | 3 | topToolbars = comp;↵ | |
2 | else if(BOTTOM_TOOLBARS.equals(cons))↵ | 4 | else if(BOTTOM_TOOLBARS.equals(cons))↵ | |
3 | bottomToolbars = comp;↵ | 5 | bottomToolbars = comp;↵ | |
4 | else if(TOP.equals(cons))↵ | 6 | else if(TOP.equals(cons))↵ | |
5 | top = comp;↵ | 7 | top = comp;↵ | |
6 | else if(LEFT.equals(cons))↵ | 8 | else if(LEFT.equals(cons))↵ | |
7 | left = comp;↵ | 9 | left = comp;↵ | |
8 | else if(BOTTOM.equals(cons))↵ | 10 | else if(BOTTOM.equals(cons))↵ | |
9 | bottom = comp;↵ | 11 | bottom = comp;↵ | |
10 | else if(RIGHT.equals(cons))↵ | 12 | else if(RIGHT.equals(cons))↵ | |
11 | right = comp;↵ | 13 | right = comp;↵ | |
12 | else if(TOP_BUTTONS.equals(cons))↵ | 14 | else if(TOP_BUTTONS.equals(cons))↵ | |
13 | topButtons = comp;↵ | 15 | topButtons = comp;↵ | |
14 | else if(LEFT_BUTTONS.equals(cons))↵ | 16 | else if(LEFT_BUTTONS.equals(cons))↵ | |
15 | leftButtons = comp;↵ | 17 | leftButtons = comp;↵ | |
16 | else if(BOTTOM_BUTTONS.equals(cons))↵ | 18 | else if(BOTTOM_BUTTONS.equals(cons))↵ | |
17 | bottomButtons = comp;↵ | 19 |
| |
18 | else if(RIGHT_BUTTONS.equals(cons))↵ | |||
19 | rightButtons = comp; | |||
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 1 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | Clones are in the same method |
Number of node comparisons | 1 |
Number of mapped statements | 1 |
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 2 |
ID | Statement | ID | Statement | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4 | topToolbars = comp; |
| 2 | center = comp; |
Row | Violation |
---|---|
1 | Expression topToolbars is a field being modified, and thus it cannot be parameterized |
2 | Expression center is a field being modified, and thus it cannot be parameterized |