Class SelectAll

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

    public class SelectAll
    extends org.eclipse.core.commands.AbstractHandler
    The Select All handler.
    Author:
    Christopher Mindus
    • Field Summary

      Fields 
      Modifier and TypeFieldDescription
      static java.lang.StringID
      The ID, same as class name.
    • Constructor Summary

      Constructors 
      ConstructorDescription
      SelectAll()
      Constructor.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      static org.eclipse.ui.menus.CommandContributionItemcreate​(org.eclipse.ui.services.IServiceLocator serviceLocator, ImageRegistry ir)
      Creates the Command Contribution item.
      java.lang.Objectexecute​(org.eclipse.core.commands.ExecutionEvent event)
      Performs the operation.
      static SelectAllgetInstance()
      Gets the instance of the handler.
      voidsetEnabled​(java.lang.Object evaluationContext)
      Called by the framework to allow the handler to update its enabled state by extracting the same information available at execution time.
      • Methods inherited from class org.eclipse.core.commands.AbstractHandler

        addHandlerListener, dispose, fireHandlerChanged, hasListeners, isEnabled, isHandled, removeHandlerListener, setBaseEnabled
      • 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
    • Field Detail

      • ID

        public static final java.lang.String ID
        The ID, same as class name.
    • Constructor Detail

      • SelectAll

        public SelectAll()
        Constructor.
    • Method Detail

      • getInstance

        public static SelectAll getInstance()
        Gets the instance of the handler.
      • create

        public static org.eclipse.ui.menus.CommandContributionItem create​(org.eclipse.ui.services.IServiceLocator serviceLocator,
                                                                          ImageRegistry ir)
        Creates the Command Contribution item.
      • setEnabled

        public void setEnabled​(java.lang.Object evaluationContext)
        Called by the framework to allow the handler to update its enabled state by extracting the same information available at execution time.
        Specified by:
        setEnabled in interface org.eclipse.core.commands.IHandler2
        Overrides:
        setEnabled in class org.eclipse.core.commands.AbstractHandler
        Parameters:
        evaluationContext - The application context. May be null.
      • execute

        public java.lang.Object execute​(org.eclipse.core.commands.ExecutionEvent event)
                                 throws org.eclipse.core.commands.ExecutionException
        Performs the operation.
        Throws:
        org.eclipse.core.commands.ExecutionException