CloneSet1315


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
13260.956class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
113103
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/actions/MoveStaticMembersAction.java
213150
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/ExtractSuperTypeAction.java
Clone Instance
1
Line Count
13
Source Line
103
Source File
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/actions/MoveStaticMembersAction.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);
                  }
        }


Clone Instance
2
Line Count
13
Source Line
150
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/ExtractSuperTypeAction.java

        /**
         * {@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);
                  }
        }


Clone AbstractionParameter Count: 6Parameter Bindings

/**
         * {@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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#58689b80]]
ITextSelection selection 
12[[#58689b80]]
final ITextSelection selection 
21[[#58689b20]]
22[[#58689b20]]
final 
31[[#58689360]]
isMoveStaticMembersAvailable 
32[[#58689360]]
isExtractSupertypeAvailable 
41[[#58689ac0]]
startMoveStaticMembersRefactoring 
42[[#58689ac0]]
startExtractSupertypeRefactoring 
51[[#54523500]]
MoveMembersAction_unavailable 
52[[#54523500]]
ExtractSuperTypeAction_unavailable 
61[[#58689ae0]]
e 
62[[#58689ae0]]
exception