public class FileCompareAction
extends java.lang.Object
implements org.eclipse.ui.IObjectActionDelegate
file
s in the workspace. Overrides Eclipse-defined action behind "Compare With >
Each Other" popup menu to make sure that ModelCompareEditor
rather than Eclipse's CompareEditor
is
opened when selected file
s are model files.ModelCompareEditor
Constructor and Description |
---|
FileCompareAction() |
Modifier and Type | Method and Description |
---|---|
void |
run(org.eclipse.jface.action.IAction action) |
void |
selectionChanged(org.eclipse.jface.action.IAction action,
org.eclipse.jface.viewers.ISelection selection) |
void |
setActivePart(org.eclipse.jface.action.IAction action,
org.eclipse.ui.IWorkbenchPart targetPart) |
public void setActivePart(org.eclipse.jface.action.IAction action, org.eclipse.ui.IWorkbenchPart targetPart)
setActivePart
in interface org.eclipse.ui.IObjectActionDelegate
public void selectionChanged(org.eclipse.jface.action.IAction action, org.eclipse.jface.viewers.ISelection selection)
selectionChanged
in interface org.eclipse.ui.IActionDelegate
public void run(org.eclipse.jface.action.IAction action)
run
in interface org.eclipse.ui.IActionDelegate