01: /*******************************************************************************
02: * Copyright (c) 2000, 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;
11:
12: /**
13: * A local working set manager can be used to manage a set of
14: * working sets independently from the working sets managed by
15: * the global working set manager. A local working set manager
16: * can be saved and restored using the methods <code>saveState</code>
17: * and <code>restoreState</code>. A new local working set manager can be created
18: * using {@link org.eclipse.ui.IWorkbench#createLocalWorkingSetManager()}.
19: * Clients of local working set managers are responsible for calling
20: * {@link IWorkingSetManager#dispose()} when the working sets it manages
21: * are no longer needed.
22: * <p>
23: * This interface is not intended to be implemented or extended by clients.
24: * </p>
25: *
26: * @see org.eclipse.ui.IWorkbench#createLocalWorkingSetManager()
27: * @since 3.1
28: */
29: public interface ILocalWorkingSetManager extends IWorkingSetManager {
30:
31: /**
32: * Saves the state of the working set manager to the given
33: * memento.
34: *
35: * @param memento the memento to save the state to
36: */
37: public void saveState(IMemento memento);
38:
39: /**
40: * Restores the state of the working set manager from the given
41: * memento. The method can only be called as long as the working
42: * set manager is still empty.
43: *
44: * @param memento the memento to restore the state from
45: */
46: public void restoreState(IMemento memento);
47: }
|