Related Save-/Close Action

A variety of edit scenarios can be modeled. Editing can take place locally or remotely. With local editing, all changes are stored locally and are only written back to the remote system when the user explicitly requests this. When editing on the remote system, all changes are written back to the remote system immediately when saving or closing the editor.

An edit action can be extended by a Related_Save_Action and/or Related_Close_Action. The Save action is carried out every time there is a request to save the file. The Close action is carried out when the editor is closed (this also happens when closing Eclipse).

Note: If an output dialog is modeled in a save action, you cannot open the content of the output dialog in the editor after closing the output dialog. The following error message is displayed:
The resource tree is locked for modifications.

Save actions which imply changes to the workspace should be modelled with an execution mode of modeless.