Class GotoCommandEventHandlerHandler

    • Constructor Detail

      • GotoCommandEventHandlerHandler

        public GotoCommandEventHandlerHandler()
    • Method Detail

      • extractEventOwner

        protected FormCommand extractEventOwner​(org.eclipse.emf.ecore.EObject element,
                                                Form form,
                                                org.eclipse.core.commands.ExecutionEvent executionEvent)
        Description copied from class: AbstractGotoEventHandlerHandler
        Extracts event owner from given form element.
        Specified by:
        extractEventOwner in class AbstractGotoEventHandlerHandler<FormCommand>
        Parameters:
        element - the form element to extract event owner from, cannot be null
        form - the owner form, cannot be null
        executionEvent - the current execution event, cannot be null
        Returns:
        the event owner, never null
      • getCreatingEvent

        protected Event getCreatingEvent​(org.eclipse.emf.ecore.EObject eventOwner,
                                         org.eclipse.core.commands.ExecutionEvent executionEvent,
                                         String handlerName)
        Description copied from class: AbstractGotoEventHandlerHandler
        Gets event for handler creation.
        Specified by:
        getCreatingEvent in class AbstractGotoEventHandlerHandler<FormCommand>
        Parameters:
        eventOwner - the owner of event, cannot be null
        executionEvent - the current execution event, cannot be null
        handlerName - the event handler name to create event with, cannot be null
        Returns:
        creating event, never null
      • getEventHandlerName

        protected String getEventHandlerName​(FormCommand eventOwner,
                                             org.eclipse.emf.ecore.EObject element,
                                             org.eclipse.core.commands.ExecutionEvent executionEvent)
        Description copied from class: AbstractGotoEventHandlerHandler
        Returns eventOwner event handler name. Can return null if not provided.
        Specified by:
        getEventHandlerName in class AbstractGotoEventHandlerHandler<FormCommand>
        Parameters:
        eventOwner - the owner of event, cannot be null
        element - the currently selected form element, cannot be null
        executionEvent - the current execution event, cannot be null
        Returns:
        the existing event handler name or null if none
      • generateEventHandlerName

        protected String generateEventHandlerName​(FormCommand eventOwner,
                                                  org.eclipse.emf.ecore.EObject element,
                                                  org.eclipse.core.commands.ExecutionEvent executionEvent)
        Description copied from class: AbstractGotoEventHandlerHandler
        Generates eventOwner event handler name.
        Specified by:
        generateEventHandlerName in class AbstractGotoEventHandlerHandler<FormCommand>
        Parameters:
        eventOwner - the owner of event, cannot be null
        element - the currently selected form element, cannot be null
        executionEvent - the current execution event, cannot be null
        Returns:
        generated event handler name, never null
      • setEventHandler

        protected void setEventHandler​(FormCommand eventOwner,
                                       String eventHandlerName,
                                       org.eclipse.core.commands.ExecutionEvent executionEvent)
        Description copied from class: AbstractGotoEventHandlerHandler
        Sets eventOwner event handler.
        Specified by:
        setEventHandler in class AbstractGotoEventHandlerHandler<FormCommand>
        Parameters:
        eventOwner - the owner of event, cannot be null
        eventHandlerName - the event handler name to set, cannot be null
        executionEvent - the current execution event, cannot be null