net.refractions.udig.project.ui.tool
Interface ActionTool

All Superinterfaces:
Tool
All Known Implementing Classes:
AbstractActionTool

public interface ActionTool
extends Tool

A tool that performs an action when the tool button is pressed.

An example is a zoom to extent button. An action button is not modal. Like other tools an action tool should not be instantiated.

Must have a public default constructor.

Since:
0.3
Author:
jeichar
See Also:
AbstractTool, Tool

Field Summary
 
Fields inherited from interface net.refractions.udig.project.ui.tool.Tool
EDIT, EXTENSION_ID, VIEW
 
Method Summary
 void run()
          Called when tool button is pressed.
 
Methods inherited from interface net.refractions.udig.project.ui.tool.Tool
addListener, dispose, getContext, getProperty, isEnabled, removeListener, setContext, setEnabled, setProperty
 

Method Detail

run

void run()
Called when tool button is pressed. If false the tool is set as inactive and deregistered with the component.