Eclipse GEF 3.3

## Uses of Class
org.eclipse.gef.commands.Command

Packages that use Command
org.eclipse.gef: All interfaces, base types, and the plugin class are here.
org.eclipse.gef.commands: Simple implementations of the Command interface which support development-time inspection.
org.eclipse.gef.dnd
org.eclipse.gef.editparts: This package contains abstract implementation of the EditPart interface.
org.eclipse.gef.editpolicies: This package contains EditPolicy implementations for many common editing Roles.
org.eclipse.gef.requests: This package contains the common Request types used by the provided tools and edit policies.
org.eclipse.gef.rulers
org.eclipse.gef.tools: This package provides several tool implementations.
org.eclipse.gef.ui.actions: This package support for using JFace Actions in your EditorPart.

Uses of Command in org.eclipse.gef

Methods in org.eclipse.gef that return Command
`Command` `EditPolicy.getCommand(Request request)` Returns the `Command` contribution for the given `Request`, or `null`.
`Command` `EditPart.getCommand(Request request)` Returns the `Command` to perform the specified Request or `null`.

Uses of Command in org.eclipse.gef.commands

Subclasses of Command in org.eclipse.gef.commands
`class` `CompoundCommand` An aggregation of multiple `Commands`.
`class` `ForwardUndoCompoundCommand` A CompoundCommand that performs undo on its contained Commands in the same order in which they were executed.
`class` `UnexecutableCommand` A Command which can never be executed

Methods in org.eclipse.gef.commands that return Command
`Command` `CompoundCommand.unwrap()` Returns the simplest form of this Command that is equivalent.
`Command` `CommandStackEvent.getCommand()` Returns `null` or a Command if a command is relevant to the current event.
`Command` `CommandStack.getRedoCommand()` Peeks at the top of the redo stack.
`Command` `CommandStack.getUndoCommand()` Peeks at the top of the undo stack.
`Command` `Command.chain(Command command)` Returns a Command that represents the chaining of a specified Command to this Command.

Methods in org.eclipse.gef.commands with parameters of type Command
`void` `CompoundCommand.add(Command command)` Adds the specified command if it is not `null`.
`void` `CommandStack.execute(Command command)` Executes the specified Command if possible.
`protected void` `CommandStack.notifyListeners(Command command, int state)` Notifies command stack event listeners that the command stack has changed to the specified state.
`Command` `Command.chain(Command command)` Returns a Command that represents the chaining of a specified Command to this Command.

Constructors in org.eclipse.gef.commands with parameters of type Command
`CommandStackEvent(CommandStack stack, Command c, int detail)` Constructs a new event instance.

Uses of Command in org.eclipse.gef.dnd

Methods in org.eclipse.gef.dnd that return Command
`protected Command` `AbstractTransferDropTargetListener.getCommand()` Returns the current command from the target EditPart.

Uses of Command in org.eclipse.gef.editparts

Methods in org.eclipse.gef.editparts that return Command
`Command` `SimpleRootEditPart.getCommand(Request req)` The RootEditPart should never be asked for a command.
`Command` `RootTreeEditPart.getCommand(Request request)`
`Command` `GraphicalRootEditPart.getCommand(Request req)` Deprecated. Returns the unexecutable command.
`Command` `AbstractEditPart.getCommand(Request request)` Subclasses should rarely extend this method.

Uses of Command in org.eclipse.gef.editpolicies

