Oxygen XML Editor offers full support for managing ID/IDREFS through the search and
refactor actions available in the contextual menu. In Text mode, these
actions are available in the Quick Assist menu as well.
The search and refactor actions from the contextual menu are grouped in the
Manage
IDs section:
- Rename in
- Renames the ID and all its occurrences. Selecting this action opens the
Rename XML ID dialog. This dialog lets you insert the new ID
value and choose the scope of the rename
operation. For a preview of the changes you are about to make, click
Preview. This opens the Preview dialog,
which presents a list with the files that contain changes and a preview zone of these
changes.
- Rename in File
- Renames the ID you are editing and all its occurrences from the current file.
Note: Available in the Text mode only.
- Search References in
- Searches for the references of the ID. Selecting this action opens the Select the scope for the Search and
Refactor operations.
- Search References
- Searches for the references of the ID. By default, the scope of this action is the
current project. In case you configure a scope using the Select the scope for the Search and
Refactor operations dialog, this scope will be used instead.
- Search Declarations in
- Searches for the declaration of the ID reference. Selecting this action opens the
Select the scope for the Search and
Refactor operations.
- Search Declarations
- Searches for the declaration of the ID reference. By default, the scope of this action
is the current project. In case you configure a scope using the Select the scope for the Search and
Refactor operations dialog, this scope will be used instead.
- Search Occurrences in file
- Searches for the declaration an references of the ID in the current document.
Note: A quick way to navigate to the declaration of an ID in Text mode is
to move the cursor over an ID reference and use the Ctrl Click (Command Click on OS
X) navigation.
Selecting an ID for which you execute search or refactor operations differs from the
Text mode to the Author mode. In the
Text mode you position the caret inside the declaration or reference
of an ID. In the Author mode Oxygen XML Editor collects all the
IDs by analyzing each element from the path to the root. In case more IDs are available, you
are prompted to choose one of them.
Figure: Selecting an ID in the Author Mode