26. editObject
Prev | Chapter 6. Commands written in the Java™ programming language | Next

## 26. editObject

Same as viewObject, except that the helper application is assumed to be an editor instead of a viewer. If this editor is used to modify the object, then the changes are also automatically applied to the document being edited.

Example: let's suppose the element of interest contains an image encoded using base 64 (data type `base64Binary`).

1. This command examines the first bytes of the image and, using this signature, determines which helper application to use.

2. If the helper application cannot be determined (because it has not yet been registered using the Preferences dialog box, Helper Applications section), the user is prompted to specify it.

3. It reads the image data from the element, decodes it and saves it to a temporary file.

4. It starts the image editor passing it the file containing the extracted image.

5. After the user quits the image editor, the command detects whether the extracted image has been modified and, if this is the case, reloads it in the element.

Prev | Up | Next
25. editMenu | Home | 27. editPITarget