CloneSet3429


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
11210.990class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
111105
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/FormatAllAction.java
211124
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/OrganizeImportsAction.java
Clone Instance
1
Line Count
11
Source Line
105
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/FormatAllAction.java

        /* (non-Javadoc)
         * Class implements IObjectActionDelegate
         */
        public static class ObjectDelegate implements IObjectActionDelegate {
                private FormatAllAction fAction;

                public void setActivePart(IAction action, IWorkbenchPart targetPart) {
                        fAction = new FormatAllAction(targetPart.getSite());
                }

                public void run(IAction action) {
                        fAction.run();
                }

                public void selectionChanged(IAction action, ISelection selection) {
                        if (fAction == null)
                                action.setEnabled(false);
                }
        }


Clone Instance
2
Line Count
11
Source Line
124
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/OrganizeImportsAction.java

        /* (non-Javadoc)
         * Class implements IObjectActionDelegate
         */
        public static class ObjectDelegate implements IObjectActionDelegate {
                private OrganizeImportsAction fAction;

                public void setActivePart(IAction action, IWorkbenchPart targetPart) {
                        fAction = new OrganizeImportsAction(targetPart.getSite());
                }

                public void run(IAction action) {
                        fAction.run();
                }

                public void selectionChanged(IAction action, ISelection selection) {
                        if (fAction == null)
                                action.setEnabled(false);
                }
        }


Clone AbstractionParameter Count: 1Parameter Bindings

/* (non-Javadoc)
         * Class implements IObjectActionDelegate
         */
public static class ObjectDelegate implements IObjectActionDelegate {
  private [[#variableb08e6540]] fAction;

  public void setActivePart(IAction action, IWorkbenchPart targetPart) {
    fAction = new [[#variableb08e6540]](targetPart.getSite());
  }

  public void run(IAction action) {
    fAction.run();
  }

  public void selectionChanged(IAction action, ISelection selection) {
    if (fAction == null)
      action.setEnabled(false);
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b08e6540]]
OrganizeImportsAction 
12[[#b08e6540]]
FormatAllAction