Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
6 | 2 | 2 | 0.989 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 10 | 100 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/ConvertNestedToTopAction.java |
2 | 6 | 98 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/UseSupertypeAction.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); } } |
| ||||
/* * @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); } } |
| |||
/* * @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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#5440b2e0]] | isUseSuperTypeAvailable |
1 | 2 | [[#5440b2e0]] | isMoveInnerAvailable |
2 | 1 | [[#545028c0]] | startUseSupertypeRefactoring |
2 | 2 | [[#545028c0]] | startMoveInnerRefactoring |