| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 9 | 2 | 2 | 0.985 | class_body_declaration |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 9 | 69 | plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/JavaBreakpointPropertiesAction.java |
| 2 | 9 | 78 | plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/TerminateEvaluationAction.java |
| ||||
/**
* @see IActionDelegate#selectionChanged(IAction, ISelection)
*/
public void selectionChanged(IAction action, ISelection selection) {
if (selection instanceof IStructuredSelection) {
IStructuredSelection ss = (IStructuredSelection) selection;
if (ss.isEmpty() || ss.size() > 1) {
return;
}
Object element = ss.getFirstElement();
if (element instanceof IJavaBreakpoint) {
setBreakpoint((IJavaBreakpoint) element);
}
}
}
|
| ||||
public void selectionChanged(IAction action, ISelection selection) {
if (selection instanceof IStructuredSelection) {
IStructuredSelection ss = (IStructuredSelection) selection;
if (ss.isEmpty() || ss.size() > 1) {
return;
}
Object element = ss.getFirstElement();
if (element instanceof IJavaThread) {
setThread((IJavaThread) element);
}
}
}
|
| |||
/**
* @see IActionDelegate#selectionChanged(IAction, ISelection)
*/
public void selectionChanged(IAction action, ISelection selection) {
if (selection instanceof IStructuredSelection) {
IStructuredSelection ss = (IStructuredSelection) selection;
if (ss.isEmpty() || ss.size() > 1) {
return;
}
Object element = ss.getFirstElement();
if (element instanceof [[#variable5a8ce3e0]]) {
[[#variable5a8ce420]](( [[#variable5a8ce3e0]]) element);
}
}
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#5a8ce3e0]] | IJavaThread |
| 1 | 2 | [[#5a8ce3e0]] | IJavaBreakpoint |
| 2 | 1 | [[#5a8ce420]] | setThread |
| 2 | 2 | [[#5a8ce420]] | setBreakpoint |