| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 6 | 6 | 3 | 0.983 | class_body_declaration |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 6 | 56 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/ConvertAnonymousToNestedAction.java |
| 2 | 6 | 52 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/ConvertLocalToFieldAction.java |
| 3 | 6 | 51 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/ExtractConstantAction.java |
| 4 | 6 | 52 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/ExtractMethodAction.java |
| 5 | 6 | 51 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/ExtractTempAction.java |
| 6 | 6 | 50 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/IntroduceParameterAction.java |
| ||||
/**
* Note: This constructor is for internal use only. Clients should not call this constructor.
* @param editor the compilation unit editor
*/
public ConvertAnonymousToNestedAction(CompilationUnitEditor editor) {
super(editor.getEditorSite());
setText(RefactoringMessages.ConvertAnonymousToNestedAction_Convert_Anonymous);
fEditor = editor;
setEnabled(SelectionConverter.getInputAsCompilationUnit(fEditor) != null);
PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IJavaHelpContextIds.CONVERT_ANONYMOUS_TO_NESTED_ACTION);
}
|
| ||||
/**
* Note: This constructor is for internal use only. Clients should not call this constructor.
* @param editor the compilation unit editor
*/
public ConvertLocalToFieldAction(CompilationUnitEditor editor) {
super(editor.getEditorSite());
setText(RefactoringMessages.ConvertLocalToField_label);
fEditor = editor;
setEnabled(SelectionConverter.getInputAsCompilationUnit(fEditor) != null);
PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IJavaHelpContextIds.PROMOTE_TEMP_TO_FIELD_ACTION);
}
|
| ||||
/**
* Note: This constructor is for internal use only. Clients should not call this constructor.
* @param editor the compilation unit editor
*/
public ExtractConstantAction(CompilationUnitEditor editor) {
super(editor.getEditorSite());
setText(RefactoringMessages.ExtractConstantAction_label);
fEditor = editor;
setEnabled(SelectionConverter.getInputAsCompilationUnit(fEditor) != null);
PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IJavaHelpContextIds.EXTRACT_CONSTANT_ACTION);
}
|
| ||||
/**
* Note: This constructor is for internal use only. Clients should not call this constructor.
* @param editor the compilation unit editor
*/
public ExtractMethodAction(CompilationUnitEditor editor) {
super(editor.getEditorSite());
setText(RefactoringMessages.ExtractMethodAction_label);
fEditor = editor;
setEnabled(SelectionConverter.getInputAsCompilationUnit(fEditor) != null);
PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IJavaHelpContextIds.EXTRACT_METHOD_ACTION);
}
|
| ||||
/**
* Note: This constructor is for internal use only. Clients should not call this constructor.
* @param editor the compilation unit editor
*/
public ExtractTempAction(CompilationUnitEditor editor) {
super(editor.getEditorSite());
setText(RefactoringMessages.ExtractTempAction_label);
fEditor = editor;
setEnabled(SelectionConverter.getInputAsCompilationUnit(fEditor) != null);
PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IJavaHelpContextIds.EXTRACT_TEMP_ACTION);
}
|
| ||||
/**
* Note: This constructor is for internal use only. Clients should not call this constructor.
* @param editor the compilation unit editor
*/
public IntroduceParameterAction(CompilationUnitEditor editor) {
super(editor.getEditorSite());
setText(RefactoringMessages.IntroduceParameterAction_label);
fEditor = editor;
setEnabled(SelectionConverter.getInputAsCompilationUnit(fEditor) != null);
PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IJavaHelpContextIds.INTRODUCE_PARAMETER_ACTION);
}
|
| |||
/**
* Note: This constructor is for internal use only. Clients should not call this constructor.
* @param editor the compilation unit editor
*/
public [[#variable54744020]](CompilationUnitEditor editor) {
super(editor.getEditorSite());
setText(RefactoringMessages. [[#variable5c2f9fa0]]);
fEditor = editor;
setEnabled(SelectionConverter.getInputAsCompilationUnit(fEditor) != null);
PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IJavaHelpContextIds. [[#variable5c2f9f40]]);
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#54744020]] | IntroduceParameterAction |
| 1 | 2 | [[#54744020]] | ExtractTempAction |
| 1 | 3 | [[#54744020]] | ExtractMethodAction |
| 1 | 4 | [[#54744020]] | ExtractConstantAction |
| 1 | 5 | [[#54744020]] | ConvertLocalToFieldAction |
| 1 | 6 | [[#54744020]] | ConvertAnonymousToNestedAction |
| 2 | 1 | [[#5c2f9fa0]] | IntroduceParameterAction_label |
| 2 | 2 | [[#5c2f9fa0]] | ExtractTempAction_label |
| 2 | 3 | [[#5c2f9fa0]] | ExtractMethodAction_label |
| 2 | 4 | [[#5c2f9fa0]] | ExtractConstantAction_label |
| 2 | 5 | [[#5c2f9fa0]] | ConvertLocalToField_label |
| 2 | 6 | [[#5c2f9fa0]] | ConvertAnonymousToNestedAction_Convert_Anonymous |
| 3 | 1 | [[#5c2f9f40]] | INTRODUCE_PARAMETER_ACTION |
| 3 | 2 | [[#5c2f9f40]] | EXTRACT_TEMP_ACTION |
| 3 | 3 | [[#5c2f9f40]] | EXTRACT_METHOD_ACTION |
| 3 | 4 | [[#5c2f9f40]] | EXTRACT_CONSTANT_ACTION |
| 3 | 5 | [[#5c2f9f40]] | PROMOTE_TEMP_TO_FIELD_ACTION |
| 3 | 6 | [[#5c2f9f40]] | CONVERT_ANONYMOUS_TO_NESTED_ACTION |