CloneSet832


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
16260.978class_body_declarations[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
116127
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/VariablePathDialogField.java
22095
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/dialogfields/StringButtonStatusDialogField.java
Clone Instance
1
Line Count
16
Source Line
127
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/VariablePathDialogField.java

        // ------- layout helpers
        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 - 3));
                Button variableButton = getBrowseVariableControl(parent);
                variableButton.setLayoutData(gridDataForButton(variableButton, 1));
                Button browseButton = getChangeControl(parent);
                browseButton.setLayoutData(gridDataForButton(browseButton, 1));
                return new Control[] {
                                       label, text, variableButton, browseButton
                                     };
        }

        public int getNumberOfControls() {
                return 4;
        }


Clone Instance
2
Line Count
20
Source Line
95
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/dialogfields/StringButtonStatusDialogField.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 - 3));
                Label status = getStatusLabelControl(parent);
                status.setLayoutData(gridDataForStatusLabel(parent, 1));
                Button button = getChangeControl(parent);
                button.setLayoutData(gridDataForButton(button, 1));

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

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


Clone AbstractionParameter Count: 6Parameter Bindings

// ------- layout helpers
// ------- 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 - 3));
   [[#variablebc019d00]]  [[#variablebc019c80]]= [[#variablebc019be0]](parent);
   [[#variablebc019c80]].setLayoutData( [[#variablebc019b80]]( [[#variablebc019a80]], 1));
  Button  [[#variablebc019b40]]= getChangeControl(parent);
   [[#variablebc019b40]].setLayoutData(gridDataForButton( [[#variablebc019b40]], 1));
  return new Control[] {
                         label,
                         text,
                          [[#variablebc019c80]],
                          [[#variablebc019b40]]
                       };
}

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

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#bc019d00]]
Button 
12[[#bc019d00]]
Label 
21[[#bc019c80]]
variableButton 
22[[#bc019c80]]
status 
31[[#bc019be0]]
getBrowseVariableControl 
32[[#bc019be0]]
getStatusLabelControl 
41[[#bc019b80]]
gridDataForButton 
42[[#bc019b80]]
gridDataForStatusLabel 
51[[#bc019a80]]
variableButton 
52[[#bc019a80]]
parent 
61[[#bc019b40]]
browseButton 
62[[#bc019b40]]
button