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.gefMethods in org.eclipse.gef that return CommandModifier and TypeMethodDescriptionEditPart.getCommand(Request request) Returns theCommandto perform the specified Request ornull.EditPolicy.getCommand(Request request) Returns theCommandcontribution for the givenRequest, ornull.
- 
Uses of Command in org.eclipse.gef.commandsSubclasses of Command in org.eclipse.gef.commandsModifier and TypeClassDescriptionclassAn aggregation of multipleCommands.classA CompoundCommand that performs undo on its contained Commands in the same order in which they were executed.final classA 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()Returnsnullor 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 TypeMethodDescriptionvoidAdds the specified command if it is notnull.Returns a Command that represents the chaining of a specified Command to this Command.voidExecutes the specified Command if possible.protected voidCommandStack.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.dndMethods in org.eclipse.gef.dnd that return CommandModifier and TypeMethodDescriptionprotected CommandAbstractTransferDropTargetListener.getCommand()Returns the current command from the target EditPart.
- 
Uses of Command in org.eclipse.gef.editpartsMethods 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.editpoliciesMethods in org.eclipse.gef.editpolicies that return CommandModifier and TypeMethodDescriptionprotected CommandConstrainedLayoutEditPolicy.createAddCommand(EditPart child, Object constraint) Deprecated.protected CommandConstrainedLayoutEditPolicy.createAddCommand(ChangeBoundsRequest request, EditPart child, Object constraint) Returns theCommandto perform an Add with the specified child and constraint.protected abstract CommandOrderedLayoutEditPolicy.createAddCommand(EditPart child, EditPart after) Returns theCommandto add the specified child after a referenceEditPart.protected CommandConstrainedLayoutEditPolicy.createChangeConstraintCommand(EditPart child, Object constraint) Deprecated.protected CommandConstrainedLayoutEditPolicy.createChangeConstraintCommand(ChangeBoundsRequest request, EditPart child, Object constraint) The request is now made available when creating the change constraint command.protected CommandComponentEditPolicy.createDeleteCommand(GroupRequest deleteRequest) Override to contribute to the component's being deleted.protected CommandRootComponentEditPolicy.createDeleteCommand(GroupRequest request) Overridden to prevent the host from being deleted.protected abstract CommandOrderedLayoutEditPolicy.createMoveChildCommand(EditPart child, EditPart after) Returns theCommandto move the specified child before the given referenceEditPart.protected CommandConstrainedLayoutEditPolicy.getAddCommand(Request generic) OverridesgetAddCommand()to generate the proper constraint for each child being added.protected CommandContainerEditPolicy.getAddCommand(GroupRequest request) Override to contribute to add requests.protected CommandLayoutEditPolicy.getAddCommand(Request request) Override to return theCommandto perform anADD.protected CommandOrderedLayoutEditPolicy.getAddCommand(Request req) This method is overridden from the superclass to calculate the index at which the children should be added.protected abstract CommandTreeContainerEditPolicy.getAddCommand(ChangeBoundsRequest request) Returns a Command for adding the children to the container.protected CommandConstrainedLayoutEditPolicy.getAlignChildrenCommand(AlignmentRequest request) Returns the command to align a group of children.protected CommandNonResizableEditPolicy.getAlignCommand(AlignmentRequest request) Returns the command contribution to an alignment requestprotected CommandConstrainedLayoutEditPolicy.getChangeConstraintCommand(ChangeBoundsRequest request) Returns theCommandfor changing bounds for a group of children.protected CommandContainerEditPolicy.getCloneCommand(ChangeBoundsRequest request) Override to contribute to clone requests.protected CommandLayoutEditPolicy.getCloneCommand(ChangeBoundsRequest request) Override to contribute to clone requests.AbstractEditPolicy.getCommand(Request request) Returnsnullby 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 CommandGraphicalNodeEditPolicy.getConnectionCompleteCommand(CreateConnectionRequest request) Returns the Command that will create the connection.protected abstract CommandGraphicalNodeEditPolicy.getConnectionCreateCommand(CreateConnectionRequest request) Returns the command that represents the first half of creating a connection.protected abstract CommandBendpointEditPolicy.getCreateBendpointCommand(BendpointRequest request) Implement this method to return a Command that will create a bendpoint.protected abstract CommandContainerEditPolicy.getCreateCommand(CreateRequest request) Clients must implement to contribute to create requests.protected abstract CommandLayoutEditPolicy.getCreateCommand(CreateRequest request) Returns theCommandto perform a create.protected abstract CommandTreeContainerEditPolicy.getCreateCommand(CreateRequest request) Returns a Command for creating the object inside the container.protected abstract CommandBendpointEditPolicy.getDeleteBendpointCommand(BendpointRequest request) Implement this method to return a Command that will delete a bendpoint.protected CommandComponentEditPolicy.getDeleteCommand(GroupRequest request) Calls and returnsComponentEditPolicy.createDeleteCommand(GroupRequest).protected abstract CommandConnectionEditPolicy.getDeleteCommand(GroupRequest request) Subclasses should implement to return the Command to delete the connection.protected CommandLayoutEditPolicy.getDeleteDependantCommand(Request request) Returns theCommandto delete a child.protected abstract CommandDirectEditPolicy.getDirectEditCommand(DirectEditRequest request) Returns theCommandto perform the direct edit.protected abstract CommandBendpointEditPolicy.getMoveBendpointCommand(BendpointRequest request) Implement this method to return a Command that will move a bendpoint.protected CommandConstrainedLayoutEditPolicy.getMoveChildrenCommand(Request request) Returns theCommandto move a group of children.protected abstract CommandLayoutEditPolicy.getMoveChildrenCommand(Request request) Returns theCommandto move a group of children.protected CommandOrderedLayoutEditPolicy.getMoveChildrenCommand(Request request) A move is interpreted here as a change in order of the children.protected abstract CommandTreeContainerEditPolicy.getMoveChildrenCommand(ChangeBoundsRequest request) Returns a Command for moving the children within the container.protected CommandNonResizableEditPolicy.getMoveCommand(ChangeBoundsRequest request) Returns the command contribution to a change bounds request.protected CommandContainerEditPolicy.getOrphanChildrenCommand(GroupRequest request) Override to contribute to orphan requests.protected CommandLayoutEditPolicy.getOrphanChildrenCommand(Request request) Returns theCommandto orphan a group of children.protected CommandComponentEditPolicy.getOrphanCommand()Returns the command contribution for orphaning this component from its container.protected CommandNonResizableEditPolicy.getOrphanCommand(Request req) Subclasses may override to contribute to the orphan request.protected abstract CommandGraphicalNodeEditPolicy.getReconnectSourceCommand(ReconnectRequest request) Returns theCommandto reconnect a connection's source end to the host.protected abstract CommandGraphicalNodeEditPolicy.getReconnectTargetCommand(ReconnectRequest request) Returns theCommandto reconnect a connection's target end to the host.protected CommandConstrainedLayoutEditPolicy.getResizeChildrenCommand(ChangeBoundsRequest request) Returns theCommandto resize a group of children.protected CommandResizableEditPolicy.getResizeCommand(ChangeBoundsRequest request) Returns the command contribution for the given resize request.
- 
Uses of Command in org.eclipse.gef.requestsMethods 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 TypeMethodDescriptionvoidCreateConnectionRequest.setStartCommand(Command c) Sets the start command.
- 
Uses of Command in org.eclipse.gef.rulersMethods 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.toolsMethods in org.eclipse.gef.tools that return CommandModifier and TypeMethodDescriptionprotected CommandAbstractTool.getCommand()Returns a new, updated command based on the tool's current properties.protected CommandConnectionBendpointTracker.getCommand()Obtains a new command from the connection.protected CommandDragEditPartsTracker.getCommand()Asks each edit part in theoperation setto contribute to aCompoundCommandafter first setting the request type to eitherRequestConstants.REQ_MOVEorRequestConstants.REQ_ORPHAN, depending on the result ofDragEditPartsTracker.isMove().protected CommandResizeTracker.getCommand()protected CommandTargetingTool.getCommand()Queries the target editpart for a command.protected CommandAbstractTool.getCurrentCommand()Returns the currently cached command.Methods in org.eclipse.gef.tools with parameters of type CommandModifier and TypeMethodDescriptionprotected voidAbstractTool.executeCommand(Command command) Executes the given command on the command stack.protected voidAbstractTool.setCurrentCommand(Command c) Used to cache a command obtained fromAbstractTool.getCommand().
- 
Uses of Command in org.eclipse.gef.ui.actionsMethods in org.eclipse.gef.ui.actions that return CommandModifier and TypeMethodDescriptionDeleteAction.createDeleteCommand(List<EditPart> objects) Create a command to remove the selected EditParts.protected CommandPasteTemplateAction.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.propertiesSubclasses of Command in org.eclipse.gef.ui.propertiesModifier and TypeClassDescriptionclassA command used to set or reset the value of a property.
ConstrainedLayoutEditPolicy.createAddCommand(ChangeBoundsRequest, EditPart, Object)instead.