Methods in org.eclipse.gef.editpolicies that return Command
`protected abstract Command` `TreeContainerEditPolicy.getAddCommand(ChangeBoundsRequest request)` Returns a Command for adding the children to the container.
`protected abstract Command` `TreeContainerEditPolicy.getCreateCommand(CreateRequest request)` Returns a Command for creating the object inside the container.
`protected abstract Command` `TreeContainerEditPolicy.getMoveChildrenCommand(ChangeBoundsRequest request)` Returns a Command for moving the children within the container.
`Command` `TreeContainerEditPolicy.getCommand(Request req)`
`protected Command` `RootComponentEditPolicy.createDeleteCommand(GroupRequest request)` Overridden to prevent the host from being deleted.
`Command` `ResizableEditPolicy.getCommand(Request request)`
`protected Command` `ResizableEditPolicy.getResizeCommand(ChangeBoundsRequest request)` Returns the command contribution for the given resize request.
`protected abstract Command` `OrderedLayoutEditPolicy.createAddCommand(EditPart child, EditPart after)` Returns the `Command` to add the specified child after a reference `EditPart`.
`protected abstract Command` `OrderedLayoutEditPolicy.createMoveChildCommand(EditPart child, EditPart after)` Returns the `Command` to move the specified child before the given reference `EditPart`.
`protected Command` `OrderedLayoutEditPolicy.getAddCommand(Request req)` This method is overridden from the superclass to calculate the index at which the children should be added.
`protected Command` `OrderedLayoutEditPolicy.getMoveChildrenCommand(Request request)` A move is interpreted here as a change in order of the children.
`Command` `NonResizableEditPolicy.getCommand(Request request)`
`protected Command` `NonResizableEditPolicy.getAlignCommand(AlignmentRequest request)` Returns the command contribution to an alignment request
`protected Command` `NonResizableEditPolicy.getMoveCommand(ChangeBoundsRequest request)` Returns the command contribution to a change bounds request.
`protected Command` `NonResizableEditPolicy.getOrphanCommand(Request req)` Subclasses may override to contribute to the orphan request.
`protected Command` `LayoutEditPolicy.getAddCommand(Request request)` Override to return the `Command` to perform an `ADD`.
`protected Command` `LayoutEditPolicy.getCloneCommand(ChangeBoundsRequest request)` Override to contribute to clone requests.
`Command` `LayoutEditPolicy.getCommand(Request request)` Factors incoming requests into various specific methods.
`protected abstract Command` `LayoutEditPolicy.getCreateCommand(CreateRequest request)` Returns the `Command` to perform a create.
`protected Command` `LayoutEditPolicy.getDeleteDependantCommand(Request request)` Returns the `Command` to delete a child.
`protected abstract Command` `LayoutEditPolicy.getMoveChildrenCommand(Request request)` Returns the `Command` to move a group of children.
`protected Command` `LayoutEditPolicy.getOrphanChildrenCommand(Request request)` Returns the `Command` to orphan a group of children.
`Command` `GraphicalNodeEditPolicy.getCommand(Request request)` Factors the request into one of four abstract methods.
`protected abstract Command` `GraphicalNodeEditPolicy.getConnectionCompleteCommand(CreateConnectionRequest request)` Returns the Command that will create the connection.
`protected abstract Command` `GraphicalNodeEditPolicy.getConnectionCreateCommand(CreateConnectionRequest request)` Returns the Command that represents the first half of creating a connection.
`protected abstract Command` `GraphicalNodeEditPolicy.getReconnectTargetCommand(ReconnectRequest request)` Returns the `Command` to reconnect a connection's target end to the host.
`protected abstract Command` `GraphicalNodeEditPolicy.getReconnectSourceCommand(ReconnectRequest request)` Returns the `Command` to reconnect a connection's source end to the host.
`Command` `DirectEditPolicy.getCommand(Request request)`
`protected abstract Command` `DirectEditPolicy.getDirectEditCommand(DirectEditRequest request)` Returns the `Command` to perform the direct edit.
`protected Command` `ContainerEditPolicy.getAddCommand(GroupRequest request)` Override to contribute to add requests.
`protected Command` `ContainerEditPolicy.getCloneCommand(ChangeBoundsRequest request)` Override to contribute to clone requests.
`Command` `ContainerEditPolicy.getCommand(Request request)` Overridden to check for add, create, and orphan.
`protected abstract Command` `ContainerEditPolicy.getCreateCommand(CreateRequest request)` Clients must implement to contribute to create requests.
`protected Command` `ContainerEditPolicy.getOrphanChildrenCommand(GroupRequest request)` Override to contribute to orphan requests.
`protected Command` `ConstrainedLayoutEditPolicy.createAddCommand(EditPart child, Object constraint)` Returns the `Command` to perform an Add with the specified child and constraint.
`protected Command` `ConstrainedLayoutEditPolicy.createChangeConstraintCommand(ChangeBoundsRequest request, EditPart child, Object constraint)` The request is now made available when creating the change constraint command.
`protected abstract Command` `ConstrainedLayoutEditPolicy.createChangeConstraintCommand(EditPart child, Object constraint)` Returns the `Command` to change the specified child's constraint.
`protected Command` `ConstrainedLayoutEditPolicy.getAddCommand(Request generic)` Overrides `getAddCommand()` to generate the proper constraint for each child being added.
`protected Command` `ConstrainedLayoutEditPolicy.getAlignChildrenCommand(AlignmentRequest request)` Returns the command to align a group of children.
`Command` `ConstrainedLayoutEditPolicy.getCommand(Request request)` Factors out RESIZE and ALIGN requests, otherwise calls `super`.
`protected Command` `ConstrainedLayoutEditPolicy.getResizeChildrenCommand(ChangeBoundsRequest request)` Returns the `Command` to resize a group of children.
`protected Command` `ConstrainedLayoutEditPolicy.getMoveChildrenCommand(Request request)` Returns the `Command` to move a group of children.
`Command` `ConnectionEndpointEditPolicy.getCommand(Request request)`
`Command` `ConnectionEditPolicy.getCommand(Request request)`
`protected abstract Command` `ConnectionEditPolicy.getDeleteCommand(GroupRequest request)` Subclasses should implement to return the Command to delete the connection.
`protected Command` `ComponentEditPolicy.createDeleteCommand(GroupRequest deleteRequest)` Override to contribute to the component's being deleted.
`Command` `ComponentEditPolicy.getCommand(Request request)` Factors the incoming Request into ORPHANs and DELETEs.
`protected Command` `ComponentEditPolicy.getDeleteCommand(GroupRequest request)` Calls and returns `ComponentEditPolicy.createDeleteCommand(GroupRequest)`.
`protected Command` `ComponentEditPolicy.getOrphanCommand()` Returns the command contribution for orphaning this component from its container.
`Command` `BendpointEditPolicy.getCommand(Request request)` Factors the Request into either a MOVE, a DELETE, or a CREATE of a bendpoint.
`protected abstract Command` `BendpointEditPolicy.getCreateBendpointCommand(BendpointRequest request)` Implement this method to return a Command that will create a bendpoint.
`protected abstract Command` `BendpointEditPolicy.getDeleteBendpointCommand(BendpointRequest request)` Implement this method to return a Command that will delete a bendpoint.
`protected abstract Command` `BendpointEditPolicy.getMoveBendpointCommand(BendpointRequest request)` Implement this method to return a Command that will move a bendpoint.
`Command` `AbstractEditPolicy.getCommand(Request request)` Returns `null` by default.

