Package | Description |
---|---|
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.
|
org.eclipse.gef.ui.properties |
Modifier and Type | Method and Description |
---|---|
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 . |
Modifier and Type | Class and Description |
---|---|
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
|
Modifier and Type | Method and Description |
---|---|
Command |
Command.chain(Command command)
Returns a Command that represents the chaining of a specified Command to
this Command.
|
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 |
CompoundCommand.unwrap()
Returns the simplest form of this Command that is equivalent.
|
Modifier and Type | Method and Description |
---|---|
void |
CompoundCommand.add(Command command)
Adds the specified command if it is not
null . |
Command |
Command.chain(Command command)
Returns a Command that represents the chaining of a specified Command to
this Command.
|
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.
|
Constructor and Description |
---|
CommandStackEvent(CommandStack stack,
Command c,
int detail)
Constructs a new event instance.
|
Modifier and Type | Method and Description |
---|---|
protected Command |
AbstractTransferDropTargetListener.getCommand()
Returns the current command from the target EditPart.
|
Modifier and Type | Method and Description |
---|---|
Command |
GraphicalRootEditPart.getCommand(Request req)
Deprecated.
Returns the unexecutable command.
|
Command |
RootTreeEditPart.getCommand(Request request) |
Command |
AbstractEditPart.getCommand(Request request)
Subclasses should rarely extend this method.
|
Command |
SimpleRootEditPart.getCommand(Request req)
The RootEditPart should never be asked for a command.
|
Modifier and Type | Method and Description |
---|---|
protected Command |
ConstrainedLayoutEditPolicy.createAddCommand(ChangeBoundsRequest request,
EditPart child,
java.lang.Object constraint)
Returns the
Command to perform an Add with the specified
child and constraint. |
protected abstract Command |
OrderedLayoutEditPolicy.createAddCommand(EditPart child,
EditPart after)
Returns the
Command to add the specified child after a
reference EditPart . |
protected Command |
ConstrainedLayoutEditPolicy.createAddCommand(EditPart child,
java.lang.Object constraint)
Deprecated.
|
protected Command |
ConstrainedLayoutEditPolicy.createChangeConstraintCommand(ChangeBoundsRequest request,
EditPart child,
java.lang.Object constraint)
The request is now made available when creating the change constraint
command.
|
protected Command |
ConstrainedLayoutEditPolicy.createChangeConstraintCommand(EditPart child,
java.lang.Object constraint)
Deprecated.
|
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 the
Command to move the specified child before the
given reference EditPart . |
protected abstract Command |
TreeContainerEditPolicy.getAddCommand(ChangeBoundsRequest request)
Returns a Command for adding the children to the container.
|
protected Command |
ContainerEditPolicy.getAddCommand(GroupRequest request)
Override to contribute to add requests.
|
protected Command |
LayoutEditPolicy.getAddCommand(Request request)
Override to return the
Command to perform an
ADD . |
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 |
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.
|
protected Command |
NonResizableEditPolicy.getAlignCommand(AlignmentRequest request)
Returns the command contribution to an alignment request
|
protected Command |
ConstrainedLayoutEditPolicy.getChangeConstraintCommand(ChangeBoundsRequest request)
Returns the
Command for changing bounds for a group of
children. |
protected Command |
LayoutEditPolicy.getCloneCommand(ChangeBoundsRequest request)
Override to contribute to clone requests.
|
protected Command |
ContainerEditPolicy.getCloneCommand(ChangeBoundsRequest request)
Override to contribute to clone requests.
|
Command |
ConnectionEndpointEditPolicy.getCommand(Request request) |
Command |
ComponentEditPolicy.getCommand(Request request)
Factors the incoming Request into ORPHANs and DELETEs.
|
Command |
DirectEditPolicy.getCommand(Request request) |
Command |
ConnectionEditPolicy.getCommand(Request request) |
Command |
TreeContainerEditPolicy.getCommand(Request req) |
Command |
LayoutEditPolicy.getCommand(Request request)
Factors incoming requests into various specific methods.
|
Command |
NonResizableEditPolicy.getCommand(Request request) |
Command |
ContainerEditPolicy.getCommand(Request request)
Overridden to check for add, create, and orphan.
|
Command |
ResizableEditPolicy.getCommand(Request request) |
Command |
AbstractEditPolicy.getCommand(Request request)
Returns
null by default. |
Command |
GraphicalNodeEditPolicy.getCommand(Request request)
Factors the request into one of four abstract methods.
|
Command |
BendpointEditPolicy.getCommand(Request request)
Factors the Request into either a MOVE, a DELETE, or a CREATE of a
bendpoint.
|
Command |
ConstrainedLayoutEditPolicy.getCommand(Request request)
Factors out RESIZE and ALIGN requests, otherwise calls
super
. |
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 |
TreeContainerEditPolicy.getCreateCommand(CreateRequest request)
Returns a Command for creating the object inside the container.
|
protected abstract Command |
LayoutEditPolicy.getCreateCommand(CreateRequest request)
Returns the
Command to perform a create. |
protected abstract Command |
ContainerEditPolicy.getCreateCommand(CreateRequest request)
Clients must implement to contribute to create requests.
|
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 returns
ComponentEditPolicy.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 the
Command to delete a child. |
protected abstract Command |
DirectEditPolicy.getDirectEditCommand(DirectEditRequest request)
Returns the
Command 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 abstract Command |
TreeContainerEditPolicy.getMoveChildrenCommand(ChangeBoundsRequest request)
Returns a Command for moving the children within the container.
|
protected abstract Command |
LayoutEditPolicy.getMoveChildrenCommand(Request request)
Returns the
Command 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 Command |
ConstrainedLayoutEditPolicy.getMoveChildrenCommand(Request request)
Returns the
Command to move a group of children. |
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 the
Command 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 the
Command to reconnect a connection's
source end to the host. |
protected abstract Command |
GraphicalNodeEditPolicy.getReconnectTargetCommand(ReconnectRequest request)
Returns the
Command to reconnect a connection's
target end to the host. |
protected Command |
ConstrainedLayoutEditPolicy.getResizeChildrenCommand(ChangeBoundsRequest request)
Returns the
Command to resize a group of children. |
protected Command |
ResizableEditPolicy.getResizeCommand(ChangeBoundsRequest request)
Returns the command contribution for the given resize request.
|
Modifier and Type | Method and Description |
---|---|
Command |
CreateConnectionRequest.getStartCommand()
Returns the start command.
|
Modifier and Type | Method and Description |
---|---|
void |
CreateConnectionRequest.setStartCommand(Command c)
Sets the start command.
|
Modifier and Type | Method and Description |
---|---|
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(java.lang.Object guide)
Clients should override this method to return a Command to delete the
given guide.
|
Command |
RulerProvider.getMoveGuideCommand(java.lang.Object guide,
int positionDelta)
Clients should override this method to return a Command to move the given
guide by the given amount.
|
Modifier and Type | Method and Description |
---|---|
protected Command |
ConnectionBendpointTracker.getCommand()
Obtains a new command from the connection.
|
protected Command |
TargetingTool.getCommand()
Queries the target editpart for a command.
|
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 |
ResizeTracker.getCommand() |
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.
|
Modifier and Type | Method and Description |
---|---|
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() . |
Modifier and Type | Method and Description |
---|---|
Command |
DeleteAction.createDeleteCommand(java.util.List objects)
Create a command to remove the selected objects.
|
protected Command |
PasteTemplateAction.createPasteCommand()
Creates and returns a command (which may be
null ) to create
a new EditPart based on the template on the clipboard. |
Modifier and Type | Method and Description |
---|---|
protected void |
WorkbenchPartAction.execute(Command command)
Executes the given
Command using the command stack. |
protected java.lang.String |
StackAction.getLabelForCommand(Command command)
Returns the label for the given command.
|
Modifier and Type | Class and Description |
---|---|
class |
SetPropertyValueCommand
A command used to set or reset the value of a property.
|
Copyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.