CloneSet3025


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
19250.971class_body_declarations[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11952
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/CleanUpAction.java
21780
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/FindBrokenNLSKeysAction.java
Clone Instance
1
Line Count
19
Source Line
52
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/CleanUpAction.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);
        }


Clone Instance
2
Line Count
17
Source Line
80
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/FindBrokenNLSKeysAction.java

        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);
        }


Clone AbstractionParameter Count: 5Parameter Bindings

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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#a122a4c0]]
CleanUpAction 
12[[#a122a4c0]]
FindBrokenNLSKeysAction 
21[[#a122a3e0]]
CleanUpAction_label 
22[[#a122a3e0]]
FindNLSProblemsAction_Name 
31[[#a122a360]]
CleanUpAction_tooltip 
32[[#a122a360]]
FindNLSProblemsAction_ToolTip 
41[[#a122a260]]
CleanUpAction_description 
42[[#a122a260]]
FindNLSProblemsAction_Description 
51[[#a122a380]]
fEditor 
52[[#a122a380]]
editor