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.tool;
18:
19: import org.eclipse.core.commands.IHandler;
20:
21: /**
22: * A custom command handler.
23: * <p>
24: * Must have a public default constructor so that the plugin frame work can instantiate the class.
25: * </p>
26: *
27: * @see net.refractions.udig.project.ui.tool.AbstractToolCommandHandler
28: * @author jeichar
29: * @since 0.6.0
30: * @see IHandler
31: */
32: public interface IToolHandler extends IHandler {
33:
34: /**
35: * Called before any of the IHandler methods are called.
36: *
37: * @param tool
38: */
39: void setTool(Tool tool);
40:
41: /**
42: * Called before any of the IHandler methods are called.
43: *
44: * @param currentCommandId
45: */
46: void setCurrentCommandId(String currentCommandId);
47: }
|