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.project.ui;
18:
19: import net.refractions.udig.project.ui.tool.IToolContext;
20:
21: import org.eclipse.ui.IViewPart;
22: import org.geotools.feature.Feature;
23:
24: /**
25: * A View that will have a ToolContext object set each time an editor changes. If the current editor
26: * is not a map editor the the context will be null otherwise it will be a context that will operate
27: * against the map contained by the map editor.
28: *
29: * @author jeichar
30: * @since 0.9.0
31: */
32: public interface IUDIGView extends IViewPart {
33: /**
34: * Sets the current context object
35: */
36: void setContext(IToolContext newContext);
37:
38: /**
39: * Returns the current context object
40: *
41: * @return the current context object
42: */
43: IToolContext getContext();
44:
45: /**
46: * Called when the the current edit feature changes.
47: *
48: * @param feature
49: */
50: void editFeatureChanged(Feature feature);
51:
52: }
|