01: /*******************************************************************************
02: * Copyright (c) 2000, 2006 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: * Should be implemented by editors that wish to contribute to the
14: * navigation history. The message <code>createNavigationLocation</code>
15: * will be sent when a new location is marked in the history.
16: *
17: * @since 2.1
18: */
19: public interface INavigationLocationProvider {
20: /**
21: * Creates an empty navigation location. The message <code>restoreState</code>
22: * will be sent to the location to restore its state.
23: *
24: * @return INavigationLocation
25: */
26: public INavigationLocation createEmptyNavigationLocation();
27:
28: /**
29: * Creates a navigation location describing the current state.
30: *
31: * @return INavigationLocation
32: */
33: public INavigationLocation createNavigationLocation();
34: }
|