CloneSet2178


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
17220.977class_body_declarations[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11751
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/LexicalSortingAction.java
217783
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaOutlinePage.java
Clone Instance
1
Line Count
17
Source Line
51
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/LexicalSortingAction.java

        public void run() {
                valueChanged(isChecked(), true);
        }

        private void valueChanged( final boolean on, boolean store) {
                setChecked(on);
                BusyIndicator.showWhile(fViewer.getControl().getDisplay(), new Runnable() {
                        public void run() {
                                if (on)
                                        fViewer.setSorter(fSorter);
                                else
                                        fViewer.setSorter(fSourcePositonSorter);
                        }
                                                                           } );

                if (store)
                        JavaPlugin.getDefault().getPreferenceStore().setValue(fPreferenceKey, on);
        }


Clone Instance
2
Line Count
17
Source Line
783
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaOutlinePage.java

                                public void run() {
                                        valueChanged(isChecked(), true);
                                }

                                private void valueChanged( final boolean on, boolean store) {
                                        setChecked(on);
                                        BusyIndicator.showWhile(fOutlineViewer.getControl().getDisplay(), new Runnable() {
                                                public void run() {
                                                        if (on)
                                                                fOutlineViewer.setSorter(fSorter);
                                                        else
                                                                fOutlineViewer.setSorter(fSourcePositonSorter);
                                                }
                                                                                                          } );

                                        if (store)
                                                JavaPlugin.getDefault().getPreferenceStore().setValue("LexicalSortingAction.isChecked", on); //$NON-NLS-1$
                                }


Clone AbstractionParameter Count: 2Parameter Bindings

public void run() {
  valueChanged(isChecked(), true);
}

private void valueChanged( final boolean on, boolean store) {
  setChecked(on);
  BusyIndicator.showWhile( [[#variableb3127060]].getControl().getDisplay(), new Runnable() {
                                                                              public void run() {
                                                                                if (on)
                                                                                   [[#variableb3127060]].setSorter(fSorter);
                                                                                else
                                                                                   [[#variableb3127060]].setSorter(fSourcePositonSorter);
                                                                              }
                                                                            } );
  if (store)
    JavaPlugin.getDefault().getPreferenceStore().setValue( [[#variableb3126f80]], on); //$NON-NLS-1$
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b3127060]]
fViewer 
12[[#b3127060]]
fOutlineViewer 
21[[#b3126f80]]
fPreferenceKey 
22[[#b3126f80]]
"LexicalSortingAction.isChecked"