01: /* uDig - User Friendly Desktop Internet GIS client
02: * http://udig.refractions.net
03: * (C) 2004, Refractions Research Inc.
04: *
05: * This library is free software; you can redistribute it and/or
06: * modify it under the terms of the GNU Lesser General Public
07: * License as published by the Free Software Foundation;
08: * version 2.1 of the License.
09: *
10: * This library is distributed in the hope that it will be useful,
11: * but WITHOUT ANY WARRANTY; without even the implied warranty of
12: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13: * Lesser General Public License for more details.
14: */
15: package net.refractions.udig.project.ui.tool;
16:
17: import java.util.Set;
18:
19: import net.refractions.udig.project.IMap;
20:
21: import org.eclipse.jface.viewers.ISelectionChangedListener;
22: import org.eclipse.jface.viewers.ISelectionProvider;
23: import org.eclipse.ui.IEditorPart;
24:
25: /**
26: * Modal tools are responsible for providing the selection for the MapEditor. In order to do so they
27: * must provide a IMapEditorSelectionProvider that will provide the selection for a given map.
28: *
29: * @author Jesse
30: * @since 1.1.0
31: */
32: public interface IMapEditorSelectionProvider extends ISelectionProvider {
33: public void setActiveMap(IMap map, IEditorPart editor);
34:
35: public Set<ISelectionChangedListener> getListeners();
36: }
|