CloneSet1824


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
8230.976statement_sequence_member
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
181161
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerPart.java
281175
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerPart.java
Clone Instance
1
Line Count
8
Source Line
1161
Source File
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());
                        }
                }


Clone Instance
2
Line Count
8
Source Line
1175
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerPart.java

                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());
                        }
                }


Clone AbstractionParameter Count: 3Parameter Bindings

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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b4cb5ae0]]
elements 
12[[#b4cb5ae0]]
expandedElements 
21[[#b4cb5980]]
selectionMem 
22[[#b4cb5980]]
expandedMem 
31[[#91a580e0]]
TAG_SELECTION 
32[[#91a580e0]]
TAG_EXPANDED