CloneSet2631


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

        public void postSetSelection( final ISelection selection) {
                if (isOkToUse(fTableControl)) {
                        Display d = fTableControl.getDisplay();
                        d.asyncExec(new Runnable() {
                                public void run() {
                                        if (isOkToUse(fTableControl)) {
                                                selectElements(selection);
                                        }
                                }
                                    } );
                }
        }

        /**
         * Refreshes the table.
         */
        public void refresh() {
                super.refresh();
                if (isOkToUse(fTableControl)) {
                        fTable.refresh();
                }
        }


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

        public void postSetSelection( final ISelection selection) {
                if (isOkToUse(fTreeControl)) {
                        Display d = fTreeControl.getDisplay();
                        d.asyncExec(new Runnable() {
                                public void run() {
                                        if (isOkToUse(fTreeControl)) {
                                                selectElements(selection);
                                        }
                                }
                                    } );
                }
        }

        /**
        * Refreshes the tree.
        */
        public void refresh() {
                super.refresh();
                if (isOkToUse(fTreeControl)) {
                        fTree.refresh();
                }
        }


Clone AbstractionParameter Count: 2Parameter Bindings

public void postSetSelection( final ISelection selection) {
  if (isOkToUse( [[#variable92b4b600]])) {
    Display d = [[#variable92b4b600]].getDisplay();
    d.asyncExec(new Runnable() {
                  public void run() {
                    if (isOkToUse( [[#variable92b4b600]])) {
                      selectElements(selection);
                    }
                  }
                } );
  }
}

/**
         * Refreshes the table.
         */
/**
        * Refreshes the tree.
        */
public void refresh() {
  super.refresh();
  if (isOkToUse( [[#variable92b4b600]])) {
     [[#variable92b4b640]].refresh();
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#92b4b600]]
fTableControl 
12[[#92b4b600]]
fTreeControl 
21[[#92b4b640]]
fTable 
22[[#92b4b640]]
fTree