Note: This method for editing code using the Eclipse editor
is for the Rational® Rhapsody® Platform
Integration of Eclipse.
To display generated code for a specific element in the code
editor
Procedure
In the model browser, right-click an item
and select Edit Code to launch the corresponding
source code in the Eclipse code editor.
On the Eclipse code editor, highlight any
items of interest and right-click to display the editing menu.
To launch the Eclipse code editor from a diagram element
Procedure
Open the diagram.
Right-click an item in the diagram and select Edit
Code.
The Eclipse code editor opens.
If you are editing code and need to see an item in
the project, typically in the model browser:
Highlight the item in the code.
Right-click and select Show in and
then select one of the options. The option listed on this submenu
are controlled by the type of project displayed. For example, this
option list is for a C++ project:
Model Browser
C/C++Projects
Outline
Navigator
To see the code automatically for a selected model element
Procedure
Click the Link with Editor button located at the
top of the Eclipse model browser.
Click an item in the model browser and notice
that the code for the item is immediately displayed and highlighted
in the Eclipse code editor.