|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.refractions.udig.tools.edit.enablement.ValidToolDetectionActivator
public class ValidToolDetectionActivator
This class detects and warns the user if the current tool can or can't edit the current layer.
Constructor Summary | |
---|---|
ValidToolDetectionActivator(java.lang.Class[] classes)
|
Method Summary | |
---|---|
java.lang.String |
isEnabled(EditToolHandler handler,
MapMouseEvent e,
EventType eventType)
If method returns a String then no other behaviours will be executed and the string will be used as the status bar's Error message. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ValidToolDetectionActivator(java.lang.Class[] classes)
Method Detail |
---|
public java.lang.String isEnabled(EditToolHandler handler, MapMouseEvent e, EventType eventType)
EnablementBehaviour
isEnabled
in interface EnablementBehaviour
handler
- EditToolHandler
for the current toole
- the event that just occurredeventType
- the type of event
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |