| net.refractions.udig.project.ui.internal.tool.ToolContext
All known Subclasses: net.refractions.udig.project.ui.internal.tool.impl.ToolContextImpl,
ToolContext | public interface ToolContext extends IToolContext,AbstractContext(Code) | | A set of tools that is provided to Tool extensions.
In addition to the references available in the Toolkit class, ToolContext provides access to
command factories and and to sendCommand methods.
Responsibilities:
- Provide access to the objects that an extension can use for its operations.
- Provide convenience methods for extension developers to use.
- Provide a consistent interface for extensions which will not easily change in future
versions
author: Jesse since: 0.5 |
getDisplay | Display getDisplay()(Code) | | Returns the default display.
Convenience for Display.getDefault()
the default display. |
getViewportPane | ViewportPane getViewportPane()(Code) | | Casts getDisplay to ViewportPane;
getDisplay cast to ViewportPane |
getWorkbench | IWorkbench getWorkbench()(Code) | | Returns the current workbench.
Convenience for PlatformUI.getWorkbench()
the current workbench. |
log | void log(Plugin currentPlugin, String message, int severity, Throwable exception)(Code) | | Logs an exception to the current plugin.
Parameters: currentPlugin - the plugin that the exception will be logged in. Parameters: message - the message to log Parameters: severity - the severity of the exception. IF null ERROR will be assumed.,, Parameters: exception - the exception to log. Can be null. |
|
|