CloneSet6665


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
13201.000class_body_declarations[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
113321
plugins/org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/wizards/MethodStubsSelectionButtonGroup.java
21381
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/dialogfields/DialogField.java
Clone Instance
1
Line Count
13
Source Line
321
Source File
plugins/org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/wizards/MethodStubsSelectionButtonGroup.java

        /**
         * Tries to set the focus to the dialog field.
         * Returns <code>true</code> if the dialog field can take focus.
         *      To be re-implemented by dialog field implementors.
         */
        public boolean setFocus() {
                return false;
        }

        /**
         * Posts <code>setFocus</code> to the display event queue.
         */
        public void postSetFocusOnDialogField(Display display) {
                if (display != null) {
                        display.asyncExec(
                                new Runnable() {
                                        public void run() {
                                                setFocus();
                                        }
                                }        );
                }
        }


Clone Instance
2
Line Count
13
Source Line
81
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/dialogfields/DialogField.java

        // ------- focus management
        /**
         * Tries to set the focus to the dialog field.
         * Returns <code>true</code> if the dialog field can take focus.
         *      To be reimplemented by dialog field implementors.
         */
        public boolean setFocus() {
                return false;
        }

        /**
         * Posts <code>setFocus</code> to the display event queue.
         */
        public void postSetFocusOnDialogField(Display display) {
                if (display != null) {
                        display.asyncExec(
                                new Runnable() {
                                        public void run() {
                                                setFocus();
                                        }
                                }        );
                }
        }


Clone AbstractionParameter Count: 0Parameter Bindings

// ------- focus management
/**
         * Tries to set the focus to the dialog field.
         * Returns <code>true</code> if the dialog field can take focus.
         *      To be reimplemented by dialog field implementors.
         */
/**
         * Tries to set the focus to the dialog field.
         * Returns <code>true</code> if the dialog field can take focus.
         *      To be re-implemented by dialog field implementors.
         */
public boolean setFocus() {
  return false;
}

/**
         * Posts <code>setFocus</code> to the display event queue.
         */
public void postSetFocusOnDialogField(Display display) {
  if (display != null) {
    display.asyncExec(new Runnable() {
                        public void run() {
                          setFocus();
                        }
                      } );
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None