org.eclipse.xtext.ui.editor.embedded
Class EmbeddedEditorActions

java.lang.Object
  extended by org.eclipse.xtext.ui.editor.embedded.EmbeddedEditorActions

public class EmbeddedEditorActions
extends java.lang.Object

Author:
Sebastian Zarnekow - Initial contribution and API

Nested Class Summary
static class EmbeddedEditorActions.Factory
           
 
Field Summary
protected static ActionDefinitionToStyledTextAction[] ACTION_MAP
           
protected  java.util.Map<java.lang.String,org.eclipse.jface.action.IAction> allActions
           
static java.lang.String EMBEDDED_TEXT_EDITOR_SCOPE
           
protected  org.eclipse.jface.text.source.ISourceViewer viewer
           
protected  org.eclipse.ui.IWorkbench workbench
           
 
Constructor Summary
EmbeddedEditorActions(org.eclipse.jface.text.source.ISourceViewer viewer, org.eclipse.ui.IWorkbench workbench)
           
 
Method Summary
protected  void createActions()
           
protected  void fillContextMenu(org.eclipse.jface.action.IMenuManager menu)
           
protected  ActionActivationCode findActionActivationCode(java.util.List<ActionActivationCode> activationCodes, java.lang.String actionID)
           
protected  org.eclipse.jface.action.IAction get(java.lang.String actionId)
           
protected  void initialize()
           
protected  void setAction(java.lang.String actionID, org.eclipse.jface.action.IAction action)
           
protected  void setActionActivationCode(java.util.List<ActionActivationCode> activationCodes, java.lang.String actionID, char activationCharacter, int activationKeyCode, int activationStateMask)
           
protected  void updateAction(java.lang.String actionId)
           
protected  void updateAllActions()
           
protected  void updateSelectionDependentActions()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EMBEDDED_TEXT_EDITOR_SCOPE

public static final java.lang.String EMBEDDED_TEXT_EDITOR_SCOPE
See Also:
Constant Field Values

ACTION_MAP

protected static final ActionDefinitionToStyledTextAction[] ACTION_MAP

allActions

protected final java.util.Map<java.lang.String,org.eclipse.jface.action.IAction> allActions

viewer

protected final org.eclipse.jface.text.source.ISourceViewer viewer

workbench

protected final org.eclipse.ui.IWorkbench workbench
Constructor Detail

EmbeddedEditorActions

public EmbeddedEditorActions(org.eclipse.jface.text.source.ISourceViewer viewer,
                             org.eclipse.ui.IWorkbench workbench)
Method Detail

initialize

protected void initialize()

fillContextMenu

protected void fillContextMenu(org.eclipse.jface.action.IMenuManager menu)

setActionActivationCode

protected void setActionActivationCode(java.util.List<ActionActivationCode> activationCodes,
                                       java.lang.String actionID,
                                       char activationCharacter,
                                       int activationKeyCode,
                                       int activationStateMask)

findActionActivationCode

protected ActionActivationCode findActionActivationCode(java.util.List<ActionActivationCode> activationCodes,
                                                        java.lang.String actionID)

createActions

protected void createActions()

setAction

protected void setAction(java.lang.String actionID,
                         org.eclipse.jface.action.IAction action)

get

protected org.eclipse.jface.action.IAction get(java.lang.String actionId)

updateAllActions

protected void updateAllActions()

updateSelectionDependentActions

protected void updateSelectionDependentActions()

updateAction

protected void updateAction(java.lang.String actionId)