How to generate UML from a Java Project on Topcased 2.1 By Thibault Landré
Pre-requisite
• Topcased 2.1 • Java nature applied on your project
Open the package explorer view • Menu « Window » > « Show view » > « Other... » • Then select the « Package Explorer » view
Create a model from the project • Right click on your java project and select « UML from Java »
Fill the wizard • Container : the location
where the *.uml file will be saved
• File name : the name of the *.uml file
• Model name : the name of
the element « Model » (the root container of your model).
Create an umldi from the .uml newly generated • Right click on your « model.uml » and select « UML Model with TOPCASED ».
Create an umldi from the .uml newly generated • Select the container of the first diagram of your umldi file • Select the type of root diagram you want. • It is recommended to uncheck (if check) the check box
« Initialize the diagram with existing model objects » as it may cause trouble during the creation of the umldi file.
Finally ... • You can now create your own diagram by drag and dropping the different elements of your model onto the diagram.
• Note that the reverse also works on a single package of a
java project. For that, select the package instead of the java project when creating a *.uml file.