Home > Diagrams > Class Diagram

Navigation

Different navigations are possible using EclipseUML.
You can either decide to use Dynamic or Static navigation.

  1. Dynamique navigation will use the same Class Diagram as a viewer of the UML Superstructure Model and will refresh the UML Editor after each model query.
  2. Static navigation will create a new diagram for each view.
We recommend to use both dynamic and static navigations inside the same project because each navigation concept is used at different modeling stages.

1. Dynamic Navigation

Dynamic navigation is available using:




See a dynamic navigation example at: http://www.forum-omondo.com/documentation_eclipseuml_2008/eclipseuml2008_dynamic_navigation.html

2. Static Navigation

Static navigation is available using:

 

1. Navigation from a Class

1.1 To a Class-Centric Diagram

Navigation from a class to a class-centric diagram is available with 4 options :

Select a class or an interface, open the popup menu and select Open>Inheritance explorer


The default Inheritance explorer diagram display the immediate (level 1) inheritance environment of the selected class or interface.

 



The default Association explorer diagram display the immediate (level 1) associations environment of the selected class or interface.



The default Dependency explorer diagram display the immediate (level 1) dependencies environment's of the selected class or interface.

 

 

Open new class diagram and navigate within a Scope (package, project, all) and from -1 (infinite) to n levels
Select a class or an interface, open the popup menu and select Open>Create/open class diagram



Associations, interfaces and/or dependencies can be displayed in the diagram through the Wire automation option.

The diagram scope can be selected through the Scope option. Three options are available :




The diagram level can be selected through the Level option.

Here are some examples :

Level -1 will analyze at infinite level and will then show all classes (Class A....Class D)

 



If you select an element, n level from the selected element will be displayed.
 
When working on large project, it is not recommended to create a diagram with scope "all" and level -1 which would be a full project diagram (the process could be heavy).
 
After selecting the option, a class selection dialog appears :


The expected diagram id created :


 

 

1.2 To a State Diagram

You can navigate from a class or an interface to a State diagram.
Select a class or interface, open the popup menu : State diagram editor

 

 

1.3 To a Sequence or Collaboration Diagram

You can navigate from a method to a Sequence/collaboration diagram.
Select a method, open the popup menu : Generate sequence diagram



Select a method, open the popup menu : Generate collaboration diagram.


 

2. Navigation from a Package

2.1 To a Package-Centric Diagram

Select a package, open the popup menu : Open>Package dependency explorer

The default package dependency explorer focus on the selected package and only display its immediate outgoing dependencies environment's.

 

 

2.2 To a Class Diagram

The navigation is the opportunity to browse several UML model. You can access this functionality through the contextual menu on a package.



The selected diagram appears in a new tab.