Class AddMethodToExtensionHandler

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

    public class AddMethodToExtensionHandler
    extends org.eclipse.core.commands.AbstractHandler
    Special handler for creating extension method for selected method for chosen extension project
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Object execute​(org.eclipse.core.commands.ExecutionEvent event)  
      void execute​(org.eclipse.xtext.ui.editor.XtextEditor target)
      Creates extension method for selected method for chosen extension project
      • Methods inherited from class org.eclipse.core.commands.AbstractHandler

        addHandlerListener, dispose, fireHandlerChanged, hasListeners, isEnabled, isHandled, removeHandlerListener, setBaseEnabled, setEnabled
      • Methods inherited from class org.eclipse.core.commands.common.EventManager

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

      • AddMethodToExtensionHandler

        public AddMethodToExtensionHandler()
    • Method Detail

      • execute

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

        public void execute​(org.eclipse.xtext.ui.editor.XtextEditor target)
        Creates extension method for selected method for chosen extension project
        Parameters:
        target - actual XtextEditor, can't be null