01: package net.refractions.udig.project.ui.tool;
02:
03: import org.eclipse.jface.action.SubCoolBarManager;
04: import org.eclipse.ui.IActionBars;
05:
06: /**
07: * Constants that are often used when defining tool extensions or creating tool extensions. Some of
08: * the constants are the well known tool category ids.
09: *
10: * @author jones
11: */
12: public interface ToolConstants {
13: public static final String ZOOM_CA = "net.refractions.udig.tool.category.zoom"; //$NON-NLS-1$
14: public static final String RENDER_CA = "net.refractions.udig.tool.category.render"; //$NON-NLS-1$
15: public static final String PAN_CA = "net.refractions.udig.tool.category.pan"; //$NON-NLS-1$
16: public static final String SELECTION_CA = "net.refractions.udig.tool.category.selection"; //$NON-NLS-1$
17: public static final String INFO_CA = "net.refractions.udig.tool.category.info"; //$NON-NLS-1$
18: public static final String EDIT_CA = "net.refractions.udig.tool.category.edit"; //$NON-NLS-1$
19:
20: /**
21: * Key for default tool cursor ID.
22: *
23: * @see net.refractions.udig.project.ui.tool.Tool#getProperty()
24: * @see net.refractions.udig.project.ui.tool.Tool#setProperty()
25: */
26: public static final String DEFAULT_CURSOR_ID_KEY = "defaultCursorId"; //$NON-NLS-1$
27:
28: /**
29: * The ID of the action tools toolbar contribution item.
30: * <p>
31: * The contribution item is an instance of <code>org.eclipse.jface.action.ToolBarContributionItem</code>
32: * to be used in cool bar managers.
33: * <p>
34: * @see IToolManager.contributeToCoolBar( SubCoolBarManager cbmanager, IActionBars bars )
35: */
36: public static final String ACTION_TOOLBAR_ID = "net.refractions.udig.tool.actionToolBar"; //$NON-NLS-1$
37:
38: /**
39: * The ID of the modal tools toolbar contribution item.
40: */
41: public static final String MODAL_TOOLBAR_ID = "net.refractions.udig.tool.modalToolBar"; //$NON-NLS-1$
42: }
|