CloneSet3224


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
6220.990class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
16745
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/AbstractJavaCompletionProposal.java
26753
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/AbstractJavaCompletionProposal.java
Clone Instance
1
Line Count
6
Source Line
745
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/AbstractJavaCompletionProposal.java

        private static Color getForegroundColor(StyledText text) {

                IPreferenceStore preference = JavaPlugin.getDefault().getPreferenceStore();
                RGB rgb = PreferenceConverter.getColor(preference, PreferenceConstants.CODEASSIST_REPLACEMENT_FOREGROUND);
                JavaTextTools textTools = JavaPlugin.getDefault().getJavaTextTools();
                return textTools.getColorManager().getColor(rgb);
        }


Clone Instance
2
Line Count
6
Source Line
753
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/AbstractJavaCompletionProposal.java

        private static Color getBackgroundColor(StyledText text) {

                IPreferenceStore preference = JavaPlugin.getDefault().getPreferenceStore();
                RGB rgb = PreferenceConverter.getColor(preference, PreferenceConstants.CODEASSIST_REPLACEMENT_BACKGROUND);
                JavaTextTools textTools = JavaPlugin.getDefault().getJavaTextTools();
                return textTools.getColorManager().getColor(rgb);
        }


Clone AbstractionParameter Count: 2Parameter Bindings

private static Color  [[#variable4e75d660]](StyledText text) {
  IPreferenceStore preference = JavaPlugin.getDefault().getPreferenceStore();
  RGB rgb = PreferenceConverter.getColor(preference, PreferenceConstants. [[#variable4e75d600]]);
  JavaTextTools textTools = JavaPlugin.getDefault().getJavaTextTools();
  return textTools.getColorManager().getColor(rgb);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#4e75d660]]
getForegroundColor 
12[[#4e75d660]]
getBackgroundColor 
21[[#4e75d600]]
CODEASSIST_REPLACEMENT_FOREGROUND 
22[[#4e75d600]]
CODEASSIST_REPLACEMENT_BACKGROUND