org.eclipse.emf.ecp.view.internal.editor.handler
Class GenerateControlsHandler

java.lang.Object
  extended by org.eclipse.core.commands.common.EventManager
      extended by org.eclipse.core.commands.AbstractHandler
          extended by org.eclipse.emf.ecp.view.spi.treemasterdetail.ui.swt.MasterDetailAction
              extended by org.eclipse.emf.ecp.view.internal.editor.handler.GenerateControlsHandler
All Implemented Interfaces:
org.eclipse.core.commands.IHandler, org.eclipse.core.commands.IHandler2

public class GenerateControlsHandler
extends MasterDetailAction

Handler for generating controls on a VContainer or VView.

Author:
Eugen Neufeld

Constructor Summary
GenerateControlsHandler()
           
 
Method Summary
 void execute(org.eclipse.emf.ecore.EObject object)
          
 Object execute(org.eclipse.core.commands.ExecutionEvent event)
          
 boolean shouldShow(org.eclipse.emf.ecore.EObject object)
          
 
Methods inherited from class org.eclipse.core.commands.AbstractHandler
addHandlerListener, dispose, isEnabled, isHandled, removeHandlerListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenerateControlsHandler

public GenerateControlsHandler()
Method Detail

execute

public void execute(org.eclipse.emf.ecore.EObject object)

Specified by:
execute in class MasterDetailAction
Parameters:
object - The EObject on which the action is executed
See Also:
MasterDetailAction.execute(EObject)

shouldShow

public boolean shouldShow(org.eclipse.emf.ecore.EObject object)

Specified by:
shouldShow in class MasterDetailAction
Parameters:
object - the EObject on which to test if the action can be executed
Returns:
true if the action can be executed on the parameter eObject
See Also:
MasterDetailAction.shouldShow(org.eclipse.emf.ecore.EObject)

execute

public Object execute(org.eclipse.core.commands.ExecutionEvent event)
               throws org.eclipse.core.commands.ExecutionException

Throws:
org.eclipse.core.commands.ExecutionException
See Also:
IHandler.execute(org.eclipse.core.commands.ExecutionEvent)


Copyright © 2015. All Rights Reserved.