CloneSet4156


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
17220.988class_body_declarations[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11735
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/RenameElementsOperation.java
21731
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/RenameResourceElementsOperation.java
Clone Instance
1
Line Count
17
Source Line
35
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/RenameElementsOperation.java

/**
 * When executed, this operation will rename the specified elements with the given names in the
 * corresponding destinations.
 */
public RenameElementsOperation(IJavaElement[] elements, IJavaElement[] destinations, String[] newNames, boolean force) {
        //a rename is a move to the same parent with a new name specified
        //these elements are from different parents
        super(elements, destinations, force);
        setRenamings(newNames);
}

/**
 * @see MultiOperation
 */
protected String getMainTaskName() {
        return Messages.operation_renameElementProgress;
}

/**
 * @see CopyElementsOperation#isRename()
 */
protected boolean isRename() {
        return true;
}


Clone Instance
2
Line Count
17
Source Line
31
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/RenameResourceElementsOperation.java

/**
 * When executed, this operation will rename the specified elements with the given names in the
 * corresponding destinations.
 */
public RenameResourceElementsOperation(IJavaElement[] elements, IJavaElement[] destinations, String[] newNames, boolean force) {
        //a rename is a move to the same parent with a new name specified
        //these elements are from different parents
        super(elements, destinations, force);
        setRenamings(newNames);
}

/**
 * @see MultiOperation
 */
protected String getMainTaskName() {
        return Messages.operation_renameResourceProgress;
}

/**
 * @see CopyResourceElementsOperation#isRename()
 */
protected boolean isRename() {
        return true;
}


Clone AbstractionParameter Count: 2Parameter Bindings

/**
 * When executed, this operation will rename the specified elements with the given names in the
 * corresponding destinations.
 */
public [[#variable554ee2e0]](IJavaElement[] elements, IJavaElement[] destinations, String[] newNames, boolean force) {
  //a rename is a move to the same parent with a new name specified
  //these elements are from different parents
  super(elements, destinations, force);
  setRenamings(newNames);
}

/**
 * @see MultiOperation
 */
protected String getMainTaskName() {
  return Messages. [[#variable554ee380]];
}

/**
 * @see CopyElementsOperation#isRename()
 */
/**
 * @see CopyResourceElementsOperation#isRename()
 */
protected boolean isRename() {
  return true;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#554ee2e0]]
RenameElementsOperation 
12[[#554ee2e0]]
RenameResourceElementsOperation 
21[[#554ee380]]
operation_renameElementProgress 
22[[#554ee380]]
operation_renameResourceProgress