|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IToolContext
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:
Method Summary | |
---|---|
IToolContext |
copy()
|
IActionBars2 |
getActionBars()
Gets an instance of the ActionsBars from the current editor or null if there is no editor open. |
BasicCommandFactory |
getBasicCommandFactory()
Returns a BasicCommandFactory. |
DrawCommandFactory |
getDrawFactory()
Returns a DrawCommandFactory. |
EditCommandFactory |
getEditFactory()
Returns a EditCommandFactory. |
NavigationCommandFactory |
getNavigationFactory()
Deprecated. Please use navigation commands directly |
SelectionCommandFactory |
getSelectionFactory()
Returns a SelectionCommandFactory. |
IStatusLineManager |
getStatusBar()
Deprecated. use getActionBars().getStatusLineManager() |
ViewportPane |
getViewportPane()
Casts getDisplay to ViewportPane; |
void |
sendASyncCommand(Command command)
Dispatches a command. |
void |
sendSyncCommand(Command command)
Dispatches a command and blocks until the command has executed. |
void |
updateUI(java.lang.Runnable runnable)
Run a code block in the UI thread. |
Method Detail |
---|
ViewportPane getViewportPane()
ViewportPane
DrawCommandFactory getDrawFactory()
DrawCommandFactory
EditCommandFactory getEditFactory()
EditCommandFactory
NavigationCommandFactory getNavigationFactory()
NavigationCommandFactory
SelectionCommandFactory getSelectionFactory()
BasicCommandFactory getBasicCommandFactory()
void sendASyncCommand(Command command)
command
- The command to execute.MapCommand
void sendSyncCommand(Command command)
command
- The command to execute.MapCommand
IStatusLineManager getStatusBar()
IActionBars2 getActionBars()
void updateUI(java.lang.Runnable runnable)
runnable
- the code block to execute in the ui thread.IToolContext copy()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |