Uses of Class
org.eclipse.gef.commands.Command
Packages that use Command
Package
Description
All interfaces, base types, and the plugin class are here.
Simple implementations of the Command interface which support development-time inspection.
This package contains abstract implementation of the EditPart interface.
This package contains EditPolicy implementations for many common editing
Roles.
This package contains the common Request types used by the provided tools and edit policies.
This package provides several tool implementations.
This package support for using JFace Actions in your EditorPart.
-
Uses of Command in org.eclipse.gef
Methods in org.eclipse.gef that return CommandModifier and TypeMethodDescriptionEditPart.getCommand
(Request request) Returns theCommand
to perform the specified Request ornull
.EditPolicy.getCommand
(Request request) Returns theCommand
contribution for the givenRequest
, ornull
. -
Uses of Command in org.eclipse.gef.commands
Subclasses of Command in org.eclipse.gef.commandsModifier and TypeClassDescriptionclass
An aggregation of multipleCommands
.class
A CompoundCommand that performs undo on its contained Commands in the same order in which they were executed.final class
A Command which can never be executedMethods in org.eclipse.gef.commands that return CommandModifier and TypeMethodDescriptionReturns a Command that represents the chaining of a specified Command to this Command.CommandStackEvent.getCommand()
Returnsnull
or a Command if a command is relevant to the current event.CommandStack.getRedoCommand()
Peeks at the top of the redo stack.CommandStack.getUndoCommand()
Peeks at the top of the undo stack.CompoundCommand.unwrap()
Returns the simplest form of this Command that is equivalent.Methods in org.eclipse.gef.commands that return types with arguments of type CommandMethods in org.eclipse.gef.commands with parameters of type CommandModifier and TypeMethodDescriptionvoid
Adds the specified command if it is notnull
.Returns a Command that represents the chaining of a specified Command to this Command.void
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.Constructors in org.eclipse.gef.commands with parameters of type CommandModifierConstructorDescriptionCommandStackEvent
(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 CommandModifier and TypeMethodDescriptionprotected 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 CommandModifier and TypeMethodDescriptionAbstractEditPart.getCommand
(Request request) Subclasses should rarely extend this method.GraphicalRootEditPart.getCommand
(Request req) Deprecated.Returns the unexecutable command.RootTreeEditPart.getCommand
(Request request) SimpleRootEditPart.getCommand
(Request req) The RootEditPart should never be asked for a command. -
Uses of Command in org.eclipse.gef.editpolicies
Methods in org.eclipse.gef.editpolicies that return CommandModifier and TypeMethodDescriptionprotected Command
ConstrainedLayoutEditPolicy.createAddCommand
(EditPart child, Object constraint) Deprecated.protected Command
ConstrainedLayoutEditPolicy.createAddCommand
(ChangeBoundsRequest request, EditPart child, Object constraint) Returns theCommand
to perform an Add with the specified child and constraint.protected abstract Command
OrderedLayoutEditPolicy.createAddCommand
(EditPart child, EditPart after) Returns theCommand
to add the specified child after a referenceEditPart
.protected Command
ConstrainedLayoutEditPolicy.createChangeConstraintCommand
(EditPart child, Object constraint) Deprecated.protected Command
ConstrainedLayoutEditPolicy.createChangeConstraintCommand
(ChangeBoundsRequest request, EditPart child, Object constraint) The request is now made available when creating the change constraint command.protected Command
ComponentEditPolicy.createDeleteCommand
(GroupRequest deleteRequest) Override to contribute to the component's being deleted.protected Command
RootComponentEditPolicy.createDeleteCommand
(GroupRequest request) Overridden to prevent the host from being deleted.protected abstract Command
OrderedLayoutEditPolicy.createMoveChildCommand
(EditPart child, EditPart after) Returns theCommand
to move the specified child before the given referenceEditPart
.protected Command
ConstrainedLayoutEditPolicy.getAddCommand
(Request generic) OverridesgetAddCommand()
to generate the proper constraint for each child being added.protected Command
ContainerEditPolicy.getAddCommand
(GroupRequest request) Override to contribute to add requests.protected Command
LayoutEditPolicy.getAddCommand
(Request request) Override to return theCommand
to perform anADD
.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 abstract Command
TreeContainerEditPolicy.getAddCommand
(ChangeBoundsRequest request) Returns a Command for adding the children to the container.protected Command
ConstrainedLayoutEditPolicy.getAlignChildrenCommand
(AlignmentRequest request) Returns the command to align a group of children.protected Command
NonResizableEditPolicy.getAlignCommand
(AlignmentRequest request) Returns the command contribution to an alignment requestprotected Command
ConstrainedLayoutEditPolicy.getChangeConstraintCommand
(ChangeBoundsRequest request) Returns theCommand
for changing bounds for a group of children.protected Command
ContainerEditPolicy.getCloneCommand
(ChangeBoundsRequest request) Override to contribute to clone requests.protected Command
LayoutEditPolicy.getCloneCommand
(ChangeBoundsRequest request) Override to contribute to clone requests.AbstractEditPolicy.getCommand
(Request request) Returnsnull
by default.BendpointEditPolicy.getCommand
(Request request) Factors the Request into either a MOVE, a DELETE, or a CREATE of a bendpoint.ComponentEditPolicy.getCommand
(Request request) Factors the incoming Request into ORPHANs and DELETEs.ConnectionEditPolicy.getCommand
(Request request) ConnectionEndpointEditPolicy.getCommand
(Request request) ConstrainedLayoutEditPolicy.getCommand
(Request request) Factors out RESIZE and ALIGN requests, otherwise callssuper
.ContainerEditPolicy.getCommand
(Request request) Overridden to check for add, create, and orphan.DirectEditPolicy.getCommand
(Request request) GraphicalNodeEditPolicy.getCommand
(Request request) Factors the request into one of four abstract methods.LayoutEditPolicy.getCommand
(Request request) Factors incoming requests into various specific methods.NonResizableEditPolicy.getCommand
(Request request) ResizableEditPolicy.getCommand
(Request request) TreeContainerEditPolicy.getCommand
(Request req) 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
BendpointEditPolicy.getCreateBendpointCommand
(BendpointRequest request) Implement this method to return a Command that will create a bendpoint.protected abstract Command
ContainerEditPolicy.getCreateCommand
(CreateRequest request) Clients must implement to contribute to create requests.protected abstract Command
LayoutEditPolicy.getCreateCommand
(CreateRequest request) Returns theCommand
to perform a create.protected abstract Command
TreeContainerEditPolicy.getCreateCommand
(CreateRequest request) Returns a Command for creating the object inside the container.protected abstract Command
BendpointEditPolicy.getDeleteBendpointCommand
(BendpointRequest request) Implement this method to return a Command that will delete a bendpoint.protected Command
ComponentEditPolicy.getDeleteCommand
(GroupRequest request) Calls and returnsComponentEditPolicy.createDeleteCommand(GroupRequest)
.protected abstract Command
ConnectionEditPolicy.getDeleteCommand
(GroupRequest request) Subclasses should implement to return the Command to delete the connection.protected Command
LayoutEditPolicy.getDeleteDependantCommand
(Request request) Returns theCommand
to delete a child.protected abstract Command
DirectEditPolicy.getDirectEditCommand
(DirectEditRequest request) Returns theCommand
to perform the direct edit.protected abstract Command
BendpointEditPolicy.getMoveBendpointCommand
(BendpointRequest request) Implement this method to return a Command that will move a bendpoint.protected Command
ConstrainedLayoutEditPolicy.getMoveChildrenCommand
(Request request) Returns theCommand
to move a group of children.protected abstract Command
LayoutEditPolicy.getMoveChildrenCommand
(Request request) Returns theCommand
to move a group of children.protected Command
OrderedLayoutEditPolicy.getMoveChildrenCommand
(Request request) A move is interpreted here as a change in order of the children.protected abstract Command
TreeContainerEditPolicy.getMoveChildrenCommand
(ChangeBoundsRequest request) Returns a Command for moving the children within the container.protected Command
NonResizableEditPolicy.getMoveCommand
(ChangeBoundsRequest request) Returns the command contribution to a change bounds request.protected Command
ContainerEditPolicy.getOrphanChildrenCommand
(GroupRequest request) Override to contribute to orphan requests.protected Command
LayoutEditPolicy.getOrphanChildrenCommand
(Request request) Returns theCommand
to orphan a group of children.protected Command
ComponentEditPolicy.getOrphanCommand()
Returns the command contribution for orphaning this component from its container.protected Command
NonResizableEditPolicy.getOrphanCommand
(Request req) Subclasses may override to contribute to the orphan request.protected abstract Command
GraphicalNodeEditPolicy.getReconnectSourceCommand
(ReconnectRequest request) Returns theCommand
to reconnect a connection's source end to the host.protected abstract Command
GraphicalNodeEditPolicy.getReconnectTargetCommand
(ReconnectRequest request) Returns theCommand
to reconnect a connection's target end to the host.protected Command
ConstrainedLayoutEditPolicy.getResizeChildrenCommand
(ChangeBoundsRequest request) Returns theCommand
to resize a group of children.protected Command
ResizableEditPolicy.getResizeCommand
(ChangeBoundsRequest request) Returns the command contribution for the given resize request. -
Uses of Command in org.eclipse.gef.requests
Methods in org.eclipse.gef.requests that return CommandModifier and TypeMethodDescriptionCreateConnectionRequest.getStartCommand()
Returns the start command.Methods in org.eclipse.gef.requests with parameters of type CommandModifier and TypeMethodDescriptionvoid
CreateConnectionRequest.setStartCommand
(Command c) Sets the start command. -
Uses of Command in org.eclipse.gef.rulers
Methods in org.eclipse.gef.rulers that return CommandModifier and TypeMethodDescriptionRulerProvider.getCreateGuideCommand
(int position) Clients should override this method to return a Command to create a new guide at the given position.RulerProvider.getDeleteGuideCommand
(Object guide) Clients should override this method to return a Command to delete the given guide.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 CommandModifier and TypeMethodDescriptionprotected Command
AbstractTool.getCommand()
Returns a new, updated command based on the tool's current properties.protected Command
ConnectionBendpointTracker.getCommand()
Obtains a new command from the connection.protected Command
DragEditPartsTracker.getCommand()
Asks each edit part in theoperation set
to contribute to aCompoundCommand
after first setting the request type to eitherRequestConstants.REQ_MOVE
orRequestConstants.REQ_ORPHAN
, depending on the result ofDragEditPartsTracker.isMove()
.protected Command
ResizeTracker.getCommand()
protected Command
TargetingTool.getCommand()
Queries the target editpart for a command.protected Command
AbstractTool.getCurrentCommand()
Returns the currently cached command.Methods in org.eclipse.gef.tools with parameters of type CommandModifier and TypeMethodDescriptionprotected 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 fromAbstractTool.getCommand()
. -
Uses of Command in org.eclipse.gef.ui.actions
Methods in org.eclipse.gef.ui.actions that return CommandModifier and TypeMethodDescriptionDeleteAction.createDeleteCommand
(List objects) Create a command to remove the selected objects.protected Command
PasteTemplateAction.createPasteCommand()
Creates and returns a command (which may benull
) to create a new EditPart based on the template on the clipboard.Methods in org.eclipse.gef.ui.actions with parameters of type Command -
Uses of Command in org.eclipse.gef.ui.properties
Subclasses of Command in org.eclipse.gef.ui.propertiesModifier and TypeClassDescriptionclass
A command used to set or reset the value of a property.
ConstrainedLayoutEditPolicy.createAddCommand(ChangeBoundsRequest, EditPart, Object)
instead.