KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > ui > operations > IWorkbenchOperationSupport


1 /*******************************************************************************
2  * Copyright (c) 2005 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11
12 package org.eclipse.ui.operations;
13
14 import org.eclipse.core.commands.operations.IOperationHistory;
15 import org.eclipse.core.commands.operations.IUndoContext;
16
17 /**
18  * An instance of this interface provides support for managing a
19  * a shared operations history and an shared undo context at the <code>IWorkbench</code>
20  * level.
21  * <p>
22  * This interface is not intended to be extended or implemented by clients.
23  * </p>
24  *
25  * @since 3.1
26  *
27  * @see org.eclipse.ui.IWorkbench#getOperationSupport()
28  */

29 public interface IWorkbenchOperationSupport {
30
31     /**
32      * Returns the undo context for workbench-wide operations.
33      *
34      * @return the workbench operation context
35      */

36     public IUndoContext getUndoContext();
37
38     /**
39      * Returns the operation history for the workbench.
40      *
41      * @return the workbench operation history
42      */

43     public IOperationHistory getOperationHistory();
44
45 }
46
Popular Tags