Eclipse Platform
Release 3.1

org.eclipse.core.commands
Class CommandManagerEvent

java.lang.Object
  extended byorg.eclipse.core.commands.CommandManagerEvent

public final class CommandManagerEvent
extends Object

An event indicating that the set of defined command identifiers has changed.

Since:
3.1
See Also:
ICommandManagerListener.commandManagerChanged(CommandManagerEvent)

Constructor Summary
CommandManagerEvent(CommandManager commandManager, String commandId, boolean commandIdAdded, boolean commandIdChanged, String categoryId, boolean categoryIdAdded, boolean categoryIdChanged)
          Creates a new instance of this class.
 
Method Summary
 String getCategoryId()
          Returns the category identifier that was added or removed.
 String getCommandId()
          Returns the command identifier that was added or removed.
 CommandManager getCommandManager()
          Returns the instance of the interface that changed.
 boolean isCategoryChanged()
          Returns whether the list of defined category identifiers has changed.
 boolean isCategoryDefined()
          Returns whether the category identifier became defined.
 boolean isCommandChanged()
          Returns whether the list of defined command identifiers has changed.
 boolean isCommandDefined()
          Returns whether the command identifier became defined.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandManagerEvent

public CommandManagerEvent(CommandManager commandManager,
                           String commandId,
                           boolean commandIdAdded,
                           boolean commandIdChanged,
                           String categoryId,
                           boolean categoryIdAdded,
                           boolean categoryIdChanged)
Creates a new instance of this class.

Parameters:
commandManager - the instance of the interface that changed; must not be null.
commandId - The command identifier that was added or removed; must not be null if commandIdChanged is true.
commandIdAdded - Whether the command identifier became defined (otherwise, it became undefined).
commandIdChanged - Whether the list of defined command identifiers has changed.
categoryId - The category identifier that was added or removed; must not be null if categoryIdChanged is true.
categoryIdAdded - Whether the category identifier became defined (otherwise, it became undefined).
categoryIdChanged - Whether the list of defined category identifiers has changed.
Method Detail

getCategoryId

public final String getCategoryId()
Returns the category identifier that was added or removed.

Returns:
The category identifier that was added or removed; may be null.

getCommandId

public final String getCommandId()
Returns the command identifier that was added or removed.

Returns:
The command identifier that was added or removed; may be null.

getCommandManager

public final CommandManager getCommandManager()
Returns the instance of the interface that changed.

Returns:
the instance of the interface that changed. Guaranteed not to be null.

isCategoryChanged

public final boolean isCategoryChanged()
Returns whether the list of defined category identifiers has changed.

Returns:
true if the list of category identifiers has changed; false otherwise.

isCategoryDefined

public final boolean isCategoryDefined()
Returns whether the category identifier became defined. Otherwise, the category identifier became undefined.

Returns:
true if the category identifier became defined; false if the category identifier became undefined.

isCommandChanged

public final boolean isCommandChanged()
Returns whether the list of defined command identifiers has changed.

Returns:
true if the list of command identifiers has changed; false otherwise.

isCommandDefined

public final boolean isCommandDefined()
Returns whether the command identifier became defined. Otherwise, the command identifier became undefined.

Returns:
true if the command identifier became defined; false if the command identifier became undefined.

Eclipse Platform
Release 3.1

Guidelines for using Eclipse APIs.

Copyright (c) IBM Corp. and others 2000, 2005. All rights reserved.