Using Pramati Design Viewer with Studio
Overview
Pramati Studio can be integrated with Pramati DesignViewerTM which supports visualization of all J2EE applications including Struts that are built on Model 2 Architecture. You can open a Pramati DesignViewer model archive file .pmar or the application itself from inside Studio. The supported file types for opening and exporting are:
- Enterprise Archive (EAR)
- Web Archive (WAR)
- Enterprise JavaBean Archive (EJB-JAR)
- Pramati Model Archive (PMAR)
Pramati DesignViewer provides semantically richer images and abstraction for a better and non-cluttered visualization. High fidelity between the source and the model and a high level view of J2EE applications enable indepth analysis of a project. You can use pluggable tools like Annote for project review and presentation. As DesignViewer provides a J2EE-specific representation of the application rather than an universal representation, the semantic information is not lost due to abstraction.
Advantages of using Viewer with Studio
The advantages of using Viewer with Studio are:
- Viewing package level information
- Tracking the component flow inside J2EE Applications
- Annote tool to insert comments or annotation for a selected node
- Impact analysis on removing an archive component
- Export project as .csv and view as a table and Print option to print the view as is. This enables:
- Discussing application design among fellow developers/reviewers
- Reviewing work distribution among developers
Tool bars
The horizontal and vertical tool bars enable quick operation for changing the view, zoom and layout options. The vertical toolbar comprises of:
The horizontal tool bar comprises of:
- Zoom options
- Panning to Cell option
- Previous/Next options
- Overview option
Installing DesignViewer and configuring in Studio
Install DesignViewer on the host machine; use JDK 1.3 or above. To start working with Viewer in Studio:
- Open Studio and select Tools > Configure from the main menu to open the Configure panel.
- Select DesignViewer Tool from the Tools list and close dialog.
- In the new dialog, enter the location where DesignViewer is installed.
- To view the details of an archive, Right click on the EJB or web module root, or on the EAR, JAR, or WAR files. Select the Show Design option. This opens the diagramatic representation for the selected file or module.
Viewing design for a file
To view details of a file or archive, open it in Studio. For example, to view the details for a JAR, open OrderBook. Right click on orderApp.jar and select Show Design.
Click Finish. It displays the following details in the DesignViewer:
Note 1: The PMAR file does not get updated when the application is modified and the model may not always show the right components in an archive. Model file is just for persisting the data temporarily and will not be in sync with the application.
Note 2: Opening a PMAR file is faster than opening an archive. Opening the application archive gives an updated view of the application than opening the model file.