CloneSet2130


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
15210.996class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11483
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/MainTypeSelectionDialog.java
21566
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/MultiMainTypeSelectionDialog.java
Clone Instance
1
Line Count
14
Source Line
83
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/MainTypeSelectionDialog.java

        /*
         * @see Window#open()
         */
        public int open() {
                MainMethodSearchEngine engine = new MainMethodSearchEngine();
                IType[] types;
                try {
                        types = engine.searchMainMethods(fRunnableContext, fScope, fStyle);
                } catch (InterruptedException e) {
                        return CANCEL;
                  }
                  catch (InvocationTargetException e) {
                        ExceptionHandler.handle(e, JavaUIMessages.MainTypeSelectionDialog_errorTitle, e.getMessage());
                        return CANCEL;
                  }
                setElements(types);
                return super.open();
        }


Clone Instance
2
Line Count
15
Source Line
66
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/MultiMainTypeSelectionDialog.java

        /*
         * @see Window#open()
         */
        public int open() {
                MainMethodSearchEngine engine = new MainMethodSearchEngine();
                IType[] types;
                try {
                        types = engine.searchMainMethods(fRunnableContext, fScope, fStyle);
                } catch (InterruptedException e) {
                        return CANCEL;
                  }
                  catch (InvocationTargetException e) {
                        //XX: to do
                        ExceptionHandler.handle(e, JavaUIMessages.MultiMainTypeSelectionDialog_errorTitle, e.getMessage());
                        return CANCEL;
                  }
                setElements(types);
                return super.open();
        }


Clone AbstractionParameter Count: 1Parameter Bindings

/*
         * @see Window#open()
         */
public int open() {
  MainMethodSearchEngine engine = new MainMethodSearchEngine();
  IType[] types;
  try {
    types = engine.searchMainMethods(fRunnableContext, fScope, fStyle);
  }
  catch (InterruptedException e) {
    return CANCEL;
  }
  catch (InvocationTargetException e) {
    //XX: to do
    ExceptionHandler.handle(e, JavaUIMessages. [[#variableb598a4a0]], e.getMessage());
    return CANCEL;
  }
  setElements(types);
  return super.open();
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b598a4a0]]
MultiMainTypeSelectionDialog_errorTitle 
12[[#b598a4a0]]
MainTypeSelectionDialog_errorTitle