org.eclipse.xtext.ui.editor.handler
Class ContentAssistHandler

java.lang.Object
  extended by org.eclipse.core.commands.common.EventManager
      extended by org.eclipse.core.commands.AbstractHandler
          extended by org.eclipse.xtext.ui.editor.handler.ContentAssistHandler
All Implemented Interfaces:
org.eclipse.core.commands.IHandler, org.eclipse.core.commands.IHandler2

public class ContentAssistHandler
extends org.eclipse.core.commands.AbstractHandler

Author:
Dennis Hübner - Initial contribution and API

Constructor Summary
ContentAssistHandler()
           
 
Method Summary
 java.lang.Object execute(org.eclipse.core.commands.ExecutionEvent event)
          Executes with the map of parameter values by name.
 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.
 
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
 

Constructor Detail

ContentAssistHandler

public ContentAssistHandler()
Method Detail

execute

public java.lang.Object execute(org.eclipse.core.commands.ExecutionEvent event)
                         throws org.eclipse.core.commands.ExecutionException
Description copied from interface: org.eclipse.core.commands.IHandler
Executes with the map of parameter values by name.

Parameters:
event - An event containing all the information about the current state of the application; must not be null.
Returns:
the result of the execution. Reserved for future use, must be null.
Throws:
org.eclipse.core.commands.ExecutionException - if an exception occurred during execution.

setEnabled

public void setEnabled(java.lang.Object evaluationContext)
Description copied from class: org.eclipse.core.commands.AbstractHandler
Called by the framework to allow the handler to update its enabled state by extracting the same information available at execution time. Clients may override if they need to extract information from the application context.

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
See Also:
AbstractHandler.setBaseEnabled(boolean)