Class CustomAstSelectionAction

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

    public abstract class CustomAstSelectionAction
    extends org.eclipse.xtext.ui.editor.selection.AstSelectionAction
    Special implementation of AstSelectionAction for Bsl language for replace method IReadAccess.Priority#priorityReadOnly(IUnitOfWork) for processing resource to BslXtextDocument.readOnlyDataModelWithoutSync(IUnitOfWork). New using method is more powerfull and do not provide lock in UI thread
    • 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
      CustomAstSelectionAction​(String text, org.eclipse.xtext.ui.editor.XtextEditor xtextEditor)
      Constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void run()  
      • Methods inherited from class org.eclipse.xtext.ui.editor.selection.AstSelectionAction

        createTextSelectionWork, getXtextEditor, internalSelect
      • 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, runWithEvent, 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

      • CustomAstSelectionAction

        public CustomAstSelectionAction​(String text,
                                        org.eclipse.xtext.ui.editor.XtextEditor xtextEditor)
        Constructor
        Parameters:
        text - action text, cannot be null
        xtextEditor - actual XtextEditor, where action was called, cannot be null
    • Method Detail

      • run

        public void run()
        Specified by:
        run in interface org.eclipse.jface.action.IAction
        Overrides:
        run in class org.eclipse.xtext.ui.editor.selection.AstSelectionAction