CloneSet1251


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

        /**
         * Creates or returns the created label widget.
         * @param parent The parent composite or <code>null</code> if the widget has
         * already been created.
         */
        public Label getLabelControl(Composite parent) {
                if (fLabel == null) {
                        assertCompositeNotNull(parent);

                        fLabel = new Label(parent, SWT.LEFT|  SWT.WRAP);
                        fLabel.setFont(parent.getFont());
                        fLabel.setEnabled(fEnabled);
                        if (fLabelText != null && !"".equals(fLabelText)) { //$NON-NLS-1$
                                fLabel.setText(fLabelText);
                        }
                        else   {
                                // XXX: to avoid a 16 pixel wide empty label - revisit
                                fLabel.setText("."); //$NON-NLS-1$
                                fLabel.setVisible(false);
                        }
                }
                return fLabel;
        }

        /**
         * Creates a spacer control.
         * @param parent The parent composite
         */
        public static Control createEmptySpace(Composite parent) {
                return createEmptySpace(parent, 1);
        }


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

        // ------- ui creation
        /**
         * Creates or returns the created label widget.
         * @param parent The parent composite or <code>null</code> if the widget has
         * already been created.
         */
        public Label getLabelControl(Composite parent) {
                if (fLabel == null) {
                        assertCompositeNotNull(parent);

                        fLabel = new Label(parent, SWT.LEFT|  SWT.WRAP);
                        fLabel.setFont(parent.getFont());
                        fLabel.setEnabled(fEnabled);
                        if (fLabelText != null && !"".equals(fLabelText)) { //$NON-NLS-1$
                                fLabel.setText(fLabelText);
                        }
                        else   {
                                // XXX: to avoid a 16 pixel wide empty label - revisit
                                fLabel.setText("."); //$NON-NLS-1$
                                fLabel.setVisible(false);
                        }
                }
                return fLabel;
        }

        /**
         * Creates a spacer control.
         * @param parent The parent composite
         */
        public static Control createEmptySpace(Composite parent) {
                return createEmptySpace(parent, 1);
        }


Clone AbstractionParameter Count: 0Parameter Bindings

// ------- ui creation
/**
         * Creates or returns the created label widget.
         * @param parent The parent composite or <code>null</code> if the widget has
         * already been created.
         */
public Label getLabelControl(Composite parent) {
  if (fLabel == null) {
    assertCompositeNotNull(parent);
    fLabel = new Label(parent, SWT.LEFT|SWT.WRAP);
    fLabel.setFont(parent.getFont());
    fLabel.setEnabled(fEnabled);
    if (fLabelText != null && !"".equals(fLabelText)) { //$NON-NLS-1$
      fLabel.setText(fLabelText);
    }
    else {
      // XXX: to avoid a 16 pixel wide empty label - revisit
      fLabel.setText("."); //$NON-NLS-1$
      fLabel.setVisible(false);
    }
  }
  return fLabel;
}

/**
         * Creates a spacer control.
         * @param parent The parent composite
         */
public static Control createEmptySpace(Composite parent) {
  return createEmptySpace(parent, 1);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None