CloneSet1786


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
15240.987class_body_declarations[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
115168
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/callhierarchy/HistoryListAction.java
215168
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/HistoryListAction.java
Clone Instance
1
Line Count
15
Source Line
168
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/callhierarchy/HistoryListAction.java

        public HistoryListAction(CallHierarchyViewPart view) {
                fView = view;
                setText(CallHierarchyMessages.HistoryListAction_label);
                PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IJavaHelpContextIds.HISTORY_LIST_ACTION);
        }

        /*
         * @see IAction#run()
         */
        public void run() {
                IMethod[] historyEntries = fView.getHistoryEntries();
                HistoryListDialog dialog = new HistoryListDialog(JavaPlugin.getActiveWorkbenchShell(), historyEntries);
                if (dialog.open() == Window.OK) {
                        fView.setHistoryEntries(dialog.getRemaining());
                        fView.setMethod(dialog.getResult());
                }
        }


Clone Instance
2
Line Count
15
Source Line
168
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/HistoryListAction.java

        public HistoryListAction(TypeHierarchyViewPart view) {
                fView = view;
                setText(TypeHierarchyMessages.HistoryListAction_label);
                PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IJavaHelpContextIds.HISTORY_LIST_ACTION);
        }

        /*
         * @see IAction#run()
         */
        public void run() {
                IJavaElement[] historyEntries = fView.getHistoryEntries();
                HistoryListDialog dialog = new HistoryListDialog(JavaPlugin.getActiveWorkbenchShell(), historyEntries);
                if (dialog.open() == Window.OK) {
                        fView.setHistoryEntries(dialog.getRemaining());
                        fView.setInputElement(dialog.getResult());
                }
        }


Clone AbstractionParameter Count: 4Parameter Bindings

public HistoryListAction( [[#variablea0864b00]] view) {
  fView = view;
  setText( [[#variablec30b1be0]].HistoryListAction_label);
  PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IJavaHelpContextIds.HISTORY_LIST_ACTION);
}

/*
         * @see IAction#run()
         */
public void run() {
   [[#variablea0864a80]][] historyEntries = fView.getHistoryEntries();
  HistoryListDialog dialog = new HistoryListDialog(JavaPlugin.getActiveWorkbenchShell(), historyEntries);
  if (dialog.open() == Window.OK) {
    fView.setHistoryEntries(dialog.getRemaining());
    fView. [[#variablea0864aa0]](dialog.getResult());
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#a0864b00]]
CallHierarchyViewPart 
12[[#a0864b00]]
TypeHierarchyViewPart 
21[[#c30b1be0]]
CallHierarchyMessages 
22[[#c30b1be0]]
TypeHierarchyMessages 
31[[#a0864a80]]
IMethod 
32[[#a0864a80]]
IJavaElement 
41[[#a0864aa0]]
setMethod 
42[[#a0864aa0]]
setInputElement