Class OpenAction

  • All Implemented Interfaces:
    org.eclipse.jface.action.IAction, ISelectionChangedListener

    public class OpenAction
    extends org.eclipse.ui.actions.BaseSelectionListenerAction
    Standard action for opening an editor on the currently selected emf object(s).
    • Field Summary

      • Fields inherited from interface org.eclipse.jface.action.IAction

        AS_CHECK_BOX, AS_DROP_DOWN_MENU, AS_PUSH_BUTTON, AS_RADIO_BUTTON, AS_UNSPECIFIED, CHECKED, DESCRIPTION, ENABLED, HANDLED, IMAGE, RESULT, TEXT, TOOL_TIP_TEXT
    • Constructor Summary

      Constructors 
      Constructor Description
      OpenAction​(org.eclipse.ui.IWorkbenchPage workbenchPage, IResourceLookup resourceLookup)
      Creates a new action that will open editors on the then-selected emf objects.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void run()
      Opens an editor(s) on the each selected elements, using OpenHelper.
      protected boolean updateSelection​(IStructuredSelection selection)  
      • Methods inherited from class org.eclipse.ui.actions.BaseSelectionListenerAction

        clearCache, getStructuredSelection, runWithEvent, selectionChanged, selectionChanged
      • Methods inherited from class org.eclipse.jface.action.Action

        convertAccelerator, convertAccelerator, findKeyCode, findKeyString, findModifier, findModifierString, getAccelerator, getActionDefinitionId, getDescription, getDisabledImageDescriptor, getHelpListener, getHoverImageDescriptor, getId, getImageDescriptor, getMenuCreator, getStyle, getText, getToolTipText, isChecked, isEnabled, isHandled, notifyResult, removeAcceleratorText, removeMnemonics, setAccelerator, setActionDefinitionId, setChecked, setDescription, setDisabledImageDescriptor, setEnabled, setHelpListener, setHoverImageDescriptor, setId, setImageDescriptor, setMenuCreator, setText, setToolTipText
      • Methods inherited from class org.eclipse.jface.action.AbstractAction

        addPropertyChangeListener, firePropertyChange, firePropertyChange, removePropertyChangeListener
      • Methods inherited from class org.eclipse.core.commands.common.EventManager

        addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
    • Constructor Detail

      • OpenAction

        public OpenAction​(org.eclipse.ui.IWorkbenchPage workbenchPage,
                          IResourceLookup resourceLookup)
        Creates a new action that will open editors on the then-selected emf objects.
        Parameters:
        page - the workbench page in which to open the editor, cannot be null
        the - resource lookup, cannot be null
    • Method Detail

      • run

        public void run()
        Opens an editor(s) on the each selected elements, using OpenHelper.
        Specified by:
        run in interface org.eclipse.jface.action.IAction
        Overrides:
        run in class org.eclipse.jface.action.Action
      • updateSelection

        protected boolean updateSelection​(IStructuredSelection selection)
        Overrides:
        updateSelection in class org.eclipse.ui.actions.BaseSelectionListenerAction