CloneSet1686


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
13230.951block
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11334
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/DelegateUIHelper.java
21349
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/DelegateUIHelper.java
Clone Instance
1
Line Count
13
Source Line
34
Source File
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/DelegateUIHelper.java

                                                                                                          {
                final IDelegateUpdating updating = (IDelegateUpdating) refactoring.getAdapter(IDelegateUpdating.class );
                if (updating == null || !updating.canEnableDelegateUpdating())
                        return null;
                final Button button = createCheckbox(parent, getDeprecateDelegateCheckBoxTitle(), loadDeprecateDelegateSetting(updating));
                updating.setDeprecateDelegates(button.getSelection());
                button.addSelectionListener(new SelectionAdapter() {

                        public void widgetSelected(SelectionEvent e) {
                                updating.setDeprecateDelegates(button.getSelection());
                        }
                                            } );
                return button;
                                                                                                          }


Clone Instance
2
Line Count
13
Source Line
49
Source File
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/DelegateUIHelper.java

                                                                                                                      {
                final IDelegateUpdating updating = (IDelegateUpdating) refactoring.getAdapter(IDelegateUpdating.class );
                if (updating == null || !updating.canEnableDelegateUpdating())
                        return null;
                final Button button = createCheckbox(parent, updating.getDelegateUpdatingTitle(plural), loadLeaveDelegateSetting(updating));
                updating.setDelegateUpdating(button.getSelection());
                button.addSelectionListener(new SelectionAdapter() {

                        public void widgetSelected(SelectionEvent e) {
                                updating.setDelegateUpdating(button.getSelection());
                        }
                                            } );
                return button;
                                                                                                                      }


Clone AbstractionParameter Count: 3Parameter Bindings

{
  final IDelegateUpdating updating = (IDelegateUpdating) refactoring.getAdapter(IDelegateUpdating.class );
  if (updating == null || !updating.canEnableDelegateUpdating())
    return null;
  final Button button = createCheckbox(parent,  [[#variablea524eb40]],  [[#variablea524eae0]](updating));
  updating. [[#variablea524ea40]](button.getSelection());
  button.addSelectionListener(new SelectionAdapter() {
                                public void widgetSelected(SelectionEvent e) {
                                  updating. [[#variablea524ea40]](button.getSelection());
                                }
                              } );
  return button;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#a524eb40]]
getDeprecateDelegateCheckBoxTitle() 
12[[#a524eb40]]
updating.getDelegateUpdatingTitle(plural) 
21[[#a524eae0]]
loadDeprecateDelegateSetting 
22[[#a524eae0]]
loadLeaveDelegateSetting 
31[[#a524ea40]]
setDeprecateDelegates 
32[[#a524ea40]]
setDelegateUpdating