Uses of Command in org.eclipse.gef.requests

Methods in org.eclipse.gef.requests that return Command
`Command` `CreateConnectionRequest.getStartCommand()` Returns the start command.

Methods in org.eclipse.gef.requests with parameters of type Command
`void` `CreateConnectionRequest.setStartCommand(Command c)` Sets the start command.

Uses of Command in org.eclipse.gef.rulers

Methods in org.eclipse.gef.rulers that return Command
`Command` `RulerProvider.getCreateGuideCommand(int position)` Clients should override this method to return a Command to create a new guide at the given position.
`Command` `RulerProvider.getDeleteGuideCommand(Object guide)` Clients should override this method to return a Command to delete the given guide.
`Command` `RulerProvider.getMoveGuideCommand(Object guide, int positionDelta)` Clients should override this method to return a Command to move the given guide by the given amount.

Uses of Command in org.eclipse.gef.tools

Methods in org.eclipse.gef.tools that return Command
`protected Command` `TargetingTool.getCommand()` Queries the target editpart for a command.
`protected Command` `ResizeTracker.getCommand()`
`protected Command` `DragEditPartsTracker.getCommand()` Asks each edit part in the `operation set` to contribute to a `CompoundCommand` after first setting the request type to either `RequestConstants.REQ_MOVE` or `RequestConstants.REQ_ORPHAN`, depending on the result of `DragEditPartsTracker.isMove()`.
`protected Command` `ConnectionBendpointTracker.getCommand()` Obtains a new command from the connection.
`protected Command` `AbstractTool.getCommand()` Returns a new, updated command based on the tool's current properties.
`protected Command` `AbstractTool.getCurrentCommand()` Returns the currently cached command.

Methods in org.eclipse.gef.tools with parameters of type Command
`protected void` `AbstractTool.executeCommand(Command command)` Executes the given command on the command stack.
`protected void` `AbstractTool.setCurrentCommand(Command c)` Used to cache a command obtained from `AbstractTool.getCommand()`.

Uses of Command in org.eclipse.gef.ui.actions

Methods in org.eclipse.gef.ui.actions that return Command
`Command` `DeleteAction.createDeleteCommand(List objects)` Create a command to remove the selected objects.

Methods in org.eclipse.gef.ui.actions with parameters of type Command
`protected void` `WorkbenchPartAction.execute(Command command)` Executes the given `Command` using the command stack.
`protected String` `StackAction.getLabelForCommand(Command command)` Returns the label for the given command.

Eclipse GEF 3.3

Copyright (c) IBM Corp. and others 2000, 2007. All Rights Reserved.