CloneSet1774


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
11201.000class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
111192
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/LogicalPackagesProvider.java
211313
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/StandardJavaElementContentProvider.java
Clone Instance
1
Line Count
11
Source Line
192
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/LogicalPackagesProvider.java

        /*
         * @since 3.0
         */
        protected boolean isClassPathChange(IJavaElementDelta delta) {

                // need to test the flags only for package fragment roots
                if (delta.getElement().getElementType() != IJavaElement.PACKAGE_FRAGMENT_ROOT)
                        return false;

                int flags = delta.getFlags();
                return (delta.getKind() == IJavaElementDelta.CHANGED &&
                        ((flags&  IJavaElementDelta.F_ADDED_TO_CLASSPATH) != 0) ||
                         ((flags&  IJavaElementDelta.F_REMOVED_FROM_CLASSPATH) != 0) ||
                         ((flags&  IJavaElementDelta.F_REORDER) != 0));
        }


Clone Instance
2
Line Count
11
Source Line
313
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/StandardJavaElementContentProvider.java

        /**
         * Note: This method is for internal use only. Clients should not call this method.
         */
        protected boolean isClassPathChange(IJavaElementDelta delta) {

                // need to test the flags only for package fragment roots
                if (delta.getElement().getElementType() != IJavaElement.PACKAGE_FRAGMENT_ROOT)
                        return false;

                int flags = delta.getFlags();
                return (delta.getKind() == IJavaElementDelta.CHANGED &&
                        ((flags&  IJavaElementDelta.F_ADDED_TO_CLASSPATH) != 0) ||
                         ((flags&  IJavaElementDelta.F_REMOVED_FROM_CLASSPATH) != 0) ||
                         ((flags&  IJavaElementDelta.F_REORDER) != 0));
        }


Clone AbstractionParameter Count: 0Parameter Bindings

/**
         * Note: This method is for internal use only. Clients should not call this method.
         */
/*
         * @since 3.0
         */
protected boolean isClassPathChange(IJavaElementDelta delta) {
  // need to test the flags only for package fragment roots
  if (delta.getElement().getElementType() != IJavaElement.PACKAGE_FRAGMENT_ROOT)
    return false;
  int flags = delta.getFlags();
  return (delta.getKind() == IJavaElementDelta.CHANGED && ((flags&IJavaElementDelta.F_ADDED_TO_CLASSPATH) != 0) || ((flags&IJavaElementDelta.F_REMOVED_FROM_CLASSPATH) != 0) || ((flags&IJavaElementDelta.F_REORDER) != 0));
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None