CloneSet1267


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
18201.000class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
118254
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/JavaObjectValueEditor.java
218155
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/JavaWatchExpressionDelegate.java
Clone Instance
1
Line Count
18
Source Line
254
Source File
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/JavaObjectValueEditor.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;
        }


Clone Instance
2
Line Count
18
Source Line
155
Source File
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/JavaWatchExpressionDelegate.java

        /**
         * 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;
        }


Clone AbstractionParameter Count: 0Parameter Bindings

/**
         * 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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None