Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
18 | 2 | 0 | 1.000 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 18 | 254 | plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/JavaObjectValueEditor.java |
2 | 18 | 155 | plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/JavaWatchExpressionDelegate.java |
| ||||
/** * Return the project associated with the given stack frame. * (copied from JavaWatchExpressionDelegate) */ private IJavaProject getProject(IJavaStackFrame javaStackFrame) { ILaunch launch = javaStackFrame.getLaunch(); if (launch == null) { return null; } ISourceLocator locator = launch.getSourceLocator(); if (locator == null) { return null; } Object sourceElement = locator.getSourceElement(javaStackFrame); if ( !(sourceElement instanceof IJavaElement) && sourceElement instanceof IAdaptable) { sourceElement = ((IAdaptable) sourceElement).getAdapter(IJavaElement.class ); } if (sourceElement instanceof IJavaElement) { return ((IJavaElement) sourceElement).getJavaProject(); } return null; } |
| ||||
/** * Return the project associated with the given stack frame. */ private IJavaProject getProject(IJavaStackFrame javaStackFrame) { ILaunch launch = javaStackFrame.getLaunch(); if (launch == null) { return null; } ISourceLocator locator = launch.getSourceLocator(); if (locator == null) { return null; } Object sourceElement = locator.getSourceElement(javaStackFrame); if ( !(sourceElement instanceof IJavaElement) && sourceElement instanceof IAdaptable) { sourceElement = ((IAdaptable) sourceElement).getAdapter(IJavaElement.class ); } if (sourceElement instanceof IJavaElement) { return ((IJavaElement) sourceElement).getJavaProject(); } return null; } |
| |||
/** * Return the project associated with the given stack frame. */ /** * Return the project associated with the given stack frame. * (copied from JavaWatchExpressionDelegate) */ private IJavaProject getProject(IJavaStackFrame javaStackFrame) { ILaunch launch = javaStackFrame.getLaunch(); if (launch == null) { return null; } ISourceLocator locator = launch.getSourceLocator(); if (locator == null) { return null; } Object sourceElement = locator.getSourceElement(javaStackFrame); if ( !(sourceElement instanceof IJavaElement) && sourceElement instanceof IAdaptable) { sourceElement = ((IAdaptable) sourceElement).getAdapter(IJavaElement.class ); } if (sourceElement instanceof IJavaElement) { return ((IJavaElement) sourceElement).getJavaProject(); } return null; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
None |