Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
19 | 2 | 5 | 0.971 | class_body_declarations[3] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 19 | 52 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/CleanUpAction.java |
2 | 17 | 80 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/FindBrokenNLSKeysAction.java |
| ||||
private JavaEditor fEditor; public CleanUpAction(IWorkbenchSite site) { super(site); setText(ActionMessages.CleanUpAction_label); setToolTipText(ActionMessages.CleanUpAction_tooltip); setDescription(ActionMessages.CleanUpAction_description); // PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IJavaHelpContextIds.ORGANIZE_IMPORTS_ACTION); } /** * Note: This constructor is for internal use only. Clients should not call this constructor. * @param editor the Java editor */ public CleanUpAction(JavaEditor editor) { this(editor.getEditorSite()); fEditor = editor; setEnabled(getCompilationUnit(fEditor) != null); } |
| ||||
private JavaEditor fEditor; public FindBrokenNLSKeysAction(IWorkbenchSite site) { super(site); setText(ActionMessages.FindNLSProblemsAction_Name); setToolTipText(ActionMessages.FindNLSProblemsAction_ToolTip); setDescription(ActionMessages.FindNLSProblemsAction_Description); } /** * Note: This constructor is for internal use only. Clients should not call this constructor. * @param editor the Java editor */ public FindBrokenNLSKeysAction(JavaEditor editor) { this(editor.getEditorSite()); fEditor = editor; setEnabled(getCompilationUnit(editor) != null); } |
| |||
private JavaEditor fEditor; public [[#variablea122a4c0]](IWorkbenchSite site) { super(site); setText(ActionMessages. [[#variablea122a3e0]]); setToolTipText(ActionMessages. [[#variablea122a360]]); setDescription(ActionMessages. [[#variablea122a260]]); // PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IJavaHelpContextIds.ORGANIZE_IMPORTS_ACTION); } /** * Note: This constructor is for internal use only. Clients should not call this constructor. * @param editor the Java editor */ public [[#variablea122a4c0]](JavaEditor editor) { this(editor.getEditorSite()); fEditor = editor; setEnabled(getCompilationUnit( [[#variablea122a380]]) != null); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#a122a4c0]] | CleanUpAction |
1 | 2 | [[#a122a4c0]] | FindBrokenNLSKeysAction |
2 | 1 | [[#a122a3e0]] | CleanUpAction_label |
2 | 2 | [[#a122a3e0]] | FindNLSProblemsAction_Name |
3 | 1 | [[#a122a360]] | CleanUpAction_tooltip |
3 | 2 | [[#a122a360]] | FindNLSProblemsAction_ToolTip |
4 | 1 | [[#a122a260]] | CleanUpAction_description |
4 | 2 | [[#a122a260]] | FindNLSProblemsAction_Description |
5 | 1 | [[#a122a380]] | fEditor |
5 | 2 | [[#a122a380]] | editor |