public class StopEditing extends Extension implements IExtensionExecuteWithArgs
Constructor and Description |
---|
StopEditing() |
Modifier and Type | Method and Description |
---|---|
int |
confirmStop(FLyrVect layer,
MapControl mapControl)
DOCUMENT ME!
|
void |
execute(String s)
This method is executed when the user clicks on any of the
controls associated with this extension (menus, tools, etc).
|
void |
execute(String s,
Object[] args) |
boolean |
executeSaveLayer(FLyrVect layer)
Show the dialogs to save the layer without ask if don't like to save.
|
IExtensionStatus |
getStatus()
Gets the status of the extension, which may be queried to check
if the extension has some unsaved data or some associated background
tasks.
|
void |
initialize()
Extension's initialization code should be here.
|
boolean |
isEnabled()
This method is invoked by Andami to check whether the extension
(and its associated controls) is enabled or disabled.
|
boolean |
isVisible()
This method is invoked by Andami to check whether the extension
(and its associated controls) is visible or hidden.
|
canQueryByAction, getPlugin, getStatus, getText, isEnabled, isVisible, postInitialize, setPlugin, terminate
public void initialize()
IExtension
initialize
in interface IExtension
IExtension.initialize()
public void execute(String s)
IExtension
execute
in interface IExtension
s
- An String specifying the action to
execute. This is useful when there are different
controls associated with the same extension.public void execute(String s, Object[] args)
execute
in interface IExtensionExecuteWithArgs
execute
in class Extension
public boolean isEnabled()
IExtension
isEnabled
in interface IExtension
IExtension.isEnabled()
public int confirmStop(FLyrVect layer, MapControl mapControl)
public boolean isVisible()
IExtension
isVisible
in interface IExtension
IExtension.isVisible()
public IExtensionStatus getStatus()
IExtension
getStatus
in interface IExtension
getStatus
in class Extension
IExtensionStatus
public boolean executeSaveLayer(FLyrVect layer)
layer
- Layer to save.