SDE for Eclipse UML CASE Tool Tutorial - Interoperability of Eclipse UML Tool |
With SDE's interoperability with tools like XMI and Rational Rose, you can import/export your works to/from the SDE with minimal effort. Besides, templates and plug-ins allows you to extend the features of SDE even further.
In this chapter:
Importing/Exporting XMI
Importing from Rose
Using Plug-in
Using Template
1. Start Eclipse/IBM WSAD®, then select the File menu > Import... to import the sample project.
2. Select Existing Project into Workspace, then click Next > to continue.
3. Click Browse... to select the "SchoolForInteroperability" sample project folder, then click Finish to import the project.
4. Select the Window menu > Open Perspective > Java to open the Java perspective.
5. Right-click on the SchoolForInteroperability project node inside the Package Explorer and select Open UML Model from the popup menu to start SDE.
6. Select the Modeling menu > Import from XMI....
7. When the Import XMI dialog box appears, browse for the XMI file "SchoolForInteroperability.xmi" in the project folder by clicking on the ... button. After that, click OK to continue.
8. The diagrams and model elements are imported into the project. Let's open the diagram "School Class Diagram" and have a glance.
9. The model elements as described in the XMI file are now imported into the project.
10. You may also export the UML project to an XMI file so that you can port your design work to other modeling tools as well. Just select the Modeling menu > Export to XMI....
11. When the Export XMI dialog box appears, enter "C:\ECProjects\School.xmi" in Output Path and select the option XMI 1.1 for UML 1.3 (Unisys Extension, Recommended for export to Rose). After that, click OK to continue.
12. Now you can import the XMI file to other CASE tools.
|
To see the interactive tutorial of this section, please click here.
|
1. Start Eclipse/IBM WSAD®, then select the File menu > Import... to import the sample project.
2. Select Existing Project into Workspace, then click Next > to continue.
3. Click Browse... to select the "SchoolForInteroperability" sample project folder, then click Finish to import the project.
4. Select the Window menu > Open Perspective > Java to open the Java perspective.
5. Right-click on the SchoolForInteroperability project node inside the Package Explorer and select Open UML Model from the popup menu to start SDE.
6. Select the Modeling menu > Import from Rose.
7. In the Import Rose Option dialog box, browse the "School.mdl" Rose project file in the project folder by clicking on the ... button. After that, click OK to import the project.
8. The diagrams and model elements are imported into the project. Let's open the imported diagrams and have a glance.
|
To see the interactive tutorial of this section, please click here.
|
1. Start Eclipse/IBM WSAD®, then select the File menu > Import... to import the sample project.
2. Select Existing Project into Workspace, then click Next > to continue.
3. Click Browse... to select the "SchoolForPluginTemplate" sample project folder, then click Finish to import the project.
4. Select the Window menu > Open Perspective > Java to open the Java perspective.
5. Right-click on the SchoolForPluginTemplate project node inside the Package Explorer and select Open UML Model from the popup menu to start SDE.
6. Select the Modeling menu > Plug-in > Configure... to import plug-in.
7. When the Plug-in Manage Dialog appears, click Import to browse for the plug-in file.
8. In the Open dialog box, navigate to the project folder and select the file "GenerateCPPPlugin.jar", the information and description of the plug-in are displayed on the right-hand-side of the dialog box. Just click on the Open button to import the plug-in.
9. Click OK in the Plug-in Manage Dialog to close it.
10. Select the Modeling menu > Plug-in > Execute... to select a plug-in to execute.
11. When the Execute Plug-in Dialog appears, select the plug-in Generate C++ Plug-in and then click on the Execute button to execute it.
12. The VP-UML Plug-in dialog box will appear. Enter "C:\ECProjects\C++ Files" in Output Path and then click OK to generate the C++ files.
13. The C++ source files will be generated for the classes in the project.
|
To see the interactive tutorial of this section, please click here.
|
1. Start Eclipse/IBM WSAD®, then select the File menu > Import... to import the sample project.
2. Select Existing Project into Workspace, then click Next > to continue.
3. Click Browse... to select the "SchoolForPluginTemplate" sample project folder, then click Finish to import the project.
4. Select the Window menu > Open Perspective > Java to open the Java perspective.
5. Right-click on the SchoolForPluginTemplate project node inside the Package Explorer and select Open UML Model from the popup menu to start SDE.
6. Select the Modeling menu > Template > Configure... to import template.
7. When the Template Manage Dialog box appears, click Import to select the template file.
8. When the Open dialog box appears, navigate to the project folder and select the file "UseCaseSchedulingTemplate.jar", the information and description of the template is displayed on the right-hand-side of the dialog box. Just click Open to import the template.
9. Click OK in the Template Manage Dialog to close it.
10. Select the Modeling menu > Template > Execute... to select a template to execute.
11. When the Execute Template Dialog appears, select the template Use Case Scheduling and then click Execute to execute it.
12. When the Save dialog box appears, enter "C:\ECProjects\UseCaseScheduling.html" in File name, then click Save to generate the use case scheduling web page.
13. The use case scheduling of the project will be generated in HTML format.
|
To see the interactive tutorial of this section, please click here.
|
|
To work out the tutorial by yourself, you can use the sample projects provided. Please click here to get the sample projects and the interactive tutorials.
|
Patents pending. All rights reserved. |