CloneSet776


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
15330.976class_body_declarations[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11544
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/callhierarchy/CallHierarchyLabelDecorator.java
21597
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/OverrideIndicatorLabelDecorator.java
315147
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/ProblemsLabelDecorator.java
Clone Instance
1
Line Count
15
Source Line
44
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/callhierarchy/CallHierarchyLabelDecorator.java

    /* (non-Javadoc)
     * @see ILabelDecorator#decorateText(String, Object)
     */
    public String decorateText(String text, Object element) {
        return text;
    }

    /* (non-Javadoc)
     * @see ILabelDecorator#decorateImage(Image, Object)
     */
    public Image decorateImage(Image image, Object element) {
        int adornmentFlags = computeAdornmentFlags(element);
        if (adornmentFlags != 0) {
            ImageDescriptor baseImage = new ImageImageDescriptor(image);
            Rectangle bounds = image.getBounds();
            return JavaPlugin.getImageDescriptorRegistry().get(new CallHierarchyImageDescriptor(baseImage, adornmentFlags, new Point(bounds.width, bounds.height)));
        }
        return image;
    }


Clone Instance
2
Line Count
15
Source Line
97
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/OverrideIndicatorLabelDecorator.java

        /* (non-Javadoc)
         * @see ILabelDecorator#decorateText(String, Object)
         */
        public String decorateText(String text, Object element) {
                return text;
        }

        /* (non-Javadoc)
         * @see ILabelDecorator#decorateImage(Image, Object)
         */
        public Image decorateImage(Image image, Object element) {
                int adornmentFlags = computeAdornmentFlags(element);
                if (adornmentFlags != 0) {
                        ImageDescriptor baseImage = new ImageImageDescriptor(image);
                        Rectangle bounds = image.getBounds();
                        return getRegistry().get(new JavaElementImageDescriptor(baseImage, adornmentFlags, new Point(bounds.width, bounds.height)));
                }
                return image;
        }


Clone Instance
3
Line Count
15
Source Line
147
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/ProblemsLabelDecorator.java

        /* (non-Javadoc)
         * @see ILabelDecorator#decorateText(String, Object)
         */
        public String decorateText(String text, Object element) {
                return text;
        }

        /* (non-Javadoc)
         * @see ILabelDecorator#decorateImage(Image, Object)
         */
        public Image decorateImage(Image image, Object obj) {
                int adornmentFlags = computeAdornmentFlags(obj);
                if (adornmentFlags != 0) {
                        ImageDescriptor baseImage = new ImageImageDescriptor(image);
                        Rectangle bounds = image.getBounds();
                        return getRegistry().get(new JavaElementImageDescriptor(baseImage, adornmentFlags, new Point(bounds.width, bounds.height)));
                }
                return image;
        }


Clone AbstractionParameter Count: 3Parameter Bindings

/* (non-Javadoc)
     * @see ILabelDecorator#decorateText(String, Object)
     */
/* (non-Javadoc)
         * @see ILabelDecorator#decorateText(String, Object)
         */
public String decorateText(String text, Object element) {
  return text;
}

/* (non-Javadoc)
     * @see ILabelDecorator#decorateImage(Image, Object)
     */
/* (non-Javadoc)
         * @see ILabelDecorator#decorateImage(Image, Object)
         */
public Image decorateImage(Image image, Object  [[#variable53257240]]) {
  int adornmentFlags = computeAdornmentFlags( [[#variable53257240]]);
  if (adornmentFlags != 0) {
    ImageDescriptor baseImage = new ImageImageDescriptor(image);
    Rectangle bounds = image.getBounds();
    return [[#variable59775a60]].get(new [[#variable59775980]](baseImage, adornmentFlags, new Point(bounds.width, bounds.height)));
  }
  return image;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#53257240]]
element 
12[[#53257240]]
element 
13[[#53257240]]
obj 
21[[#59775a60]]
JavaPlugin.getImageDescriptorRegistry() 
22[[#59775a60]]
getRegistry() 
23[[#59775a60]]
getRegistry() 
31[[#59775980]]
CallHierarchyImageDescriptor 
32[[#59775980]]
JavaElementImageDescriptor 
33[[#59775980]]
JavaElementImageDescriptor