de.cau.cs.kieler.core.kivi.menu
Class ButtonHandler
java.lang.Object
org.eclipse.core.commands.common.EventManager
org.eclipse.core.commands.AbstractHandler
de.cau.cs.kieler.core.kivi.menu.ButtonHandler
- All Implemented Interfaces:
- IHandler, IHandler2
public class ButtonHandler
- extends AbstractHandler
The handler that receives commands from various view management buttons.
- Rating

Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ButtonHandler
public ButtonHandler()
execute
public Object execute(ExecutionEvent event)
throws ExecutionException
-
- Throws:
ExecutionException
unload
public void unload()
- Unload this ButtonHandler. I.e. trigger a last not-pushed state if the button was
pushed before.
setEnabled
public void setEnabled(boolean enabled)
- Set the enabled state of this handler. This state is used by corresponding
menu contributions (buttons, menu entries, etc.) to determine the enabled state
of that menu item, e.g. whether a button should be grayed out or not.
- Parameters:
enabled
- true iff the handler is enabled.
getPushed
public boolean getPushed()
- Returns the pushed status.
- Returns:
- the pushed status