CloneSet4945


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
7201.000class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1770
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/JavaStatusContextViewer.java
27124
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/ClassFileEditor.java
Clone Instance
1
Line Count
7
Source Line
70
Source File
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/JavaStatusContextViewer.java

        private IPackageFragmentRoot getPackageFragmentRoot(IClassFile file) {

                IJavaElement element = file.getParent();
                while (element != null && element.getElementType() != IJavaElement.PACKAGE_FRAGMENT_ROOT)
                        element = element.getParent();

                return (IPackageFragmentRoot) element;
        }


Clone Instance
2
Line Count
7
Source Line
124
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/ClassFileEditor.java

                        /**
                         * Returns the package fragment root of this file.
                         */
                        private IPackageFragmentRoot getPackageFragmentRoot(IClassFile file) {

                                IJavaElement element = file.getParent();
                                while (element != null && element.getElementType() != IJavaElement.PACKAGE_FRAGMENT_ROOT)
                                        element = element.getParent();

                                return (IPackageFragmentRoot) element;
                        }


Clone AbstractionParameter Count: 0Parameter Bindings

/**
                         * Returns the package fragment root of this file.
                         */
private IPackageFragmentRoot getPackageFragmentRoot(IClassFile file) {
  IJavaElement element = file.getParent();
  while (element != null && element.getElementType() != IJavaElement.PACKAGE_FRAGMENT_ROOT)
    element = element.getParent();
  return (IPackageFragmentRoot) element;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None