CloneSet2028


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
11201.000class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
111128
plugins/org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/util/LayoutUtil.java
211171
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/dialogfields/DialogField.java
Clone Instance
1
Line Count
11
Source Line
128
Source File
plugins/org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/util/LayoutUtil.java

        /*
         * Creates a spacer control with the given span.
         * The composite is assumed to have <code>MGridLayout</code> as
         * layout.
         * @param parent The parent composite
         */
        public static Control createEmptySpace(Composite parent, int span) {
                Label label = new Label(parent, SWT.LEFT);
                GridData gd = new GridData();
                gd.horizontalAlignment = GridData.BEGINNING;
                gd.grabExcessHorizontalSpace = false;
                gd.horizontalSpan = span;
                gd.horizontalIndent = 0;
                gd.widthHint = 0;
                gd.heightHint = 0;
                label.setLayoutData(gd);
                return label;
        }


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

        /**
         * Creates a spacer control with the given span.
         * The composite is assumed to have <code>MGridLayout</code> as
         * layout.
         * @param parent The parent composite
         */
        public static Control createEmptySpace(Composite parent, int span) {
                Label label = new Label(parent, SWT.LEFT);
                GridData gd = new GridData();
                gd.horizontalAlignment = GridData.BEGINNING;
                gd.grabExcessHorizontalSpace = false;
                gd.horizontalSpan = span;
                gd.horizontalIndent = 0;
                gd.widthHint = 0;
                gd.heightHint = 0;
                label.setLayoutData(gd);
                return label;
        }


Clone AbstractionParameter Count: 0Parameter Bindings

/**
         * Creates a spacer control with the given span.
         * The composite is assumed to have <code>MGridLayout</code> as
         * layout.
         * @param parent The parent composite
         */
/*
         * Creates a spacer control with the given span.
         * The composite is assumed to have <code>MGridLayout</code> as
         * layout.
         * @param parent The parent composite
         */
public static Control createEmptySpace(Composite parent, int span) {
  Label label = new Label(parent, SWT.LEFT);
  GridData gd = new GridData();
  gd.horizontalAlignment = GridData.BEGINNING;
  gd.grabExcessHorizontalSpace = false;
  gd.horizontalSpan = span;
  gd.horizontalIndent = 0;
  gd.widthHint = 0;
  gd.heightHint = 0;
  label.setLayoutData(gd);
  return label;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None