Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
8 | 3 | 1 | 0.996 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 8 | 858 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/jarpackager/JarManifestWizardPage.java |
2 | 8 | 438 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/jarpackager/JarOptionsPage.java |
3 | 8 | 473 | 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 = 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; } |
| ||||
/** * 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; } |
| ||||
/** * 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; } |
| |||
/** * 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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#a4f66d60]] | JavaPlugin |
1 | 2 | [[#a4f66d60]] | ResourcesPlugin |
1 | 3 | [[#a4f66d60]] | JavaPlugin |