| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 4 | 2 | 4 | 0.963 | statement_sequence_member |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 4 | 112 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/InferTypeArgumentsAction.java |
| 2 | 4 | 147 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/UseSupertypeAction.java |
| ||||
if (RefactoringAvailabilityTester.isInferTypeArgumentsAvailable(elements)) {
RefactoringExecutionStarter.startInferTypeArgumentsRefactoring(elements, getShell());
}
else {
MessageDialog.openInformation(getShell(), RefactoringMessages.OpenRefactoringWizardAction_unavailable, RefactoringMessages.InferTypeArgumentsAction_unavailable);
}
|
| ||||
if (RefactoringAvailabilityTester.isUseSuperTypeAvailable(type)) {
RefactoringExecutionStarter.startUseSupertypeRefactoring(type, getShell());
}
else {
MessageDialog.openInformation(getShell(), RefactoringMessages.OpenRefactoringWizardAction_unavailable, RefactoringMessages.UseSupertypeAction_to_activate);
}
|
| |||
if (RefactoringAvailabilityTester. [[#variablea37f86e0]]( [[#variablea37f8660]])) {
RefactoringExecutionStarter. [[#variablea37f8600]]( [[#variablea37f8660]], getShell());
}
else {
MessageDialog.openInformation(getShell(), RefactoringMessages.OpenRefactoringWizardAction_unavailable, RefactoringMessages. [[#variablea37f85a0]]);
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#a37f86e0]] | isUseSuperTypeAvailable |
| 1 | 2 | [[#a37f86e0]] | isInferTypeArgumentsAvailable |
| 2 | 1 | [[#a37f8660]] | type |
| 2 | 2 | [[#a37f8660]] | elements |
| 3 | 1 | [[#a37f8600]] | startUseSupertypeRefactoring |
| 3 | 2 | [[#a37f8600]] | startInferTypeArgumentsRefactoring |
| 4 | 1 | [[#a37f85a0]] | UseSupertypeAction_to_activate |
| 4 | 2 | [[#a37f85a0]] | InferTypeArgumentsAction_unavailable |