if (e.character == '\r' || e.character == '\n')
{
apply();
text.dispose();
}
else if (e.character == '\033')
{
cancel();
text.dispose();
}
if (e.character == ' ' || e.character == '\r' || e.character == '\n')
{
apply();
dropDown.dispose();
}
else if (e.character == '\033')
{
cancel();
dropDown.dispose();
}
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/edit/ui/celleditor/AdapterFactoryTableTreeEditor.java
|
|
File path: /emf-2.4.1/src/org/eclipse/emf/edit/ui/celleditor/AdapterFactoryTableTreeEditor.java
|
Method name: void keyPressed(KeyEvent)
|
|
Method name: void keyPressed(KeyEvent)
|
Number of AST nodes: 6
|
|
Number of AST nodes: 6
|
|
1 | if (e.character == '\r' || e.character == '\n')↵ | | 1 | if (e.character == ' ' || e.character == '\r' || e.character == '\n')↵
|
2 | {↵ | | 2 | {↵
|
3 | apply();↵ | | 3 | apply();↵
|
4 | text.dispose();↵ | | 4 | dropDown.dispose();↵
|
5 | }↵ | | 5 | ↵
|
| | | 6 | }↵
|
6 | else if (e.character == '\033')↵ | | 7 | else if (e.character == '\033')↵
|
7 | {↵ | | 8 | ↵
|
| | | 9 | {↵
|
8 | cancel();↵ | | 10 | cancel();↵
|
9 | text.dispose();↵ | | 11 | dropDown.dispose();↵
|
10 | } | | 12 | }
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 0 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.8 |
Clones location | Clones are in the same java file |
Number of node comparisons | 4 |