CloneSet3825


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
6220.989class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
110100
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/ConvertNestedToTopAction.java
2698
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/UseSupertypeAction.java
Clone Instance
1
Line Count
10
Source Line
100
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/ConvertNestedToTopAction.java

        /*
         * @see SelectionDispatchAction#run(IStructuredSelection)
         */
        public void run(IStructuredSelection selection) {
                try {
                        //we have to call this here - no selection changed event is sent
                        // after a refactoring but it may still invalidate enablement
                        if (RefactoringAvailabilityTester.isMoveInnerAvailable(selection))
                                RefactoringExecutionStarter.startMoveInnerRefactoring(getSingleSelectedType(selection), getShell());
                } catch (JavaModelException e) {
                        ExceptionHandler.handle(e, 
                                RefactoringMessages.OpenRefactoringWizardAction_refactoring, 
                                RefactoringMessages.OpenRefactoringWizardAction_exception);
                  }
        }


Clone Instance
2
Line Count
6
Source Line
98
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/UseSupertypeAction.java

        /*
         * @see SelectionDispatchAction#run(IStructuredSelection)
         */
        public void run(IStructuredSelection selection) {
                try {
                        if (RefactoringAvailabilityTester.isUseSuperTypeAvailable(selection))
                                RefactoringExecutionStarter.startUseSupertypeRefactoring(getSingleSelectedType(selection), getShell());
                } catch (JavaModelException e) {
                        ExceptionHandler.handle(e, RefactoringMessages.OpenRefactoringWizardAction_refactoring, RefactoringMessages.OpenRefactoringWizardAction_exception);
                  }
        }


Clone AbstractionParameter Count: 2Parameter Bindings

/*
         * @see SelectionDispatchAction#run(IStructuredSelection)
         */
public void run(IStructuredSelection selection) {
  try {
    //we have to call this here - no selection changed event is sent
    // after a refactoring but it may still invalidate enablement
    if (RefactoringAvailabilityTester. [[#variable5440b2e0]](selection))
      RefactoringExecutionStarter. [[#variable545028c0]](getSingleSelectedType(selection), getShell());
  }
  catch (JavaModelException e) {
    ExceptionHandler.handle(e, RefactoringMessages.OpenRefactoringWizardAction_refactoring, RefactoringMessages.OpenRefactoringWizardAction_exception);
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#5440b2e0]]
isUseSuperTypeAvailable 
12[[#5440b2e0]]
isMoveInnerAvailable 
21[[#545028c0]]
startUseSupertypeRefactoring 
22[[#545028c0]]
startMoveInnerRefactoring