Class CreateNewInstanceAction

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

    public class CreateNewInstanceAction
    extends MasterDetailAction
    Author:
    Lucas Koehler
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void execute​(java.util.List<java.lang.Object> objects)  
      java.lang.Object execute​(org.eclipse.core.commands.ExecutionEvent event)  
      boolean shouldShow​(java.util.List<java.lang.Object> objects)  
      • 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CreateNewInstanceAction

        public CreateNewInstanceAction()
        Default constructor.
    • Method Detail

      • execute

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

        public boolean shouldShow​(java.util.List<java.lang.Object> objects)
        Specified by:
        shouldShow in class MasterDetailAction
        Parameters:
        objects - the list of objects on which to test if the action can be executed
        Returns:
        true if the action can be executed on the parameter
      • execute

        public void execute​(java.util.List<java.lang.Object> objects)
        Specified by:
        execute in class MasterDetailAction
        Parameters:
        objects - The list of objects on which the action is executed