CloneSet2190


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
8230.989class_body_declarations[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1834
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/changes/CopyPackageFragmentRootChange.java
2833
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/changes/MovePackageFragmentRootChange.java
Clone Instance
1
Line Count
8
Source Line
34
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/changes/CopyPackageFragmentRootChange.java

        protected Change doPerformReorg(IPath destinationPath, IProgressMonitor pm) throws JavaModelException {
                getRoot().copy(destinationPath, getResourceUpdateFlags(), getUpdateModelFlags(true), null, pm);
                return null;
        }

        public String getName() {
                String[] keys = {
                                getRoot().getElementName(), getDestinationProject().getName()
                         };
                return Messages.format(RefactoringCoreMessages.CopyPackageFragmentRootChange_copy, keys);
        }


Clone Instance
2
Line Count
8
Source Line
33
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/changes/MovePackageFragmentRootChange.java

        protected Change doPerformReorg(IPath destinationPath, IProgressMonitor pm) throws JavaModelException {
                getRoot().move(destinationPath, getResourceUpdateFlags(), getUpdateModelFlags(false), null, pm);
                return null;
        }

        public String getName() {
                String[] keys = {
                                getRoot().getElementName(), getDestinationProject().getName()
                         };
                return Messages.format(RefactoringCoreMessages.MovePackageFragmentRootChange_move, keys);
        }


Clone AbstractionParameter Count: 3Parameter Bindings

protected Change doPerformReorg(IPath destinationPath, IProgressMonitor pm) throws JavaModelException {
  getRoot(). [[#variablebb0c3e00]](destinationPath, getResourceUpdateFlags(), getUpdateModelFlags( [[#variablebb0c3e40]]), null, pm);
  return null;
}

public String getName() {
  String[] keys = {
             getRoot().getElementName(),
             getDestinationProject().getName()
           };
  return Messages.format(RefactoringCoreMessages. [[#variablebb0c3d20]], keys);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#bb0c3e00]]
copy 
12[[#bb0c3e00]]
move 
21[[#bb0c3e40]]
true 
22[[#bb0c3e40]]
false 
31[[#bb0c3d20]]
CopyPackageFragmentRootChange_copy 
32[[#bb0c3d20]]
MovePackageFragmentRootChange_move