CloneSet3099


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
9220.985class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1969
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/JavaBreakpointPropertiesAction.java
2978
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/TerminateEvaluationAction.java
Clone Instance
1
Line Count
9
Source Line
69
Source File
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/JavaBreakpointPropertiesAction.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);
                        }
                }
        }


Clone Instance
2
Line Count
9
Source Line
78
Source File
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/TerminateEvaluationAction.java

        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);
                        }
                }
        }


Clone AbstractionParameter Count: 2Parameter Bindings

/**
         * @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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#5a8ce3e0]]
IJavaThread 
12[[#5a8ce3e0]]
IJavaBreakpoint 
21[[#5a8ce420]]
setThread 
22[[#5a8ce420]]
setBreakpoint