CloneSet1972


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
23201.000class_body_declarations[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
12381
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/viewsupport/ProblemTableViewer.java
22385
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/viewsupport/ProblemTreeViewer.java
Clone Instance
1
Line Count
23
Source Line
81
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/viewsupport/ProblemTableViewer.java

        /*
         * @see StructuredViewer#mapElement(Object, Widget)
         */
        protected void mapElement(Object element, Widget item) {
                super.mapElement(element, item);
                if (item instanceof Item) {
                        fResourceToItemsMapper.addToMap(element, (Item) item);
                }
        }

        /*
         * @see StructuredViewer#unmapElement(Object, Widget)
         */
        protected void unmapElement(Object element, Widget item) {
                if (item instanceof Item) {
                        fResourceToItemsMapper.removeFromMap(element, (Item) item);
                }
                super.unmapElement(element, item);
        }

        /*
         * @see StructuredViewer#unmapAllElements()
         */
        protected void unmapAllElements() {
                fResourceToItemsMapper.clearMap();
                super.unmapAllElements();
        }


Clone Instance
2
Line Count
23
Source Line
85
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/viewsupport/ProblemTreeViewer.java

        /*
         * @see StructuredViewer#mapElement(Object, Widget)
         */
        protected void mapElement(Object element, Widget item) {
                super.mapElement(element, item);
                if (item instanceof Item) {
                        fResourceToItemsMapper.addToMap(element, (Item) item);
                }
        }

        /*
         * @see StructuredViewer#unmapElement(Object, Widget)
         */
        protected void unmapElement(Object element, Widget item) {
                if (item instanceof Item) {
                        fResourceToItemsMapper.removeFromMap(element, (Item) item);
                }
                super.unmapElement(element, item);
        }

        /*
         * @see StructuredViewer#unmapAllElements()
         */
        protected void unmapAllElements() {
                fResourceToItemsMapper.clearMap();
                super.unmapAllElements();
        }


Clone AbstractionParameter Count: 0Parameter Bindings

/*
         * @see StructuredViewer#mapElement(Object, Widget)
         */
protected void mapElement(Object element, Widget item) {
  super.mapElement(element, item);
  if (item instanceof Item) {
    fResourceToItemsMapper.addToMap(element, (Item) item);
  }
}

/*
         * @see StructuredViewer#unmapElement(Object, Widget)
         */
protected void unmapElement(Object element, Widget item) {
  if (item instanceof Item) {
    fResourceToItemsMapper.removeFromMap(element, (Item) item);
  }
  super.unmapElement(element, item);
}

/*
         * @see StructuredViewer#unmapAllElements()
         */
protected void unmapAllElements() {
  fResourceToItemsMapper.clearMap();
  super.unmapAllElements();
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None