Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
17 | 2 | 2 | 0.988 | class_body_declarations[3] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 17 | 35 | plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/RenameElementsOperation.java |
2 | 17 | 31 | 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 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; } |
| ||||
/** * 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; } |
| |||
/** * 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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#554ee2e0]] | RenameElementsOperation |
1 | 2 | [[#554ee2e0]] | RenameResourceElementsOperation |
2 | 1 | [[#554ee380]] | operation_renameElementProgress |
2 | 2 | [[#554ee380]] | operation_renameResourceProgress |