CloneSet2063


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
9350.956statement_sequence[4]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
19258
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaSourceViewer.java
29269
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaSourceViewer.java
39280
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaSourceViewer.java
Clone Instance
1
Line Count
9
Source Line
258
Source File
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;


Clone Instance
2
Line Count
9
Source Line
269
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaSourceViewer.java

                        // ----------- 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;


Clone Instance
3
Line Count
9
Source Line
280
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaSourceViewer.java

                        // ---------- 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;


Clone AbstractionParameter Count: 5Parameter Bindings

// ---------- 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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#ba76d740]]
AbstractTextEditor 
12[[#ba76d740]]
AbstractDecoratedTextEditorPreferenceConstants 
13[[#ba76d740]]
AbstractDecoratedTextEditorPreferenceConstants 
21[[#ba76d720]]
PREFERENCE_COLOR_BACKGROUND_SYSTEM_DEFAULT 
22[[#ba76d720]]
EDITOR_SELECTION_FOREGROUND_DEFAULT_COLOR 
23[[#ba76d720]]
EDITOR_SELECTION_BACKGROUND_DEFAULT_COLOR 
31[[#ba76d6a0]]
PREFERENCE_COLOR_BACKGROUND 
32[[#ba76d6a0]]
EDITOR_SELECTION_FOREGROUND_COLOR 
33[[#ba76d6a0]]
EDITOR_SELECTION_BACKGROUND_COLOR 
41[[#b8eed540]]
setBackground 
42[[#b8eed540]]
setSelectionForeground 
43[[#b8eed540]]
setSelectionBackground 
51[[#ba76d540]]
fBackgroundColor 
52[[#ba76d540]]
fSelectionForegroundColor 
53[[#ba76d540]]
fSelectionBackgroundColor