Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
13 | 2 | 6 | 0.956 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 13 | 103 | plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/actions/MoveStaticMembersAction.java |
2 | 13 | 150 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/ExtractSuperTypeAction.java |
| ||||
public void run(ITextSelection selection) { try { if ( !ActionUtil.isProcessable(getShell(), fEditor)) return; IMember member = getSelectedMember(); IMember[] array = new IMember[] { member }; if (member != null && RefactoringAvailabilityTester.isMoveStaticMembersAvailable(array)) { RefactoringExecutionStarter.startMoveStaticMembersRefactoring(array, getShell()); } else { MessageDialog.openInformation(getShell(), RefactoringMessages.OpenRefactoringWizardAction_unavailable, RefactoringMessages.MoveMembersAction_unavailable); } } catch (JavaModelException e) { ExceptionHandler.handle(e, RefactoringMessages.OpenRefactoringWizardAction_refactoring, RefactoringMessages.OpenRefactoringWizardAction_exception); } } |
| ||||
/** * {@inheritDoc} */ public void run( final ITextSelection selection) { try { if ( !ActionUtil.isProcessable(getShell(), fEditor)) return; final IMember member = getSelectedMember(); final IMember[] array = new IMember[] { member }; if (member != null && RefactoringAvailabilityTester.isExtractSupertypeAvailable(array)) { RefactoringExecutionStarter.startExtractSupertypeRefactoring(array, getShell()); } else { MessageDialog.openInformation(getShell(), RefactoringMessages.OpenRefactoringWizardAction_unavailable, RefactoringMessages.ExtractSuperTypeAction_unavailable); } } catch (JavaModelException exception) { ExceptionHandler.handle(exception, RefactoringMessages.OpenRefactoringWizardAction_refactoring, RefactoringMessages.OpenRefactoringWizardAction_exception); } } |
| |||
/** * {@inheritDoc} */ public void run( [[#variable58689b80]]) { try { if ( !ActionUtil.isProcessable(getShell(), fEditor)) return; [[#variable58689b20]]IMember member = getSelectedMember(); [[#variable58689b20]]IMember[] array = new IMember[] { member }; if (member != null && RefactoringAvailabilityTester. [[#variable58689360]](array)) { RefactoringExecutionStarter. [[#variable58689ac0]](array, getShell()); } else { MessageDialog.openInformation(getShell(), RefactoringMessages.OpenRefactoringWizardAction_unavailable, RefactoringMessages. [[#variable54523500]]); } } catch (JavaModelException [[#variable58689ae0]]) { ExceptionHandler.handle( [[#variable58689ae0]], RefactoringMessages.OpenRefactoringWizardAction_refactoring, RefactoringMessages.OpenRefactoringWizardAction_exception); } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#58689b80]] | ITextSelection selection |
1 | 2 | [[#58689b80]] | final ITextSelection selection |
2 | 1 | [[#58689b20]] | |
2 | 2 | [[#58689b20]] | final |
3 | 1 | [[#58689360]] | isMoveStaticMembersAvailable |
3 | 2 | [[#58689360]] | isExtractSupertypeAvailable |
4 | 1 | [[#58689ac0]] | startMoveStaticMembersRefactoring |
4 | 2 | [[#58689ac0]] | startExtractSupertypeRefactoring |
5 | 1 | [[#54523500]] | MoveMembersAction_unavailable |
5 | 2 | [[#54523500]] | ExtractSuperTypeAction_unavailable |
6 | 1 | [[#58689ae0]] | e |
6 | 2 | [[#58689ae0]] | exception |