CloneSet1980


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
3430.971class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
13211
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/refactoring/RenameSupport.java
23244
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/refactoring/RenameSupport.java
33262
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/refactoring/RenameSupport.java
43280
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/refactoring/RenameSupport.java
Clone Instance
1
Line Count
3
Source Line
211
Source File
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);
        }


Clone Instance
2
Line Count
3
Source Line
244
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/refactoring/RenameSupport.java

        /**
         * 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);
        }


Clone Instance
3
Line Count
3
Source Line
262
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/refactoring/RenameSupport.java

        /**
         * 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);
        }


Clone Instance
4
Line Count
3
Source Line
280
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/refactoring/RenameSupport.java

        /**
         * 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);
        }


Clone AbstractionParameter Count: 3Parameter Bindings

/**
         * 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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#5c8c1be0]]
IJavaProject 
12[[#5c8c1be0]]
IPackageFragment 
13[[#5c8c1be0]]
ICompilationUnit 
14[[#5c8c1be0]]
IType 
21[[#5c8c1b40]]
project 
22[[#5c8c1b40]]
fragment 
23[[#5c8c1b40]]
unit 
24[[#5c8c1b40]]
type 
31[[#5c8c1ac0]]
RenameJavaProjectProcessor 
32[[#5c8c1ac0]]
RenamePackageProcessor 
33[[#5c8c1ac0]]
RenameCompilationUnitProcessor 
34[[#5c8c1ac0]]
RenameTypeProcessor