|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Tool
The general interface for tools interacting with the Map Editor.
Must have a public default constructor so that the plug-in frame work can instantiate the class.
AbstractTool
Field Summary | |
---|---|
static java.lang.String |
EDIT
Tool category for tools that modify. |
static java.lang.String |
EXTENSION_ID
The extension point id for tools |
static java.lang.String |
VIEW
Tool category for tools that do not modify. |
Method Summary | |
---|---|
void |
addListener(ToolLifecycleListener listener)
Adds listener of tool's lifecycle. |
void |
dispose()
Releases resource, Cursor and image resources possibly. |
IToolContext |
getContext()
Returns the AbstractContext that a tool can use in its operations. |
java.lang.Object |
getProperty(java.lang.String key)
Returns the property of the particular tool implementation. |
boolean |
isEnabled()
Returns enablement statement of the tool. |
void |
removeListener(ToolLifecycleListener listener)
Removes a listener of tool's lifecycle. |
void |
setContext(IToolContext tools)
Called each time an eclipse editor is activated. |
void |
setEnabled(boolean enable)
Sets enablement of the tool. |
void |
setProperty(java.lang.String key,
java.lang.Object value)
Sets the tool's property value by key. |
Field Detail |
---|
static final java.lang.String VIEW
static final java.lang.String EDIT
static final java.lang.String EXTENSION_ID
Method Detail |
---|
void dispose()
void setContext(IToolContext tools)
tools
- The tools that the tool can use in its operationsIToolContext
IToolContext getContext()
IToolContext
java.lang.Object getProperty(java.lang.String key)
key
- the property key.
void setProperty(java.lang.String key, java.lang.Object value)
key
- value
- boolean isEnabled()
void setEnabled(boolean enable)
enable
- void addListener(ToolLifecycleListener listener)
listener
- void removeListener(ToolLifecycleListener listener)
listener
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |