CloneSet1083


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
24240.983class_body_declarations[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
12448
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/dialogfields/ComboDialogField.java
22457
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/dialogfields/StringDialogField.java
Clone Instance
1
Line Count
24
Source Line
48
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/dialogfields/ComboDialogField.java

        // ------- layout helpers
        /*
         * @see DialogField#doFillIntoGrid
         */
        public Control[] doFillIntoGrid(Composite parent, int nColumns) {
                assertEnoughColumns(nColumns);

                Label label = getLabelControl(parent);
                label.setLayoutData(gridDataForLabel(1));
                Combo combo = getComboControl(parent);
                combo.setLayoutData(gridDataForCombo(nColumns - 1));

                return new Control[] {
                                       label, combo
                                     };
        }

        /*
         * @see DialogField#getNumberOfControls
         */
        public int getNumberOfControls() {
                return 2;
        }

        protected static GridData gridDataForCombo(int span) {
                GridData gd = new GridData();
                gd.horizontalAlignment = GridData.FILL;
                gd.grabExcessHorizontalSpace = false;
                gd.horizontalSpan = span;
                return gd;
        }


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

        // ------- layout helpers
        /*
         * @see DialogField#doFillIntoGrid
         */
        public Control[] doFillIntoGrid(Composite parent, int nColumns) {
                assertEnoughColumns(nColumns);

                Label label = getLabelControl(parent);
                label.setLayoutData(gridDataForLabel(1));
                Text text = getTextControl(parent);
                text.setLayoutData(gridDataForText(nColumns - 1));

                return new Control[] {
                                       label, text
                                     };
        }

        /*
         * @see DialogField#getNumberOfControls
         */
        public int getNumberOfControls() {
                return 2;
        }

        protected static GridData gridDataForText(int span) {
                GridData gd = new GridData();
                gd.horizontalAlignment = GridData.FILL;
                gd.grabExcessHorizontalSpace = false;
                gd.horizontalSpan = span;
                return gd;
        }


Clone AbstractionParameter Count: 4Parameter Bindings

// ------- layout helpers
/*
         * @see DialogField#doFillIntoGrid
         */
public Control[] doFillIntoGrid(Composite parent, int nColumns) {
  assertEnoughColumns(nColumns);
  Label label = getLabelControl(parent);
  label.setLayoutData(gridDataForLabel(1));
   [[#variable7d193960]]  [[#variable7d1938c0]]= [[#variable7d193840]](parent);
   [[#variable7d1938c0]].setLayoutData( [[#variable7d193880]](nColumns - 1));
  return new Control[] {
                         label,
                          [[#variable7d1938c0]]
                       };
}

/*
         * @see DialogField#getNumberOfControls
         */
public int getNumberOfControls() {
  return 2;
}

protected static GridData  [[#variable7d193880]](int span) {
  GridData gd = new GridData();
  gd.horizontalAlignment = GridData.FILL;
  gd.grabExcessHorizontalSpace = false;
  gd.horizontalSpan = span;
  return gd;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#7d193960]]
Combo 
12[[#7d193960]]
Text 
21[[#7d1938c0]]
combo 
22[[#7d1938c0]]
text 
31[[#7d193840]]
getComboControl 
32[[#7d193840]]
getTextControl 
41[[#7d193880]]
gridDataForCombo 
42[[#7d193880]]
gridDataForText