Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
12 | 2 | 1 | 0.997 | class_body_declarations[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 12 | 30 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/changes/CreateCompilationUnitChange.java |
2 | 19 | 72 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/changes/MultiStateCompilationUnitChange.java |
| ||||
public String getName() { return Messages.format(RefactoringCoreMessages.CompilationUnitChange_label, new String[] { fUnit.getElementName(), getPath(fUnit.getResource()) } ); } private String getPath(IResource resource) { final StringBuffer buffer = new StringBuffer(resource.getProject().getName()); final String path = resource.getParent().getProjectRelativePath().toString(); if (path.length() > 0) { buffer.append('/'); buffer.append(path); } return buffer.toString(); } |
| ||||
/** * {@inheritDoc} */ public String getName() { return Messages.format(RefactoringCoreMessages.MultiStateCompilationUnitChange_name_pattern, new String[] { fUnit.getElementName(), getPath(fUnit.getResource()) } ); } /** * Returns the path of the resource to display. * * @param resource * the resource * @return the path */ private String getPath(IResource resource) { final StringBuffer buffer = new StringBuffer(resource.getProject().getName()); final String path = resource.getParent().getProjectRelativePath().toString(); if (path.length() > 0) { buffer.append('/'); buffer.append(path); } return buffer.toString(); } |
| |||
/** * {@inheritDoc} */ public String getName() { return Messages.format(RefactoringCoreMessages. [[#variablebb07dfa0]], new String[] { fUnit.getElementName(), getPath(fUnit.getResource()) } ); } /** * Returns the path of the resource to display. * * @param resource * the resource * @return the path */ private String getPath(IResource resource) { final StringBuffer buffer = new StringBuffer(resource.getProject().getName()); final String path = resource.getParent().getProjectRelativePath().toString(); if (path.length() > 0) { buffer.append('/'); buffer.append(path); } return buffer.toString(); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#bb07dfa0]] | CompilationUnitChange_label |
1 | 2 | [[#bb07dfa0]] | MultiStateCompilationUnitChange_name_pattern |