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.legend.ui.actions;
16:
17: import net.refractions.udig.legend.ui.LegendGraphic;
18: import net.refractions.udig.mapgraphic.AbstractToggleMapGraphicAction;
19:
20: import org.eclipse.ui.IWorkbenchWindow;
21: import org.eclipse.ui.IWorkbenchWindowActionDelegate;
22:
23: /**
24: * Adds or removes legend layers to/from a map
25: * @author Jesse
26: * @since 1.1.0
27: */
28: public class LegendAction extends AbstractToggleMapGraphicAction
29: implements IWorkbenchWindowActionDelegate {
30:
31: protected Class<LegendGraphic> getMapGraphicClass() {
32: return LegendGraphic.class;
33: }
34:
35: protected String getExtensionID() {
36: return "legend"; //$NON-NLS-1$
37: }
38:
39: public void init(IWorkbenchWindow window) {
40: }
41:
42: }
|