01: /*******************************************************************************
02: * Copyright (c) 2005 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.ui.operations;
11:
12: import org.eclipse.core.commands.operations.IOperationHistory;
13: import org.eclipse.core.commands.operations.IUndoContext;
14:
15: /**
16: * An instance of this interface provides support for managing a
17: * a shared operations history and an shared undo context at the <code>IWorkbench</code>
18: * level.
19: * <p>
20: * This interface is not intended to be extended or implemented by clients.
21: * </p>
22: *
23: * @since 3.1
24: *
25: * @see org.eclipse.ui.IWorkbench#getOperationSupport()
26: */
27: public interface IWorkbenchOperationSupport {
28:
29: /**
30: * Returns the undo context for workbench-wide operations.
31: *
32: * @return the workbench operation context
33: */
34: public IUndoContext getUndoContext();
35:
36: /**
37: * Returns the operation history for the workbench.
38: *
39: * @return the workbench operation history
40: */
41: public IOperationHistory getOperationHistory();
42:
43: }
|