CloneSet3062


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
12201.000class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11773
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/ToggleMarkOccurrencesAction.java
21279
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/ToggleTextHoverAction.java
Clone Instance
1
Line Count
17
Source Line
73
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/ToggleMarkOccurrencesAction.java

        /*
         * @see TextEditorAction#setEditor(ITextEditor)
         */
        public void setEditor(ITextEditor editor) {

                super.setEditor(editor);

                if (editor != null) {

                        if (fStore == null) {
                                fStore = JavaPlugin.getDefault().getPreferenceStore();
                                fStore.addPropertyChangeListener(this );
                        }
                }
                else   if (fStore != null) {
                        fStore.removePropertyChangeListener(this );
                        fStore = null;
                       }

                update();
        }


Clone Instance
2
Line Count
12
Source Line
79
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/ToggleTextHoverAction.java

        /*
         * @see TextEditorAction#setEditor(ITextEditor)
         */
        public void setEditor(ITextEditor editor) {
                super.setEditor(editor);
                if (editor != null) {
                        if (fStore == null) {
                                fStore = JavaPlugin.getDefault().getPreferenceStore();
                                fStore.addPropertyChangeListener(this );
                        }
                }
                else   if (fStore != null) {
                        fStore.removePropertyChangeListener(this );
                        fStore = null;
                       }
                update();
        }


Clone AbstractionParameter Count: 0Parameter Bindings

/*
         * @see TextEditorAction#setEditor(ITextEditor)
         */
public void setEditor(ITextEditor editor) {
  super.setEditor(editor);
  if (editor != null) {
    if (fStore == null) {
      fStore = JavaPlugin.getDefault().getPreferenceStore();
      fStore.addPropertyChangeListener(this );
    }
  }
  else
    if (fStore != null) {
      fStore.removePropertyChangeListener(this );
      fStore = null;
    }
  update();
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None