Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
3 | 4 | 3 | 0.971 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 3 | 211 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/refactoring/RenameSupport.java |
2 | 3 | 244 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/refactoring/RenameSupport.java |
3 | 3 | 262 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/refactoring/RenameSupport.java |
4 | 3 | 280 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/refactoring/RenameSupport.java |
| ||||
/** * Creates a new rename support for the given {@link IJavaProject}. * * @param project the {@link IJavaProject} to be renamed. * @param newName the project's new name. <code>null</code> is a valid * value indicating that no new name is provided. * @param flags flags controlling additional parameters. Valid flags are * <code>UPDATE_REFERENCES</code> or <code>NONE</code>. * @return the {@link RenameSupport}. * @throws CoreException if an unexpected error occurred while creating * the {@link RenameSupport}. */ public static RenameSupport create(IJavaProject project, String newName, int flags) throws CoreException { JavaRenameProcessor processor = new RenameJavaProjectProcessor(project); return new RenameSupport(processor, newName, flags); } |
| ||||
/** * Creates a new rename support for the given {@link IPackageFragment}. * * @param fragment the {@link IPackageFragment} to be renamed. * @param newName the package fragment's new name. <code>null</code> is a * valid value indicating that no new name is provided. * @param flags flags controlling additional parameters. Valid flags are * <code>UPDATE_REFERENCES</code>, and <code>UPDATE_TEXTUAL_MATCHES</code>, * or their bitwise OR, or <code>NONE</code>. * @return the {@link RenameSupport}. * @throws CoreException if an unexpected error occurred while creating * the {@link RenameSupport}. */ public static RenameSupport create(IPackageFragment fragment, String newName, int flags) throws CoreException { JavaRenameProcessor processor = new RenamePackageProcessor(fragment); return new RenameSupport(processor, newName, flags); } |
| ||||
/** * Creates a new rename support for the given {@link ICompilationUnit}. * * @param unit the {@link ICompilationUnit} to be renamed. * @param newName the compilation unit's new name. <code>null</code> is a * valid value indicating that no new name is provided. * @param flags flags controlling additional parameters. Valid flags are * <code>UPDATE_REFERENCES</code>, and <code>UPDATE_TEXTUAL_MATCHES</code>, * or their bitwise OR, or <code>NONE</code>. * @return the {@link RenameSupport}. * @throws CoreException if an unexpected error occurred while creating * the {@link RenameSupport}. */ public static RenameSupport create(ICompilationUnit unit, String newName, int flags) throws CoreException { JavaRenameProcessor processor = new RenameCompilationUnitProcessor(unit); return new RenameSupport(processor, newName, flags); } |
| ||||
/** * Creates a new rename support for the given {@link IType}. * * @param type the {@link IType} to be renamed. * @param newName the type's new name. <code>null</code> is a valid value * indicating that no new name is provided. * @param flags flags controlling additional parameters. Valid flags are * <code>UPDATE_REFERENCES</code>, and <code>UPDATE_TEXTUAL_MATCHES</code>, * or their bitwise OR, or <code>NONE</code>. * @return the {@link RenameSupport}. * @throws CoreException if an unexpected error occurred while creating * the {@link RenameSupport}. */ public static RenameSupport create(IType type, String newName, int flags) throws CoreException { JavaRenameProcessor processor = new RenameTypeProcessor(type); return new RenameSupport(processor, newName, flags); } |
| |||
/** * Creates a new rename support for the given {@link IJavaProject}. * * @param project the {@link IJavaProject} to be renamed. * @param newName the project's new name. <code>null</code> is a valid * value indicating that no new name is provided. * @param flags flags controlling additional parameters. Valid flags are * <code>UPDATE_REFERENCES</code> or <code>NONE</code>. * @return the {@link RenameSupport}. * @throws CoreException if an unexpected error occurred while creating * the {@link RenameSupport}. */ /** * Creates a new rename support for the given {@link IPackageFragment}. * * @param fragment the {@link IPackageFragment} to be renamed. * @param newName the package fragment's new name. <code>null</code> is a * valid value indicating that no new name is provided. * @param flags flags controlling additional parameters. Valid flags are * <code>UPDATE_REFERENCES</code>, and <code>UPDATE_TEXTUAL_MATCHES</code>, * or their bitwise OR, or <code>NONE</code>. * @return the {@link RenameSupport}. * @throws CoreException if an unexpected error occurred while creating * the {@link RenameSupport}. */ /** * Creates a new rename support for the given {@link ICompilationUnit}. * * @param unit the {@link ICompilationUnit} to be renamed. * @param newName the compilation unit's new name. <code>null</code> is a * valid value indicating that no new name is provided. * @param flags flags controlling additional parameters. Valid flags are * <code>UPDATE_REFERENCES</code>, and <code>UPDATE_TEXTUAL_MATCHES</code>, * or their bitwise OR, or <code>NONE</code>. * @return the {@link RenameSupport}. * @throws CoreException if an unexpected error occurred while creating * the {@link RenameSupport}. */ /** * Creates a new rename support for the given {@link IType}. * * @param type the {@link IType} to be renamed. * @param newName the type's new name. <code>null</code> is a valid value * indicating that no new name is provided. * @param flags flags controlling additional parameters. Valid flags are * <code>UPDATE_REFERENCES</code>, and <code>UPDATE_TEXTUAL_MATCHES</code>, * or their bitwise OR, or <code>NONE</code>. * @return the {@link RenameSupport}. * @throws CoreException if an unexpected error occurred while creating * the {@link RenameSupport}. */ public static RenameSupport create( [[#variable5c8c1be0]] [[#variable5c8c1b40]], String newName, int flags) throws CoreException { JavaRenameProcessor processor = new [[#variable5c8c1ac0]]( [[#variable5c8c1b40]]); return new RenameSupport(processor, newName, flags); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#5c8c1be0]] | IJavaProject |
1 | 2 | [[#5c8c1be0]] | IPackageFragment |
1 | 3 | [[#5c8c1be0]] | ICompilationUnit |
1 | 4 | [[#5c8c1be0]] | IType |
2 | 1 | [[#5c8c1b40]] | project |
2 | 2 | [[#5c8c1b40]] | fragment |
2 | 3 | [[#5c8c1b40]] | unit |
2 | 4 | [[#5c8c1b40]] | type |
3 | 1 | [[#5c8c1ac0]] | RenameJavaProjectProcessor |
3 | 2 | [[#5c8c1ac0]] | RenamePackageProcessor |
3 | 3 | [[#5c8c1ac0]] | RenameCompilationUnitProcessor |
3 | 4 | [[#5c8c1ac0]] | RenameTypeProcessor |