Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
8 | 2 | 3 | 0.976 | statement_sequence_member |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 8 | 1161 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerPart.java |
2 | 8 | 1175 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerPart.java |
| ||||
if (elements.length > 0) { IMemento selectionMem = memento.createChild(TAG_SELECTION); for (int i = 0; i < elements.length; i++) { IMemento elementMem = selectionMem.createChild(TAG_ELEMENT); // we can only persist JavaElements for now Object o = elements[i]; if (o instanceof IJavaElement) elementMem.putString(TAG_PATH, ((IJavaElement) elements[i]).getHandleIdentifier()); } } |
| ||||
if (expandedElements.length > 0) { IMemento expandedMem = memento.createChild(TAG_EXPANDED); for (int i = 0; i < expandedElements.length; i++) { IMemento elementMem = expandedMem.createChild(TAG_ELEMENT); // we can only persist JavaElements for now Object o = expandedElements[i]; if (o instanceof IJavaElement) elementMem.putString(TAG_PATH, ((IJavaElement) expandedElements[i]).getHandleIdentifier()); } } |
| |||
if ( [[#variableb4cb5ae0]].length > 0) { IMemento [[#variableb4cb5980]]= memento.createChild( [[#variable91a580e0]]); for (int i = 0; i < [[#variableb4cb5ae0]].length; i++) { IMemento elementMem = [[#variableb4cb5980]].createChild(TAG_ELEMENT); // we can only persist JavaElements for now Object o = [[#variableb4cb5ae0]][i]; if (o instanceof IJavaElement) elementMem.putString(TAG_PATH, ((IJavaElement) [[#variableb4cb5ae0]][i]).getHandleIdentifier()); } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#b4cb5ae0]] | elements |
1 | 2 | [[#b4cb5ae0]] | expandedElements |
2 | 1 | [[#b4cb5980]] | selectionMem |
2 | 2 | [[#b4cb5980]] | expandedMem |
3 | 1 | [[#91a580e0]] | TAG_SELECTION |
3 | 2 | [[#91a580e0]] | TAG_EXPANDED |