public class AddFileAction
extends org.eclipse.jface.action.Action
implements org.eclipse.jface.action.IMenuCreator
ICEResource
s into a VizFileViewer
.Constructor and Description |
---|
AddFileAction(org.eclipse.ui.part.ViewPart parent)
The constructor
|
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Dispose the menu.
|
org.eclipse.jface.action.Action |
getAddLocalFileAction()
Retrieve the AddLocalFileAction.
|
org.eclipse.swt.widgets.Menu |
getMenu(org.eclipse.swt.widgets.Control parent)
Refresh the menu field.
|
org.eclipse.swt.widgets.Menu |
getMenu(org.eclipse.swt.widgets.Menu parent)
(non-Javadoc)
|
void |
run()
The function called whenever the action is clicked.
|
void |
setDefaultAction(org.eclipse.jface.action.Action action)
Set the defaultAction field
|
convertAccelerator, convertAccelerator, findKeyCode, findKeyString, findModifier, findModifierString, getAccelerator, getActionDefinitionId, getDescription, getDisabledImageDescriptor, getHelpListener, getHoverImageDescriptor, getId, getImageDescriptor, getMenuCreator, getStyle, getText, getToolTipText, isChecked, isEnabled, isHandled, notifyResult, removeAcceleratorText, removeMnemonics, runWithEvent, setAccelerator, setActionDefinitionId, setChecked, setDescription, setDisabledImageDescriptor, setEnabled, setHelpListener, setHoverImageDescriptor, setId, setImageDescriptor, setMenuCreator, setText, setToolTipText
public AddFileAction(org.eclipse.ui.part.ViewPart parent)
parent
- The ViewPart to whom the object of this class belongs.public void run()
ICEResource
for any selected compatible files.run
in interface org.eclipse.jface.action.IAction
run
in class org.eclipse.jface.action.Action
public void setDefaultAction(org.eclipse.jface.action.Action action)
action
- The Action to set defaultAction topublic void dispose()
dispose
in interface org.eclipse.jface.action.IMenuCreator
IMenuCreator.dispose()
public org.eclipse.swt.widgets.Menu getMenu(org.eclipse.swt.widgets.Menu parent)
getMenu
in interface org.eclipse.jface.action.IMenuCreator
IMenuCreator.getMenu(Menu)
public org.eclipse.swt.widgets.Menu getMenu(org.eclipse.swt.widgets.Control parent)
getMenu
in interface org.eclipse.jface.action.IMenuCreator
IMenuCreator.getMenu(Control)
public org.eclipse.jface.action.Action getAddLocalFileAction()