CloneSet1934


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
12240.986statement_sequence[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
110578
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/SemanticHighlightingManager.java
212313
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/AbstractJavaScanner.java
Clone Instance
1
Line Count
10
Source Line
578
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/SemanticHighlightingManager.java

                        Color color = fColorManager.getColor(property);

                        if ((color == null || !rgb.equals(color.getRGB())) && fColorManager instanceof IColorManagerExtension) {
                                IColorManagerExtension ext = (IColorManagerExtension) fColorManager;
                                ext.unbindColor(property);
                                ext.bindColor(property, rgb);
                                color = fColorManager.getColor(property);
                        }

                        TextAttribute oldAttr = highlighting.getTextAttribute();


Clone Instance
2
Line Count
12
Source Line
313
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/AbstractJavaScanner.java

                        Color color = fColorManager.getColor(property);

                        if ((color == null || !rgb.equals(color.getRGB())) && fColorManager instanceof IColorManagerExtension) {
                                IColorManagerExtension ext = (IColorManagerExtension) fColorManager;

                                ext.unbindColor(property);
                                ext.bindColor(property, rgb);

                                color = fColorManager.getColor(property);
                        }

                        Object data = token.getData();


Clone AbstractionParameter Count: 4Parameter Bindings

Color color = fColorManager.getColor(property);
if ((color == null || !rgb.equals(color.getRGB())) && fColorManager instanceof IColorManagerExtension) {
  IColorManagerExtension ext = (IColorManagerExtension) fColorManager;
  ext.unbindColor(property);
  ext.bindColor(property, rgb);
  color = fColorManager.getColor(property);
}
 [[#variableb1a829a0]]  [[#variableb2569b80]]= [[#variableb1a829c0]]. [[#variableb1a82940]]();
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b1a829a0]]
Object 
12[[#b1a829a0]]
TextAttribute 
21[[#b2569b80]]
data 
22[[#b2569b80]]
oldAttr 
31[[#b1a829c0]]
token 
32[[#b1a829c0]]
highlighting 
41[[#b1a82940]]
getData 
42[[#b1a82940]]
getTextAttribute