1
/*******************************************************************************
2
* Copyright (C) 2003-2013, Guillaume Brocker
4
* All rights reserved. This program and the accompanying materials
5
* are made available under the terms of the Eclipse Public License v1.0
6
* which accompanies this distribution, and is available at
7
* http://www.eclipse.org/legal/epl-v10.html
10
* Guillaume Brocker - Initial API and implementation
12
******************************************************************************/
14
package eclox.ui.editor;
16
import org.eclipse.ui.IMemento;
17
import org.eclipse.ui.INavigationLocation;
18
import org.eclipse.ui.NavigationLocation;
21
* Implements the navigation location used for the doxyfile editor.
23
* @author Guillaume Brocker
25
public class Location extends NavigationLocation {
27
private final String PAGE_KEY = "page";
28
private final String SETTING_KEY = "setting";
31
private String setting;
33
public Location( Editor editor ) {
36
this.page = editor.getActivePageInstance().getId();
39
public boolean mergeInto(INavigationLocation currentLocation) {
40
// TODO Auto-generated method stub
44
public void restoreLocation() {
45
// TODO Auto-generated method stub
49
public void restoreState(IMemento memento) {
50
page = memento.getString(PAGE_KEY);
51
setting = memento.getString(SETTING_KEY);
54
public void saveState(IMemento memento) {
55
memento.putString(PAGE_KEY, page);
56
memento.putString(SETTING_KEY, setting);
59
public void update() {
60
// TODO Auto-generated method stub