Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
8 | 2 | 3 | 0.965 | class_body_declarations[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 8 | 113 | plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/CreateImportOperation.java |
2 | 8 | 76 | plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/CreatePackageDeclarationOperation.java |
| ||||
/** * @see CreateElementInCUOperation#generateResultHandle */ protected IJavaElement generateResultHandle() { return getCompilationUnit().getImport(this.importName); } /** * @see CreateElementInCUOperation#getMainTaskName() */ public String getMainTaskName() { return Messages.operation_createImportsProgress; } |
| ||||
/** * Creates and returns the handle for the element this operation created. */ protected IJavaElement generateResultHandle() { return getCompilationUnit().getPackageDeclaration(this.name); } /** * @see CreateElementInCUOperation#getMainTaskName() */ public String getMainTaskName() { return Messages.operation_createPackageProgress; } |
| |||
/** * @see CreateElementInCUOperation#generateResultHandle */ /** * Creates and returns the handle for the element this operation created. */ protected IJavaElement generateResultHandle() { return getCompilationUnit(). [[#variablea15b98c0]](this. [[#variablebb600340]]); } /** * @see CreateElementInCUOperation#getMainTaskName() */ public String getMainTaskName() { return Messages. [[#variablebb6001a0]]; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#a15b98c0]] | getImport |
1 | 2 | [[#a15b98c0]] | getPackageDeclaration |
2 | 1 | [[#bb600340]] | importName |
2 | 2 | [[#bb600340]] | name |
3 | 1 | [[#bb6001a0]] | operation_createImportsProgress |
3 | 2 | [[#bb6001a0]] | operation_createPackageProgress |