CloneSet5324


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
4240.963statement_sequence_member
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
14112
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/InferTypeArgumentsAction.java
24147
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/UseSupertypeAction.java
Clone Instance
1
Line Count
4
Source Line
112
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/InferTypeArgumentsAction.java

                        if (RefactoringAvailabilityTester.isInferTypeArgumentsAvailable(elements)) {
                                RefactoringExecutionStarter.startInferTypeArgumentsRefactoring(elements, getShell());
                        }
                        else   {
                                MessageDialog.openInformation(getShell(), RefactoringMessages.OpenRefactoringWizardAction_unavailable, RefactoringMessages.InferTypeArgumentsAction_unavailable);
                        }


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

                        if (RefactoringAvailabilityTester.isUseSuperTypeAvailable(type)) {
                                RefactoringExecutionStarter.startUseSupertypeRefactoring(type, getShell());
                        }
                        else   {
                                MessageDialog.openInformation(getShell(), RefactoringMessages.OpenRefactoringWizardAction_unavailable, RefactoringMessages.UseSupertypeAction_to_activate);
                        }


Clone AbstractionParameter Count: 4Parameter Bindings

if (RefactoringAvailabilityTester. [[#variablea37f86e0]]( [[#variablea37f8660]])) {
  RefactoringExecutionStarter. [[#variablea37f8600]]( [[#variablea37f8660]], getShell());
}
else {
  MessageDialog.openInformation(getShell(), RefactoringMessages.OpenRefactoringWizardAction_unavailable, RefactoringMessages. [[#variablea37f85a0]]);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#a37f86e0]]
isUseSuperTypeAvailable 
12[[#a37f86e0]]
isInferTypeArgumentsAvailable 
21[[#a37f8660]]
type 
22[[#a37f8660]]
elements 
31[[#a37f8600]]
startUseSupertypeRefactoring 
32[[#a37f8600]]
startInferTypeArgumentsRefactoring 
41[[#a37f85a0]]
UseSupertypeAction_to_activate 
42[[#a37f85a0]]
InferTypeArgumentsAction_unavailable