org.eclipse.ui.ide.undo |
Package-level Javadoc
APIs that provide undo and redo behavior for operations that manipulate
the workspace.
Package Specification
This package contains APIs for the Eclipse Platform User Interface that
support the undo and redo of operations that manipulate the workspace.
Undoable operations that create, delete, move, and copy resources are
provided.
The typical usage pattern is that a client creates one of the concrete operations
and executes it using the platform operation history. For example, the following
snippet deletes the project "Blort" without deleting its contents, and adds it
to the operation history so that it can be undone and redone.
IProject project = getWorkspace().getRoot().getProject("Blort");
// assume that getMonitor() returns a suitable progress monitor
project.create(getMonitor());
project.open(getMonitor());
DeleteResourcesOperation op = new DeleteResourcesOperation(
new IResource[] { project }, "Delete Project Blort", false);
PlatformUI.getWorkbench().getOperationSupport()
.getOperationHistory().execute(operation, getMonitor(), null);
|
Java Source File Name | Type | Comment |
AbstractCopyOrMoveResourcesOperation.java | Class | An AbstractCopyOrMoveResourcesOperation represents an undoable operation for
moving or copying one or more resources in the workspace. |
AbstractCreateResourcesOperation.java | Class | A CreateResourcesOperation represents an undoable operation for creating
resources in the workspace. |
AbstractMarkersOperation.java | Class | An AbstractMarkersOperation represents an undoable operation that affects
markers on a resource. |
AbstractResourcesOperation.java | Class | An AbstractResourcesOperation represents an undoable operation that
manipulates resources. |
AbstractWorkspaceOperation.java | Class | An AbstractWorkspaceOperation represents an undoable operation that affects
the workspace. |
CopyProjectOperation.java | Class | A CopyProjectOperation represents an undoable operation for copying a
project, also specifying the location of its contents. |
CopyResourcesOperation.java | Class | A CopyResourcesOperation represents an undoable operation for copying one or
more resources in the workspace. |
CreateFileOperation.java | Class | A CreateFileOperation represents an undoable operation for creating a file in
the workspace. |
CreateFolderOperation.java | Class | A CreateFolderOperation represents an undoable operation for creating a
folder in the workspace. |
CreateMarkersOperation.java | Class | A CreateMarkersOperation represents an undoable operation for creating one or
more markers on one or more resources in the workspace. |
CreateProjectOperation.java | Class | A CreateProjectOperation represents an undoable operation for creating a
project in the workspace. |
DeleteMarkersOperation.java | Class | A DeleteMarkersOperation represents an undoable operation for deleting one or
more markers in the workspace. |
DeleteResourcesOperation.java | Class | A DeleteResourcesOperation represents an undoable operation for deleting one
or more resources in the workspace. |
MoveProjectOperation.java | Class | A MoveProjectOperation represents an undoable operation for moving a
project's content to a different location. |
MoveResourcesOperation.java | Class | A MoveResourcesOperation represents an undoable operation for moving one or
more resources in the workspace. |
ResourceDescription.java | Class | ResourceDescription is a lightweight description that describes the common
attributes of a resource to be created. |
UpdateMarkersOperation.java | Class | An UpdateMarkersOperation represents an undoable operation for updating one
or more markers in the workspace with one or more sets of attributes. |
WorkspaceUndoUtil.java | Class | WorkspaceUndoUtil defines common utility methods and constants used by
clients who create undoable workspace operations. |