CloneSet3373


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
8201.000class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
181185
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java
281415
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerPart.java
Clone Instance
1
Line Count
8
Source Line
1185
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java

        /**
         * Returns the element contained in the EditorInput
         */
        Object getElementOfInput(IEditorInput input) {
                if (input instanceof IClassFileEditorInput)
                        return ((IClassFileEditorInput) input).getClassFile();
                else if (input instanceof IFileEditorInput)
                        return ((IFileEditorInput) input).getFile();
                     else
                     if (input instanceof JarEntryEditorInput)
                        return ((JarEntryEditorInput) input).getStorage();
                return null;
        }


Clone Instance
2
Line Count
8
Source Line
1415
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerPart.java

        /**
         * Returns the element contained in the EditorInput
         */
        Object getElementOfInput(IEditorInput input) {
                if (input instanceof IClassFileEditorInput)
                        return ((IClassFileEditorInput) input).getClassFile();
                else if (input instanceof IFileEditorInput)
                        return ((IFileEditorInput) input).getFile();
                     else
                     if (input instanceof JarEntryEditorInput)
                        return ((JarEntryEditorInput) input).getStorage();
                return null;
        }


Clone AbstractionParameter Count: 0Parameter Bindings

/**
         * Returns the element contained in the EditorInput
         */
Object getElementOfInput(IEditorInput input) {
  if (input instanceof IClassFileEditorInput)
    return ((IClassFileEditorInput) input).getClassFile();
  else
    if (input instanceof IFileEditorInput)
      return ((IFileEditorInput) input).getFile();
    else
      if (input instanceof JarEntryEditorInput)
        return ((JarEntryEditorInput) input).getStorage();
  return null;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None