CloneSet1106


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
8310.996class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
18858
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/jarpackager/JarManifestWizardPage.java
28438
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/jarpackager/JarOptionsPage.java
38473
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/jarpackager/JarPackageWizardPage.java
Clone Instance
1
Line Count
8
Source Line
858
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/jarpackager/JarManifestWizardPage.java

        /**
         * Returns the resource for the specified path.
         *
         * @param path  the path for which the resource should be returned
         * @return the resource specified by the path or <code>null</code>
         */
        protected IResource findResource(IPath path) {
                IWorkspace workspace = JavaPlugin.getWorkspace();
                IStatus result = workspace.validatePath(
                                                         path.toString(), 
                                                         IResource.ROOT|  IResource.PROJECT|  IResource.FOLDER|  IResource.FILE);
                if (result.isOK() && workspace.getRoot().exists(path))
                        return workspace.getRoot().findMember(path);
                return null;
        }


Clone Instance
2
Line Count
8
Source Line
438
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/jarpackager/JarOptionsPage.java

        /**
         * Returns the resource for the specified path.
         *
         * @param path  the path for which the resource should be returned
         * @return the resource specified by the path or <code>null</code>
         */
        protected IResource findResource(IPath path) {
                IWorkspace workspace = JavaPlugin.getWorkspace();
                IStatus result = workspace.validatePath(
                                                         path.toString(), 
                                                         IResource.ROOT|  IResource.PROJECT|  IResource.FOLDER|  IResource.FILE);
                if (result.isOK() && workspace.getRoot().exists(path))
                        return workspace.getRoot().findMember(path);
                return null;
        }


Clone Instance
3
Line Count
8
Source Line
473
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/jarpackager/JarPackageWizardPage.java

        /**
         * Returns the resource for the specified path.
         *
         * @param path  the path for which the resource should be returned
         * @return the resource specified by the path or <code>null</code>
         */
        protected IResource findResource(IPath path) {
                IWorkspace workspace = ResourcesPlugin.getWorkspace();
                IStatus result = workspace.validatePath(
                                                         path.toString(), 
                                                         IResource.ROOT|  IResource.PROJECT|  IResource.FOLDER|  IResource.FILE);
                if (result.isOK() && workspace.getRoot().exists(path))
                        return workspace.getRoot().findMember(path);
                return null;
        }


Clone AbstractionParameter Count: 1Parameter Bindings

/**
         * Returns the resource for the specified path.
         *
         * @param path  the path for which the resource should be returned
         * @return the resource specified by the path or <code>null</code>
         */
protected IResource findResource(IPath path) {
  IWorkspace workspace = [[#variablea4f66d60]].getWorkspace();
  IStatus result = workspace.validatePath(path.toString(), IResource.ROOT|IResource.PROJECT|IResource.FOLDER|IResource.FILE);
  if (result.isOK() && workspace.getRoot().exists(path))
    return workspace.getRoot().findMember(path);
  return null;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#a4f66d60]]
JavaPlugin 
12[[#a4f66d60]]
ResourcesPlugin 
13[[#a4f66d60]]
JavaPlugin