Professional Documents
Culture Documents
version 9.5
user’s guide
No Magic, Inc.
April, 2005
CONTENTS 0
1 Integration with Eclipse/WSAD 1-5
Installation 1-5
System requirements 1-5
Automatic MagicDraw installation into Eclipse 1-5
Manual MagicDraw Installation into Eclipse 1-6
MagicDraw and Eclipse integration functionality 1-7
Integration properties 1-7
Opening MagicDraw project from Eclipse 1-9
Updating the UML model 1-9
Selecting a class in the MagicDraw browser 1-12
Adding a class to the Eclipse project 1-12
Synchronization between MagicDraw and Eclipse 1-12
Going to class source 1-13
Eclipse integration and Teamwork 1-13
Libraries visualization 1-13
Known Eclipse problems 1-13
Menu system for UML modeling in NetBeans (Sun Java Studio) 3-29
UML Modeling Toolbar Configuration 3-30
MagicDraw Toolbar 3-30
Known Sun Java Studio/Netbeans problems 3-31
Integration Tool Error Messages 3-31
Wrong Forte4J Home Directory 3-31
Wrong MagicDraw UML Home Directory 3-31
Unknown OS 3-32
MagicDraw UML module not found 3-32
Cannot set CLASSPATH 3-32
I NSTALLATION
System requirements
Eclipse 2.0 or later, WebSphere Studio Application Developer 5.x, IBM Rational
Application Developer 6.0.
Does not work with motif library on Unix, but works fine with gtk.
Does not work on Mac OS X.
If you do not wish to change directories, click the Integrate button in the
MagicDraw UML Integration Tool dialog box.
Example:
install.root=C\:\\Program Files\\MagicDraw UML
or
install.root=C:/Program Files/MagicDraw UML
Integration properties
Specify the MagicDraw and Eclipse integration properties in the Properties dialog
box.
• Select a java source file (or several files) in the Eclipse project browser. Open
the shortcut menu and select Update UML Model:
• Open the java source in the Eclipse editor window. From the MagicDraw
menu, select Update UML Model:
Since version 9.5 you may choose attributes or associations you want to create in
MagicDraw for attributes created in Eclipse. This option you may also define in the
Integration Properties dialog box.
You may define choose synchronization mode in the Integration Properties dialog
box or from the Integration menu in MagicDraw.
Libraries visualization
Since version 9.5, libraries that are used in Eclipse can be referenced in
MagicDraw models. On lib, in Eclipse, choose Update UML Model. Created
model package in MagicDraw will be marked with stereotype <<topLevel>>.
In the Integration Properties dialog box, you may choose what you want to create
- just classes in model without attributes and methods (default), or together with
attributes and methods (option Create class members for libraries).
I NTEGRATION P ROCESS
Step 1:
Go to <MagicDraw UML installation directory>/integrations/JBuilder and start
the install program. The tool will ask you to specify the JBuilder and MagicDraw
installation directories.
Step 2:
Start JBuilder as usual. If the integration process has been successful, the
MagicDraw application will start automatically, together with the JBuilder
application.
NOTE: The MagicDraw user interface does not integrate directly into the
JBuilder IDE interface. MagicDraw commands are found in a
separate user interface, the same interface that you would find if
Example
addpath C:/Program Files/MagicDraw UML/lib/patch.jar
Use '/' as file separator.
5 Launch JBuilder.
To go from the java class source to the class in the MagicDraw browser
From either the JBuilder project browser or the JBuilder editor
window shortcut menu, choose Select in MagicDraw.
• Open the java source in the JBuilder editor window. Open the
editor shortcut menu and select Update UML Model:
Adding a class to the JBuilder project from the MagicDraw UML model
There are four ways to add a class into the JBuilder project from the MagicDraw
project:
• From the class in the MagicDraw browser shortcut menu, click
Update JBuilder. The class source will be generated into the java
source file and this file will be added to the JBuilder project.
• From the package in the MagicDraw browser shortcut menu, click
Update JBuilder. All classes from this package will be added into
the JBuilder project.
3
JAVA STUDIO AND
NETBEANS
then go to the end of this line and add the following string: ";"
(quotes should be skipped)
For information on working with the UML Data Browser, see the MagicDraw
User’s Manual, Section 2.5 “Browser.”
The UML Modeling Workspace contains a UML Data Properties window with
three tabs: Documentation, Search, and Zoom. For more information, see
MagicDraw User’s Manual, Section 2.5 “Browser.”
When the diagram is opened, it is placed into the UML Modeling Window as a
separate tab.
MagicDraw Toolbar
This toolbar contains common actions used while working with MagicDraw.
Button Function
Class Diagrams Create new Class diagram
Use Case Diagrams Create new Use Case diagram.
Collaboration Diagrams Create new Collaboration diagram.
Sequence Diagrams Create new Sequence diagram.
State Diagrams Create new State diagram.
Activity Diagrams Create new Activity diagram.
Implementation Create new Implementation diagram
Diagrams
Previous diagram Activates the previously opened diagram.
Next diagram Activates the next diagram.
Fit In Window Fits diagram in active window
Zoom In Zoom in active diagram.
Unknown OS
I NSTALLATION
System Requirements
IntelliJ IDEA 4.x.
NOTE When Java constructions are being used, there might be several
problems when using IntelliJ 4.5 integration with MagicDraw 8.0.
In the IntelliJ IDEA Home Directory field, specify the directory where the IntelliJ
IDEA config file is located. For example: C:\Documents and Settings\<user
name>\.IntelliJIdea
If you do not wish to change directories, click the Integrate button in the
MagicDraw UML Integration Tool dialog box.
home>\plugins\com.nomagic.magicdraw.integration\lib),
overriding encountered files in archive.
8 Launch IntelliJ IDEA.
• Open the java source in the IntelliJ IDEA editor window. Open
shortcut menu and select Update UML Model:
Dialog contains listed available source directories in IntelliJ IDEA project. Classes
from model will be placed in to the selected directory. If Show this dialog next
time is deselected, all classes will be created in to previously selected directory.
Show this dialog next time can be enabled in Integration Properties dialog with
property Show Select Source Directory Dialog.
Integration Properties
Integration options dialog can be opened from MagicDraw Options menu,
selecting Integration Properties
I NSTALLATION
System Requirements
BEA WebLogic Workshop 8.1.2
If you do not wish to change directories, click the Integrate button in the
MagicDraw UML Integration Tool dialog box.
Integration Properties
Integration options dialog can be opened from MagicDraw Options menu,
selecting Integration Properties
Unnamed Enter a name of the model element to generate in the source code in
Element instances when a model element within your model does not yet have a
Name name attached to it.
(is not
implemented
yet)
Unnamed Enter a name of the type to generate in the source code in instances
Type Name when attributes, operations, or parameters do not yet have a type in your
(is not model. If an attribute without a type exists in a model, then, after adding
implemented the class of this attribute into the BEA WebLogic Workshop project, an
yet) attribute with int type will be generated in the source code.
Synchronize Enables to save MagicDraw project, on every IntelliJ IDEA workspace
Model Saving saving (on focus lost, according to IBEA WebLogic Workshop save
with IDE options,… ). If option is deselected, MagicDraw project is saved on
MagicDraw save action and on closing BEA WebLogic Workshop
project.
Update
Model Step After specified number of files is parsed, model is updated. Default
Size number of files is 100.
Update Saving Source Updates model on BEA WebLogic Workshop source
Model on … File file save
Manual Update Updates model on manual user action Update UML
Model
System Requirements
CaliberRM 6.5
IMPORTANT Caliber integration works only with MagicDraw standalone. If
MagicDraw is run from any IDE, integration won’t work.
• From the Tools main menu, choose CaliberRM, and then Login.
NOTE: In the Server text box, type the name of your computer in net, and to
login to the server as administrator, in the Login and Password text
box, type admin.
3 Select the Caliber Requirement tab and click the ‘...’ button. The
Select Requirement dialog box appears.
Information about element, requirement project and requirement name, and also
description of requirement is displayed in this window.
Buttons available in the CaliberRM Requirement window:
Select in Containment Tree - selects element in MagicDraw Browser,
Containment Tree.
Select In CaliberRM - launches CaliberRM client and selects requirement, added
to element.
Refresh - updates the list of elements, if new requirement was added to element in
the model.
2 Click Yes. The Integration with CaliberRM Web Viewer dialog box
appears:
3 Select the viewer home directory and click OK. The Logon dialog
box appears. Type Host, User name and Password for login to
Caliber Viewer. Click Logon.
G ETTING S TARTED
1 Define CVS properties in the CVS pane of the Environment
Options dialog box.
2 Make sure that the module you are working with is checked out
through MagicDraw or using some other program. For detailed
instructions on how to check out a module in MagicDraw, see
Section “Checkout module” on page 7-54.
NOTES: You can add, update, or commit projects to CVS only if they are
saved in a checked out directory or subdirectory.
The Command line runs in a local folder, which is specified in the
Environment Options dialog box. In order for the Command Line to
find CVSROOT, the Local Folder must be checked out and must
have a CVS subdirectory.
CVS PROPERTIES
Define CVS Properties in the CVS pane of the Environment Options dialog box:
1 From the Options menu, choose Environment. The Environment
Options dialog box appears.
Command Function
Add Project to In every instance where you save, a newly created project is
CVS After Saving added to CVS in the checked out directory to CVS. The Add
Project to CVS dialog box appears.
Commit Project Commits the project to CVS after saving it. The Commit Project
to CVS After to CVS dialog box appears.
Saving
Update Project Updates the project that is added to CVS while loading. The
from CVS Before Update Project dialog box appears.
Loading
Location of The path where the .cvspass is located. You may enter it here, or
.cvspass choose the path from the Open dialog box.
Local Folder The path where the module will be saved during the checkout
action. You may enter it here, or choose the path from the Open
dialog box.
C HECKOUT MODULE
Use this option to checkout a new module on your disk.
From the Tools menu, select CVS. Then select Checkout Module. The Checkout
Module dialog box appears.
Command Function
CVS Root Shows CVSROOT variable and provides all previously typed
CVS Root variables. You must enter the complete path of the
module on the server: It should be something like:
:pserver:martina@cvs.nomagic.com:/projects/CVS
Module name Enter the module name and path on the server.
Local Folder The path indicating where the CVS files will be saved locally in
the disk. Enter the path, or select any directory by clicking the
“…” button.
Prune Empty Automatically removes empty folders when you update a
directories [-P] module. NOTE: The sign for the options is listed in the
brackets at the end of the check box name.
Reset sticky tags [-A] Checks out only the last project version.
Non-recursive [-I] Does not check out subdirectories.
A DD A P ROJECT TO CVS
1 Create a new MagicDraw project.
2 Save it into the currently checked out directory.
3 From the Tools menu, select CVS and then select Add. The Add
Project to CVS dialog box appears.
NOTE:
2 From the Tools menu, select CVS. Then select Commit Project to
CVS. The Commit Project to CVS dialog box appears.
U PDATE PROJECT
Update your project when you receive a message indicating a new project
version exists on the server.
From the Tools menu, choose CVS. Then choose Update CVS Project. The
Update CVS Project dialog box appears.
Option Function
Reset sticky tags Update to the last version of the project located on the server.
[-A]
Retrieve Type the tag or version number you want to change to.
rev./tag/branch
You may click the “…” button and choose the desired project version from the
Revisions dialog box.