Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
9 | 3 | 5 | 0.956 | statement_sequence[4] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 9 | 258 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaSourceViewer.java |
2 | 9 | 269 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaSourceViewer.java |
3 | 9 | 280 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaSourceViewer.java |
| ||||
// ---------- background color ---------------------- color = fPreferenceStore.getBoolean(AbstractTextEditor.PREFERENCE_COLOR_BACKGROUND_SYSTEM_DEFAULT) ? null : createColor(fPreferenceStore, AbstractTextEditor.PREFERENCE_COLOR_BACKGROUND, styledText.getDisplay()); styledText.setBackground(color); if (fBackgroundColor != null) fBackgroundColor.dispose(); fBackgroundColor = color; |
| ||||
// ----------- selection foreground color -------------------- color = fPreferenceStore.getBoolean(AbstractDecoratedTextEditorPreferenceConstants.EDITOR_SELECTION_FOREGROUND_DEFAULT_COLOR) ? null: createColor(fPreferenceStore, AbstractDecoratedTextEditorPreferenceConstants.EDITOR_SELECTION_FOREGROUND_COLOR, styledText.getDisplay()); styledText.setSelectionForeground(color); if (fSelectionForegroundColor != null) fSelectionForegroundColor.dispose(); fSelectionForegroundColor = color; |
| ||||
// ---------- selection background color ---------------------- color = fPreferenceStore.getBoolean(AbstractDecoratedTextEditorPreferenceConstants.EDITOR_SELECTION_BACKGROUND_DEFAULT_COLOR) ? null: createColor(fPreferenceStore, AbstractDecoratedTextEditorPreferenceConstants.EDITOR_SELECTION_BACKGROUND_COLOR, styledText.getDisplay()); styledText.setSelectionBackground(color); if (fSelectionBackgroundColor != null) fSelectionBackgroundColor.dispose(); fSelectionBackgroundColor = color; |
| |||
// ---------- background color ---------------------- // ----------- selection foreground color -------------------- // ---------- selection background color ---------------------- color = fPreferenceStore.getBoolean( [[#variableba76d740]]. [[#variableba76d720]]) ? null: createColor(fPreferenceStore, [[#variableba76d740]]. [[#variableba76d6a0]], styledText.getDisplay()); styledText. [[#variableb8eed540]](color); if ( [[#variableba76d540]]!= null) [[#variableba76d540]].dispose(); [[#variableba76d540]]= color; |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#ba76d740]] | AbstractTextEditor |
1 | 2 | [[#ba76d740]] | AbstractDecoratedTextEditorPreferenceConstants |
1 | 3 | [[#ba76d740]] | AbstractDecoratedTextEditorPreferenceConstants |
2 | 1 | [[#ba76d720]] | PREFERENCE_COLOR_BACKGROUND_SYSTEM_DEFAULT |
2 | 2 | [[#ba76d720]] | EDITOR_SELECTION_FOREGROUND_DEFAULT_COLOR |
2 | 3 | [[#ba76d720]] | EDITOR_SELECTION_BACKGROUND_DEFAULT_COLOR |
3 | 1 | [[#ba76d6a0]] | PREFERENCE_COLOR_BACKGROUND |
3 | 2 | [[#ba76d6a0]] | EDITOR_SELECTION_FOREGROUND_COLOR |
3 | 3 | [[#ba76d6a0]] | EDITOR_SELECTION_BACKGROUND_COLOR |
4 | 1 | [[#b8eed540]] | setBackground |
4 | 2 | [[#b8eed540]] | setSelectionForeground |
4 | 3 | [[#b8eed540]] | setSelectionBackground |
5 | 1 | [[#ba76d540]] | fBackgroundColor |
5 | 2 | [[#ba76d540]] | fSelectionForegroundColor |
5 | 3 | [[#ba76d540]] | fSelectionBackgroundColor |