com.togethersoft.openapi.ide.command
Interface IdeCommandEvent


public interface IdeCommandEvent

An event which indicates that a command item-related action occurred. Event is generated by an element when the
element-specific action occurs:


The listener is assigned to the item at the moment of creation of this item.

Author:
TogetherSoft
Since: Together 3.0
See Also: IdeCommandManager.createItem(java.lang.String,com.togethersoft.openapi.ide.command.IdeCommandConstraints,com.togethersoft.openapi.ide.command.IdeCommandListener), IdeCommandManager.createGroup(java.lang.String,com.togethersoft.openapi.ide.command.IdeCommandConstraints,com.togethersoft.openapi.ide.command.IdeCommandCheckListener)

Method Summary
 IdeCommandItemgetCommandItem()
          Returns the command item this event relates to.
 IdeContextgetElementContext()
          This method is used in IdeCommandCheckListener for getting IdeContext
containing the element this event was fired for.
 booleanisInvokedByShortcut()
          Checks whether the command item relating to this event was invoked by using a shortcut.

Method Detail

getCommandItem

public IdeCommandItem getCommandItem()
Returns the command item this event relates to.
Returns: IdeCommandItem

getElementContext

public IdeContext getElementContext()
This method is used in IdeCommandCheckListener for getting IdeContext
containing the element this event was fired for.
Returns: IdeContext
See Also:
IdeCommandCheckListener

isInvokedByShortcut

public boolean isInvokedByShortcut()
Checks whether the command item relating to this event was invoked by using a shortcut.
Returns: true if the command item relating to this event was invoked by using a shortcut,
false otherwise