01: /*
02: * uDig - User Friendly Desktop Internet GIS client
03: * http://udig.refractions.net
04: * (C) 2004, Refractions Research Inc.
05: *
06: * This library is free software; you can redistribute it and/or
07: * modify it under the terms of the GNU Lesser General Public
08: * License as published by the Free Software Foundation;
09: * version 2.1 of the License.
10: *
11: * This library is distributed in the hope that it will be useful,
12: * but WITHOUT ANY WARRANTY; without even the implied warranty of
13: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14: * Lesser General Public License for more details.
15: *
16: */
17: package net.refractions.udig.printing.ui.internal.editor;
18:
19: import net.refractions.udig.printing.model.Page;
20: import net.refractions.udig.project.ui.UDIGEditorInput;
21:
22: import org.eclipse.jface.resource.ImageDescriptor;
23: import org.eclipse.ui.IPersistableElement;
24:
25: /**
26: * Provides for editing of a Page object within uDig
27: * @author Richard Gould
28: * @since 0.3
29: */
30: public class PageEditorInput extends UDIGEditorInput {
31:
32: /**
33: * TODO summary sentence for exists ...
34: *
35: * @see org.eclipse.ui.IEditorInput#exists()
36: * @return
37: */
38: public boolean exists() {
39: return false;
40: }
41:
42: /**
43: * TODO summary sentence for getImageDescriptor ...
44: *
45: * @see org.eclipse.ui.IEditorInput#getImageDescriptor()
46: * @return
47: */
48: public ImageDescriptor getImageDescriptor() {
49: return null;
50: }
51:
52: /**
53: * TODO summary sentence for getPersistable ...
54: *
55: * @see org.eclipse.ui.IEditorInput#getPersistable()
56: * @return
57: */
58: public IPersistableElement getPersistable() {
59: return null;
60: }
61:
62: /**
63: * TODO summary sentence for getToolTipText ...
64: *
65: * @see org.eclipse.ui.IEditorInput#getToolTipText()
66: * @return
67: */
68: public String getToolTipText() {
69: return ((Page) getProjectElement()).getName();
70: }
71:
72: /**
73: * TODO summary sentence for getAdapter ...
74: *
75: * @see org.eclipse.core.runtime.IAdaptable#getAdapter(java.lang.Class)
76: * @param adapter
77: * @return
78: */
79: public Object getAdapter(Class adapter) {
80: return null;
81: }
82:
83: /**
84: * TODO summary sentence for getName ...
85: *
86: * @see org.eclipse.ui.IEditorInput#getName()
87: * @return
88: */
89: public String getName() {
90: return ((Page) getProjectElement()).getName();
91: }
92:
93: }
|