Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
15 | 2 | 3 | 0.987 | class_body_declarations[3] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 15 | 38 | plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/JDIContentAssistPreference.java |
2 | 15 | 66 | 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 = 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; } |
| ||||
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; } |
| |||
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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#bde26d00]] | JDIDebugUIPlugin |
1 | 2 | [[#bde26d00]] | JavaPlugin |
2 | 1 | [[#b8271e60]] | JavaDebugContentAssistProcessor |
2 | 2 | [[#b8271e60]] | JavaCompletionProcessor |
3 | 1 | [[#bde26d60]] | getDisplayProcessor |
3 | 2 | [[#bde26d60]] | getJavaProcessor |