|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IOperation
Provides access to members that control Operations.
IOperation is a interface that supports creating custom undo and redo operations in either ArcMap, ArcCatalog or standalone applications. An operation is an action, or group of actions, that may be undone or redone.
By creating a class that implements IOperation, you can use the Do method to execute some action, and then the Undo method to reset the action from the Do method. The Redo method follows this paradigm to support any specialized actions needed for managing the re-application of the Do method.
By implementing your actions within the IOperation interface, you will automatically add them to the application's OperationStack.
Verify the other classes that already implement IOperation, to avoid rewriting functions that already exist.
IOperationStack
Method Summary | |
---|---|
void |
esri_do()
Performs the operation. |
String |
getMenuString()
The menu string. |
boolean |
isCanRedo()
Indicates if the operation can be redone. |
boolean |
isCanUndo()
Indicates if the operation can be undone. |
void |
redo()
Redoes the operation. |
void |
undo()
Undoes the operation. |
Method Detail |
---|
String getMenuString() throws IOException, AutomationException
The MenuString associated with the Operation. This is used by the application framework to populate the Edit menu in ArcMap. For example, adding a layer to ArcMap adds the menu string of the Operation "Undo Add Layers(s)" to the Edit menu.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isCanUndo() throws IOException, AutomationException
CanUndo indicates if the operation can be un-done. Use the property before using the Undo method.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isCanRedo() throws IOException, AutomationException
CanRedo indicates if the operation can be re-done. Use the property before using the Redo method.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void esri_do() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void undo() throws IOException, AutomationException
Undo the operation to reset the action from the Do method. Use the CanUndo property to determine whether the operation can be un-done.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void redo() throws IOException, AutomationException
Redo the operation to redo the action from the Do method. Use the CanRedo property to determine whether the operation can be re-done.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |