Class TemplateEditorActions


  • public class TemplateEditorActions
    extends org.eclipse.xtext.ui.editor.embedded.EmbeddedEditorActions
    This extension of EmbeddedEditorActions handles support for redo/undo actions. Using for EditTemplateDialog pattern editor.
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.eclipse.xtext.ui.editor.embedded.EmbeddedEditorActions

        org.eclipse.xtext.ui.editor.embedded.EmbeddedEditorActions.Factory
    • Field Summary

      • Fields inherited from class org.eclipse.xtext.ui.editor.embedded.EmbeddedEditorActions

        ACTION_MAP, allActions, EMBEDDED_TEXT_EDITOR_SCOPE, viewer, workbench
    • Constructor Summary

      Constructors 
      Constructor Description
      TemplateEditorActions​(org.eclipse.jface.text.source.ISourceViewer viewer, org.eclipse.ui.IWorkbench workbench)
      Creates new instance of this by calling super's constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void initialize()  
      protected org.eclipse.xtext.ui.editor.embedded.OperationHistoryListener installUndoRedoSupport()
      Installs support for undo/redo actions
      protected void uninstallUndoRedoSupport​(org.eclipse.xtext.ui.editor.embedded.OperationHistoryListener listener)
      Uninstalls listener that handles support for undo/redo actions
      • Methods inherited from class org.eclipse.xtext.ui.editor.embedded.EmbeddedEditorActions

        createActions, createFocusAndDisposeListeners, fillContextMenu, findActionActivationCode, get, setAction, setActionActivationCode, updateAction, updateAllActions, updateSelectionDependentActions
    • Constructor Detail

      • TemplateEditorActions

        public TemplateEditorActions​(org.eclipse.jface.text.source.ISourceViewer viewer,
                                     org.eclipse.ui.IWorkbench workbench)
        Creates new instance of this by calling super's constructor
        Parameters:
        viewer - The viewer to create actions for, cannot be null
        workbench - The workbench holding the viewer, cannot be null
    • Method Detail

      • initialize

        protected void initialize()
        Overrides:
        initialize in class org.eclipse.xtext.ui.editor.embedded.EmbeddedEditorActions
      • installUndoRedoSupport

        protected org.eclipse.xtext.ui.editor.embedded.OperationHistoryListener installUndoRedoSupport()
        Installs support for undo/redo actions
        Returns:
        The listener that handles support, can be null
      • uninstallUndoRedoSupport

        protected void uninstallUndoRedoSupport​(org.eclipse.xtext.ui.editor.embedded.OperationHistoryListener listener)
        Uninstalls listener that handles support for undo/redo actions
        Parameters:
        listener - The listener that supports undo/redo actions, cannot be null