Class OpenEmbeddedDeclarationHandler

  • All Implemented Interfaces:
    org.eclipse.core.commands.IHandler, org.eclipse.core.commands.IHandler2

    public class OpenEmbeddedDeclarationHandler
    extends org.eclipse.core.commands.AbstractHandler
    Open declaration handler for Xtext embedded editors.

    This action can be contributed to an embedded Xtext editor popup context menu via the handler extension point, by referencing the target embedded editor opened state.

     <handler
       class="com.example.ExampleXtextExtensionFactory:com._1c.g5.v8.dt.lcore.ui.editor.embedded.OpenEmbeddedDeclarationHandler"
       commandId="org.eclipse.xtext.ui.editor.hyperlinking.OpenDeclaration">
       <activeWhen>
          <reference
             definitionId="com.example.EmbeddedEditor.opened">
          </reference>
       </activeWhen>
     </handler>
    Clients are intended to refer to this class as an action delegate in plug-in XML.
    Restriction:
    This class is not intended to be instantiated by clients.
    • Constructor Detail

      • OpenEmbeddedDeclarationHandler

        public OpenEmbeddedDeclarationHandler()
    • Method Detail

      • execute

        public Object execute​(org.eclipse.core.commands.ExecutionEvent event)
                       throws org.eclipse.core.commands.ExecutionException
        Throws:
        org.eclipse.core.commands.ExecutionException