public class WorkspaceUndoUtil extends Object
Modifier and Type | Method and Description |
---|---|
static IUndoContext |
getBookmarksUndoContext()
Return the undo context that should be used for operations involving
bookmarks.
|
static IUndoContext |
getProblemsUndoContext()
Return the undo context that should be used for operations involving
problems.
|
static Shell |
getShell(IAdaptable uiInfo)
Return the shell described by the specified adaptable, or the active
shell if no shell has been specified in the adaptable.
|
static IUndoContext |
getTasksUndoContext()
Return the undo context that should be used for operations involving
tasks.
|
static IAdaptable |
getUIInfoAdapter(Shell shell)
Make an
IAdaptable that adapts to the specified shell,
suitable for passing for passing to any
IUndoableOperation or
IOperationHistory method
that requires an IAdaptable
uiInfo parameter. |
static IUndoContext |
getWorkspaceUndoContext()
Return the undo context that should be used for workspace-wide operations
|
public static IUndoContext getWorkspaceUndoContext()
public static IUndoContext getTasksUndoContext()
public static IUndoContext getBookmarksUndoContext()
public static IUndoContext getProblemsUndoContext()
public static IAdaptable getUIInfoAdapter(Shell shell)
IAdaptable
that adapts to the specified shell,
suitable for passing for passing to any
IUndoableOperation
or
IOperationHistory
method
that requires an IAdaptable
uiInfo
parameter.shell
- the shell that should be returned by the IAdaptable when asked
to adapt a shell. If this parameter is null
,
the returned shell will also be null
.public static Shell getShell(IAdaptable uiInfo)
uiInfo
- the IAdaptable (or null
) provided by the
caller in order to supply UI information for prompting the
user if necessary. When this parameter is not
null
, it contains an adapter for the
org.eclipse.swt.widgets.Shell.class
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.