Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
6 | 2 | 2 | 0.990 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 6 | 745 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/AbstractJavaCompletionProposal.java |
2 | 6 | 753 | 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); } |
| ||||
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); } |
| |||
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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#4e75d660]] | getForegroundColor |
1 | 2 | [[#4e75d660]] | getBackgroundColor |
2 | 1 | [[#4e75d600]] | CODEASSIST_REPLACEMENT_FOREGROUND |
2 | 2 | [[#4e75d600]] | CODEASSIST_REPLACEMENT_BACKGROUND |