CloneSet1912


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
21230.979class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
12142
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/ExcludingDecoratingLabelProvider.java
22168
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/ExcludingDecoratingLabelProvider.java
Clone Instance
1
Line Count
21
Source Line
42
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/ExcludingDecoratingLabelProvider.java

        /*
         * @see ILabelProvider#getImage
         */
        public Image getImage(Object element) {
                IDecoratorManager decoratorMgr = PlatformUI.getWorkbench().getDecoratorManager();
                boolean isDecoratorEnabled = decoratorMgr.getEnabled(fExcludedDecoratorId);

                if (isDecoratorEnabled)
                        try {
                                decoratorMgr.setEnabled(fExcludedDecoratorId, false);
                        } catch (CoreException e) {
                                // continue
                          }

                Image image = super.getImage(element);

                if (isDecoratorEnabled)
                        try {
                                decoratorMgr.setEnabled(fExcludedDecoratorId, true);
                        } catch (CoreException e) {
                                // continue
                          }

                return image;
        }


Clone Instance
2
Line Count
21
Source Line
68
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/ExcludingDecoratingLabelProvider.java

        /*
         * @see ILabelProvider#getText
         */
        public String getText(Object element) {
                IDecoratorManager decoratorMgr = PlatformUI.getWorkbench().getDecoratorManager();
                boolean isDecoratorEnabled = decoratorMgr.getEnabled(fExcludedDecoratorId);

                if (isDecoratorEnabled)
                        try {
                                decoratorMgr.setEnabled(fExcludedDecoratorId, false);
                        } catch (CoreException e) {
                                // continue
                          }

                String text = super.getText(element);

                if (isDecoratorEnabled)
                        try {
                                decoratorMgr.setEnabled(fExcludedDecoratorId, true);
                        } catch (CoreException e) {
                                // continue
                          }

                return text;
        }


Clone AbstractionParameter Count: 3Parameter Bindings

/*
         * @see ILabelProvider#getImage
         */
/*
         * @see ILabelProvider#getText
         */
public [[#variableb443e820]]  [[#variableb443e7a0]](Object element) {
  IDecoratorManager decoratorMgr = PlatformUI.getWorkbench().getDecoratorManager();
  boolean isDecoratorEnabled = decoratorMgr.getEnabled(fExcludedDecoratorId);
  if (isDecoratorEnabled)
    try {
      decoratorMgr.setEnabled(fExcludedDecoratorId, false);
    }
    catch (CoreException e) {
    // continue
    }
   [[#variableb443e820]]  [[#variableb443e740]]= super. [[#variableb443e7a0]](element);
  if (isDecoratorEnabled)
    try {
      decoratorMgr.setEnabled(fExcludedDecoratorId, true);
    }
    catch (CoreException e) {
    // continue
    }
  return [[#variableb443e740]];
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b443e820]]
Image 
12[[#b443e820]]
String 
21[[#b443e7a0]]
getImage 
22[[#b443e7a0]]
getText 
31[[#b443e740]]
image 
32[[#b443e740]]
text