| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 8 | 2 | 2 | 0.991 | class_body_declaration |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 8 | 86 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/CleanUpAction.java |
| 2 | 8 | 321 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/OrganizeImportsAction.java |
| ||||
/* (non-Javadoc)
* Method declared on SelectionDispatchAction.
*/
public void run(IStructuredSelection selection) {
ICompilationUnit[] cus = getCompilationUnits(selection);
if (cus.length == 0) {
MessageDialog.openInformation(getShell(), ActionMessages.CleanUpAction_EmptySelection_title, ActionMessages.CleanUpAction_EmptySelection_description);
}
else if (cus.length == 1) {
run(cus[0]);
}
else {
runOnMultiple(cus);
}
}
|
| ||||
/* (non-Javadoc)
* Method declared on SelectionDispatchAction.
*/
public void run(IStructuredSelection selection) {
ICompilationUnit[] cus = getCompilationUnits(selection);
if (cus.length == 0) {
MessageDialog.openInformation(getShell(), ActionMessages.OrganizeImportsAction_EmptySelection_title, ActionMessages.OrganizeImportsAction_EmptySelection_description);
}
else if (cus.length == 1) {
run(cus[0]);
}
else {
runOnMultiple(cus);
}
}
|
| |||
/* (non-Javadoc)
* Method declared on SelectionDispatchAction.
*/
public void run(IStructuredSelection selection) {
ICompilationUnit[] cus = getCompilationUnits(selection);
if (cus.length == 0) {
MessageDialog.openInformation(getShell(), ActionMessages. [[#variable51367fa0]], ActionMessages. [[#variable51367f40]]);
}
else
if (cus.length == 1) {
run(cus[0]);
}
else {
runOnMultiple(cus);
}
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#51367fa0]] | OrganizeImportsAction_EmptySelection_title |
| 1 | 2 | [[#51367fa0]] | CleanUpAction_EmptySelection_title |
| 2 | 1 | [[#51367f40]] | OrganizeImportsAction_EmptySelection_description |
| 2 | 2 | [[#51367f40]] | CleanUpAction_EmptySelection_description |