|
The following instructions assume that classes exist in the project,
but that there is no UML diagram yet.
-
Click the "Synchronize" button on the speed
button panel above the Solution Explorer (or any of the Explorer
pages).
- Be sure it is the synchronize button that is
visible, as the visible button reflects the last button
used. You may need to pull down the drop list to find the
Synchronize button.
- Right-clicking the project and selecting
"Synchronize" also works.
-
The initial synchronization
takes a long time, so be patient, watch the progress bar and
don't do anything until everything is complete.
-
The results of the initial synchronization
should be:
- The creation of a [project name].mdx
(model) file, which should be open, but blank.
-
A new pane next
to the Solution Explorer, called the Model Explorer -- this pane will
probably be the one that is selected.
-
To show
your existing classes on the diagram (model)
-
Open your .mdx file, which is probably blank
at this point.
-
Select the Model Explorer.
- Expand the item labelled with your project name. You
should see items called "Artifacts", "References", "Main" and
"{ } project name" below it.
- Expand the item labelled "{ } project
name". You should see all your existing classes below
it.
- Drag the classes you'd like to display on the diagram onto the
diagram.
- To show a class that is part of a referenced assembly, such as an
existing class's superclass might be, browse through the referenced
namespaces in the Model Explorer until you find the desired
class. Then drag it onto the
diagram. As some of these classes can have a
large number of operations and attributes, so you may want to hide some
of them--see the instructions below.
Hiding or displaying attributes or operations of
a class on a diagram
To display or hide various attributes
(fields) or operations (methods), of a class, right click the class
on the UML diagram and select "Select Compartment
Items...". A dialog box will appear that will enable you
to add or remove items from the diagram.
|