Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse Platform
Release 3.5

org.eclipse.ui.operations
Class UndoRedoActionGroup

java.lang.Object
  extended by 

org.eclipse.ui.actions.ActionGroup
      extended by 
org.eclipse.ui.operations.UndoRedoActionGroup

public final class UndoRedoActionGroup
extends ActionGroup

UndoRedoActionGroup provides standard undo and redo action handlers for a workbench part site. It supports filtering of undo or redo on a particular undo context. The undo context can be optionally pruned, which means the context will be flushed actively whenever an invalid operation is found on top of its history. This class may be instantiated by clients.

Since:
3.1

Constructor Summary
UndoRedoActionGroup ( IWorkbenchPartSite site, IUndoContext undoContext, boolean pruneHistory)
          Construct an undo redo action group for the specified workbench part site, using the specified undo context.
 
Method Summary
 void fillActionBars ( IActionBars actionBars)
          Adds the applicable actions to a part's action bars, including setting any global action handlers.
 
Methods inherited from class org.eclipse.ui.actions. ActionGroup
dispose, fillContextMenu, getContext, setContext, updateActionBars
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UndoRedoActionGroup

public UndoRedoActionGroup(
IWorkbenchPartSite site,
                           
IUndoContext undoContext,
                           boolean pruneHistory)
Construct an undo redo action group for the specified workbench part site, using the specified undo context.

Parameters:
site - the workbench part site that is creating the action group
undoContext - the undo context to be used for filtering the operation history
pruneHistory - a boolean that indicates whether the history for the specified context should be pruned whenever an invalid operation is encountered.
Method Detail

fillActionBars

public void fillActionBars(
IActionBars actionBars)
Description copied from class: ActionGroup
Adds the applicable actions to a part's action bars, including setting any global action handlers.

The default implementation does nothing. Subclasses may override or extend this method.

Overrides:
fillActionBars in class ActionGroup
Parameters:
actionBars - the part's action bars

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire