CloneSet1740


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
15220.990class_body_declarations[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
115482
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/dialogfields/ListDialogField.java
215411
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/dialogfields/TreeListDialogField.java
Clone Instance
1
Line Count
15
Source Line
482
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/dialogfields/ListDialogField.java

        // ------ enable / disable management
        /*
         * @see DialogField#dialogFieldChanged
         */
        public void dialogFieldChanged() {
                super.dialogFieldChanged();
                updateButtonState();
        }

        /*
         * Updates the enable state of the all buttons
         */
        protected void updateButtonState() {
                if (fButtonControls != null && isOkToUse(fTableControl) && fTableControl.isEnabled()) {
                        ISelection sel = fTable.getSelection();
                        for (int i = 0; i < fButtonControls.length; i++) {
                                Button button = fButtonControls[i];
                                if (isOkToUse(button)) {
                                        button.setEnabled(isButtonEnabled(sel, i));
                                }
                        }
                }
        }


Clone Instance
2
Line Count
15
Source Line
411
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/dialogfields/TreeListDialogField.java

        // ------ enable / disable management
        /*
        * @see DialogField#dialogFieldChanged
        */
        public void dialogFieldChanged() {
                super.dialogFieldChanged();
                updateButtonState();
        }

        /*
        * Updates the enable state of the all buttons
        */
        protected void updateButtonState() {
                if (fButtonControls != null && isOkToUse(fTreeControl) && fTreeControl.isEnabled()) {
                        ISelection sel = fTree.getSelection();
                        for (int i = 0; i < fButtonControls.length; i++) {
                                Button button = fButtonControls[i];
                                if (isOkToUse(button)) {
                                        button.setEnabled(isButtonEnabled(sel, i));
                                }
                        }
                }
        }


Clone AbstractionParameter Count: 2Parameter Bindings

// ------ enable / disable management
/*
         * @see DialogField#dialogFieldChanged
         */
/*
        * @see DialogField#dialogFieldChanged
        */
public void dialogFieldChanged() {
  super.dialogFieldChanged();
  updateButtonState();
}

/*
         * Updates the enable state of the all buttons
         */
/*
        * Updates the enable state of the all buttons
        */
protected void updateButtonState() {
  if (fButtonControls != null && isOkToUse( [[#variable9fea1d00]]) && [[#variable9fea1d00]].isEnabled()) {
    ISelection sel = [[#variable9fea1dc0]].getSelection();
    for (int i = 0; i < fButtonControls.length; i++) {
      Button button = fButtonControls[i];
      if (isOkToUse(button)) {
        button.setEnabled(isButtonEnabled(sel, i));
      }
    }
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#9fea1d00]]
fTableControl 
12[[#9fea1d00]]
fTreeControl 
21[[#9fea1dc0]]
fTable 
22[[#9fea1dc0]]
fTree