Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
15 | 2 | 4 | 0.987 | class_body_declarations[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 15 | 168 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/callhierarchy/HistoryListAction.java |
2 | 15 | 168 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/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()); } } |
| ||||
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()); } } |
| |||
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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#a0864b00]] | CallHierarchyViewPart |
1 | 2 | [[#a0864b00]] | TypeHierarchyViewPart |
2 | 1 | [[#c30b1be0]] | CallHierarchyMessages |
2 | 2 | [[#c30b1be0]] | TypeHierarchyMessages |
3 | 1 | [[#a0864a80]] | IMethod |
3 | 2 | [[#a0864a80]] | IJavaElement |
4 | 1 | [[#a0864aa0]] | setMethod |
4 | 2 | [[#a0864aa0]] | setInputElement |