File path: /emf-2.4.1/src/org/eclipse/emf/ecore/presentation/EcoreEditor.java | File path: /emf-2.4.1/src/org/eclipse/emf/mapping/ecore2xml/presentation/Ecore2XMLEditor.java | |||
Method name: Object getAdapter(Class)
|
Method name: Object getAdapter(Class)
|
|||
Number of AST nodes: 7 | Number of AST nodes: 7 | |||
1 | if (key.equals(IContentOutlinePage.class))↵ | 1 | if (key.equals(IContentOutlinePage.class))↵ | |
2 | {↵ | 2 | {↵ | |
3 | return showOutlineView() ? getContentOutlinePage() : null;↵ | 3 | return showOutlineView() ? getContentOutlinePage() : null;↵ | |
4 | }↵ | 4 | }↵ | |
5 | else if (key.equals(IPropertySheetPage.class))↵ | 5 | else if (key.equals(IPropertySheetPage.class))↵ | |
6 | {↵ | 6 | {↵ | |
7 | return getPropertySheetPage();↵ | 7 | return getPropertySheetPage();↵ | |
8 | }↵ | 8 | }↵ | |
9 | else if (key.equals(IGotoMarker.class))↵ | 9 | else if (key.equals(IGotoMarker.class))↵ | |
10 | {↵ | 10 | {↵ | |
11 | return this;↵ | 11 | return this;↵ | |
12 | }↵ | 12 | }↵ | |
13 | else↵ | 13 | else↵ | |
14 | {↵ | 14 | {↵ | |
15 | return super.getAdapter(key);↵ | 15 | return super.getAdapter(key);↵ | |
16 | } | 16 |
| |
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 in different classes having the same super class |
Number of node comparisons | 36 |
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) | 1.4 |
Clone type | Type 1 |
ID | Statement | ID | Statement | |
---|---|---|---|---|
1 | if (key.equals(IContentOutlinePage.class)) | 1 | if (key.equals(IContentOutlinePage.class)) | |
2 | return showOutlineView() ? getContentOutlinePage() : null; | 2 | return showOutlineView() ? getContentOutlinePage() : null; | |
3 | else if (key.equals(IPropertySheetPage.class)) | 3 | else if (key.equals(IPropertySheetPage.class)) | |
4 | return getPropertySheetPage(); | 4 | return getPropertySheetPage(); | |
5 | else if (key.equals(IGotoMarker.class)) | 5 | else if (key.equals(IGotoMarker.class)) | |
6 | return this; | 6 | return this; | |
else | else | |||
7 | return super.getAdapter(key); | 7 | return super.getAdapter(key); |
Row | Violation |
---|