|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.refractions.udig.project.ui.tool.AbstractActionTool
public abstract class AbstractActionTool
Abstract class for action tools.
Field Summary | |
---|---|
protected IToolContext |
context
Tool context. |
Fields inherited from interface net.refractions.udig.project.ui.tool.Tool |
---|
EDIT, EXTENSION_ID, VIEW |
Constructor Summary | |
---|---|
AbstractActionTool()
|
Method Summary | |
---|---|
void |
addListener(ToolLifecycleListener listener)
Adds listener of tool's lifecycle. |
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 toolContext)
Called each time an eclipse editor is activated. |
void |
setEnabled(boolean enabled)
Sets enablement of the tool. |
void |
setProperty(java.lang.String key,
java.lang.Object value)
Sets the tool's property value by key. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface net.refractions.udig.project.ui.tool.ActionTool |
---|
run |
Methods inherited from interface net.refractions.udig.project.ui.tool.Tool |
---|
dispose |
Field Detail |
---|
protected IToolContext context
Constructor Detail |
---|
public AbstractActionTool()
Method Detail |
---|
public void setContext(IToolContext toolContext)
Tool
setContext
in interface Tool
toolContext
- The tools that the tool can use in its operationsnet.refractions.udig.project.ui.tool.Tool#setContext(net.refractions.udig.project.ui.tool.ToolContext)
public IToolContext getContext()
Tool
getContext
in interface Tool
Tool.getContext()
public java.lang.Object getProperty(java.lang.String key)
Tool
getProperty
in interface Tool
key
- the property key.
net.refractions.udig.project.ui.tool.Tool#getProperty()
public void setProperty(java.lang.String key, java.lang.Object value)
Tool
setProperty
in interface Tool
net.refractions.udig.project.ui.tool.Tool#setProperty()
public boolean isEnabled()
Tool
isEnabled
in interface Tool
public void setEnabled(boolean enabled)
Tool
setEnabled
in interface Tool
public void addListener(ToolLifecycleListener listener)
Tool
addListener
in interface Tool
public void removeListener(ToolLifecycleListener listener)
Tool
removeListener
in interface Tool
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |