CloneSet2699


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
8220.991class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1886
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/CleanUpAction.java
28321
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/OrganizeImportsAction.java
Clone Instance
1
Line Count
8
Source Line
86
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/CleanUpAction.java

        /* (non-Javadoc)
         * Method declared on SelectionDispatchAction.
         */
        public void run(IStructuredSelection selection) {
                ICompilationUnit[] cus = getCompilationUnits(selection);
                if (cus.length == 0) {
                        MessageDialog.openInformation(getShell(), ActionMessages.CleanUpAction_EmptySelection_title, ActionMessages.CleanUpAction_EmptySelection_description);
                }
                else   if (cus.length == 1) {
                        run(cus[0]);
                       }
                       else {
                        runOnMultiple(cus);
                       }
        }


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

        /* (non-Javadoc)
         * Method declared on SelectionDispatchAction.
         */
        public void run(IStructuredSelection selection) {
                ICompilationUnit[] cus = getCompilationUnits(selection);
                if (cus.length == 0) {
                        MessageDialog.openInformation(getShell(), ActionMessages.OrganizeImportsAction_EmptySelection_title, ActionMessages.OrganizeImportsAction_EmptySelection_description);
                }
                else   if (cus.length == 1) {
                        run(cus[0]);
                       }
                       else {
                        runOnMultiple(cus);
                       }
        }


Clone AbstractionParameter Count: 2Parameter Bindings

/* (non-Javadoc)
         * Method declared on SelectionDispatchAction.
         */
public void run(IStructuredSelection selection) {
  ICompilationUnit[] cus = getCompilationUnits(selection);
  if (cus.length == 0) {
    MessageDialog.openInformation(getShell(), ActionMessages. [[#variable51367fa0]], ActionMessages. [[#variable51367f40]]);
  }
  else
    if (cus.length == 1) {
      run(cus[0]);
    }
    else {
      runOnMultiple(cus);
    }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#51367fa0]]
OrganizeImportsAction_EmptySelection_title 
12[[#51367fa0]]
CleanUpAction_EmptySelection_title 
21[[#51367f40]]
OrganizeImportsAction_EmptySelection_description 
22[[#51367f40]]
CleanUpAction_EmptySelection_description