CloneSet1196


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
15230.987class_body_declarations[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11538
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/JDIContentAssistPreference.java
21566
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/ContentAssistPreference.java
Clone Instance
1
Line Count
15
Source Line
38
Source File
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/JDIContentAssistPreference.java

        private static Color getColor(IPreferenceStore store, String key, IColorManager manager) {
                RGB rgb = PreferenceConverter.getColor(store, key);
                return manager.getColor(rgb);
        }

        private static Color getColor(IPreferenceStore store, String key) {
                JavaTextTools textTools = JDIDebugUIPlugin.getDefault().getJavaTextTools();
                return getColor(store, key, textTools.getColorManager());
        }

        private static JavaDebugContentAssistProcessor getDisplayProcessor(ContentAssistant assistant) {
                IContentAssistProcessor p = assistant.getContentAssistProcessor(IDocument.DEFAULT_CONTENT_TYPE);
                if (p instanceof JavaDebugContentAssistProcessor)
                        return  (JavaDebugContentAssistProcessor) p;
                return null;
        }


Clone Instance
2
Line Count
15
Source Line
66
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/ContentAssistPreference.java

        private static Color getColor(IPreferenceStore store, String key, IColorManager manager) {
                RGB rgb = PreferenceConverter.getColor(store, key);
                return manager.getColor(rgb);
        }

        private static Color getColor(IPreferenceStore store, String key) {
                JavaTextTools textTools = JavaPlugin.getDefault().getJavaTextTools();
                return getColor(store, key, textTools.getColorManager());
        }

        private static JavaCompletionProcessor getJavaProcessor(ContentAssistant assistant) {
                IContentAssistProcessor p = assistant.getContentAssistProcessor(IDocument.DEFAULT_CONTENT_TYPE);
                if (p instanceof JavaCompletionProcessor)
                        return  (JavaCompletionProcessor) p;
                return null;
        }


Clone AbstractionParameter Count: 3Parameter Bindings

private static Color getColor(IPreferenceStore store, String key, IColorManager manager) {
  RGB rgb = PreferenceConverter.getColor(store, key);
  return manager.getColor(rgb);
}

private static Color getColor(IPreferenceStore store, String key) {
  JavaTextTools textTools = [[#variablebde26d00]].getDefault().getJavaTextTools();
  return getColor(store, key, textTools.getColorManager());
}

private static [[#variableb8271e60]]  [[#variablebde26d60]](ContentAssistant assistant) {
  IContentAssistProcessor p = assistant.getContentAssistProcessor(IDocument.DEFAULT_CONTENT_TYPE);
  if (p instanceof [[#variableb8271e60]])
    return ( [[#variableb8271e60]]) p;
  return null;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#bde26d00]]
JDIDebugUIPlugin 
12[[#bde26d00]]
JavaPlugin 
21[[#b8271e60]]
JavaDebugContentAssistProcessor 
22[[#b8271e60]]
JavaCompletionProcessor 
31[[#bde26d60]]
getDisplayProcessor 
32[[#bde26d60]]
getJavaProcessor