vpuml integration guide
TRANSCRIPT
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 1/108
VP-UML IDE Integration User’s Guide
0 - 1
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 2/108
VP-UML IDE Integration User’s Guide (Part 1)
0 - 2
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 3/108
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 4/108
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 5/108
VP-UML IDE Integration User’s Guide (Part 1)
Table of Contents
Chapter 1 – Integration with Eclipse/WSAD.................... ...................... ...................... ...................... ..................... ...................... ................. 2
Overview ..................... ...................... ...................... ...................... ...................... .................... ...................... ...................... ...................... .. 2
Installation...................................................................................................................................................................................................3
Creating a VP-UML Project in Eclipse .................... ...................... ...................... ...................... ...................... ...................... ..................... 4
Opening a VP-UML Project from Eclipse...................................................................................................................................................6
Reverse Engineering from Code to Model ...................... ...................... ....................... ...................... ...................... ...................... ............. 7
Project Based Reverse Engineering ..................... ....................... ...................... ....................... ..................... ...................... ............. 7
Package Based Reverse Engineering ....................... ...................... ....................... ...................... ..................... ....................... ......... 7
Class Based Reverse Engineering....................................................................................................................................................8
Selecting Corresponding Elements in VP-UML from Eclipse ...................... ...................... ....................... ..................... ...................... ...... 9
Code Generation from Model to Code.......................................................................................................................................................10
Project Based Code Generation .................... ...................... ....................... ...................... ..................... ....................... .................. 11
Package Based Code Generation ...................... ....................... ...................... ....................... .................... ...................... ............... 11
Class Based Code Generation ..................... ...................... ....................... ...................... ................... ....................... ...................... 11
Selecting Corresponding Elements in Eclipse from VP-UML ....................... ...................... ....................... .................... ...................... .... 12
Importing a VP-UML Project into Eclipse ...................... ....................... ...................... ..................... ....................... ....................... .......... 13
Exporting a VP-UML Project from Eclipse....... ...................... ....................... ...................... ..................... ...................... ....................... ... 14
Model Representation of Code ...................... ...................... ....................... ...................... ...................... ...................... ....................... ...... 15
Chapter 2 – Integration with NetBeans/Sun™ ONE ...................... ...................... ...................... ..................... ...................... ...................... ... 2
Overview ..................... ...................... ...................... ...................... ...................... .................... ...................... ...................... ...................... .. 2
Installation...................................................................................................................................................................................................3
Creating a VP-UML Project in NetBeans....................................................................................................................................................4
Opening a VP-UML Project from NetBeans .................... ...................... ...................... ...................... ..................... ...................... .............. 6
Reverse Engineering from Code to Model ...................... ...................... ....................... ...................... ...................... ...................... ............. 6
Project Based Reverse Engineering ..................... ....................... ...................... ....................... ..................... ...................... ............. 7
Package Based Reverse Engineering ....................... ...................... ....................... ...................... ..................... ....................... ......... 7
Class Based Reverse Engineering....................................................................................................................................................8Selecting Corresponding Elements in VP-UML from NetBeans. ...................... ...................... ...................... ..................... ...................... ... 9
Code Generation from Model to Code.......................................................................................................................................................11
Project Based Code Generation .................... ...................... ....................... ...................... ..................... ....................... .................. 11
Package Based Code Generation ...................... ....................... ...................... ....................... .................... ...................... ............... 11
Class Based Code Generation ..................... ...................... ....................... ...................... ................... ....................... ...................... 12
Selecting Corresponding Elements in NetBeans from VP-UML.... ....................... ...................... ...................... ..................... ................... 12
Importing a VP-UML Project into NetBeans ...................... ....................... ...................... ..................... ....................... ...................... ....... 13
Exporting a VP-UML Project from NetBeans ..................... ....................... ...................... ..................... ....................... ...................... ....... 15
Model Representation of Code ...................... ...................... ....................... ...................... ...................... ...................... ....................... ...... 16
Chapter 3 – Integration with JBuilder.............................................................................................................................................................2
Overview ..................... ...................... ...................... ...................... ...................... .................... ...................... ...................... ...................... .. 2
Installation...................................................................................................................................................................................................3
Creating a VP-UML Project in JBuilder......................................................................................................................................................4
Opening a VP-UML Project from JBuilder ...................... ...................... ...................... ...................... ..................... ...................... .............. 6
Reverse Engineering from Code to Model ...................... ...................... ....................... ...................... ...................... ...................... ............. 6
Project Based Reverse Engineering ..................... ....................... ...................... ....................... ..................... ...................... ............. 6
Package Based Reverse Engineering ....................... ...................... ....................... ...................... ..................... ....................... ......... 7
Class Based Reverse Engineering....................................................................................................................................................7
Selecting Corresponding Elements in VP-UML from JBuilder...... ...................... ...................... ...................... ...................... ..................... 8
Code Generation from Model to Code............... ...................... ...................... ...................... ...................... ...................... ...................... ...... 9
Project Based Code Generation .................... ...................... ....................... ...................... ..................... ....................... .................... 9Package Based Code Generation ...................... ....................... ...................... ....................... .................... ...................... ............... 10
Class Based Code Generation ..................... ...................... ....................... ...................... ................... ....................... ...................... 10
Selecting Corresponding Elements in JBuilder from VP-UML...... ....................... ....................... .................... ...................... ................... 11
0 - 5
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 6/108
VP-UML IDE Integration User’s Guide (Part 1)
Importing a VP-UML Project into JBuilder...............................................................................................................................................12
Exporting a VP-UML Project from JBuilder .................... ...................... ....................... ...................... ...................... ....................... .........14
Model Representation of Code...................................................................................................................................................................15
Chapter 4 – Integration with IntelliJ IDEA™.................................................................................................................................................2
Overview......................................................................................................................................................................................................2
Installation .................... ...................... ....................... ...................... ....................... ................... ...................... ....................... .....................3
Creating a VP-UML Project in IntelliJ IDEA .................... ....................... ...................... ..................... ...................... ....................... ...........4
Opening a VP-UML Project from IntelliJ IDEA..........................................................................................................................................6
Reverse Engineering from Code to Model...................................................................................................................................................7
Project Based Reverse Engineering..................................................................................................................................................7
Package Based Reverse Engineering................................................................................................................................................7
Class Based Reverse Engineering ...................... ....................... ...................... ....................... .................... ....................... ...............8
Selecting Corresponding Elements in VP-UML from IntelliJ IDEA...................... ....................... ........................ ...................... ................8
Code Generation from Model to Code .................... ...................... ...................... ...................... ...................... ...................... ...................... .9
Project Based Code Generation......................................................................................................................................................10
Package Based Code Generation....................................................................................................................................................10
Class Based Code Generation ...................... ....................... ...................... ....................... ................... ...................... .....................10
Selecting Corresponding Elements in IntelliJ IDEA from VP-UML..................... ...................... ...................... ...................... ..................11
Importing a VP-UML Project into IntelliJ IDEA.......................................................................................................................................12
Exporting a VP-UML Project from IntelliJ IDEA ................... ....................... ....................... ..................... ....................... ...................... ..13
Model Representation of Code...................................................................................................................................................................14
Chapter 5 – Integration with JDeveloper.........................................................................................................................................................2
Overview......................................................................................................................................................................................................2
Installation .................... ...................... ....................... ...................... ....................... ................... ...................... ....................... .....................3
Creating a VP-UML Project in JDeveloper..................................................................................................................................................4
Opening a VP-UML Project from JDeveloper.............................................................................................................................................6
Reverse Engineering from Code to Model...................................................................................................................................................6
Project Based Reverse Engineering..................................................................................................................................................7
Package Based Reverse Engineering................................................................................................................................................7Class Based Reverse Engineering ...................... ...................... ....................... ....................... .................... ....................... ...............8
Selecting Corresponding Elements in VP-UML from JDeveloper...............................................................................................................8
Code Generation from Model to Code .................... ...................... ...................... ...................... ...................... ...................... ...................... .9
Project Based Code Generation......................................................................................................................................................10
Package Based Code Generation....................................................................................................................................................10
Class Based Code Generation ...................... ....................... ...................... ....................... ................... ...................... .....................10
Selecting Corresponding Elements in JDeveloper from VP-UML.............................................................................................................11
Importing a VP-UML Project into JDeveloper ..................... ...................... ....................... ..................... ....................... ....................... .....12
Exporting a VP-UML Project from JDeveloper.........................................................................................................................................13
Model Representation of Code...................................................................................................................................................................14
Chapter 6 – Integration with WebLogic Workshop™....................................................................................................................................2
Overview......................................................................................................................................................................................................2
Installation .................... ...................... ....................... ....................... ...................... ................... ....................... ...................... .....................3
Creating a VP-UML Project in WebLogic Workshop™..............................................................................................................................4
Opening a VP-UML Project from WebLogic Workshop™.........................................................................................................................6
Reverse Engineering from Code to Model...................................................................................................................................................7
Project Based Reverse Engineering..................................................................................................................................................7
Package Based Reverse Engineering................................................................................................................................................7
Class Based Reverse Engineering ...................... ....................... ...................... ....................... .................... ....................... ...............8
Selecting Corresponding Elements in VP-UML from WebLogic Workshop™...........................................................................................8
Code Generation from Model to Code ..................... ...................... ...................... ...................... ..................... ...................... ...................... .9Project Based Code Generation......................................................................................................................................................10
Package Based Code Generation....................................................................................................................................................10
Class Based Code Generation ...................... ....................... ...................... ....................... ................... ...................... .....................10
0 - 6
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 7/108
VP-UML IDE Integration User’s Guide (Part 1)
Selecting Corresponding Elements in WebLogic Workshop™ from VP-UML ..................... ....................... ..................... ....................... 11
Importing a VP-UML Project into WebLogic Workshop™..................... ....................... ...................... ...................... ...................... ........ 12
Exporting a VP-UML Project from WebLogic Workshop™ ....................... ...................... ....................... ..................... ....................... .... 14
Model Representation of Code ...................... ...................... ....................... ...................... ...................... ...................... ....................... ...... 15
0 - 7
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 8/108
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 9/108
1Integration with Eclipse/WSAD
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 10/108
VP-UML IDE Integration User’s Guide Chapter 1 – Integration with Eclipse/WSAD
Chapter 1 – Integration with Eclipse/WSAD
Overview
VP-UML Professional and Enterprise Edition allows you to integrate the VP-UML module with Eclipse or WSAD, providingfull software development life cycle support. By designing your software system in VP-UML, you can generate programmingsource code from class diagram to an Eclipse project. Also, you can reverse engineer your source code into class models inVP-UML.
1- 2
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 11/108
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 12/108
VP-UML IDE Integration User’s Guide Chapter 1 – Integration with Eclipse/WSAD
8. Click Finish to close the dialog box when the installation is completed.
You can install Eclipse Integration only on a “clean” copy of Eclipse. A clean copy of Eclipse is one which has noother kinds of integration such as SDE for Eclipse and DB-VA for Eclipse installed.
Eclipse Integration can only be installed on ONE Eclipse directory only. The next time you start the VP-Suitedialog from VP-UML you will see the option Eclipse/WebSphere Studio Integration is selected.
Creating a VP-UML Project in Eclipse
To create a VP-UML Project in Eclipse:
1. Start Eclipse.
2. Select the Eclipse project for which you want to create a VP-UML project for it.
3. Right-click on the selected project and choose VP-UML Project > New Project from popup menu.
1- 4
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 13/108
VP-UML IDE Integration User’s Guide Chapter 1 – Integration with Eclipse/WSAD
This displays the Project Structure dialog box.
4. Select from the Project Structure dialog box the location of the VP-UML project is to be saved. The VP-UML project,with .vpp extension, is the UML project file that is going to be associated with the selected Eclipse project file. SelectCreate in default path result in saving the VP-UML project to %Eclipse_Project_Directory%/vpproject while selectingCreate at external location require you to specify the project path.
5.
Click OK .This starts a new instance of VP-UML on a separate window. The project opened from VP-UML is associated with the Eclipseproject.
1- 5
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 14/108
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 15/108
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 16/108
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 17/108
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 18/108
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 19/108
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 20/108
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 21/108
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 22/108
VP-UML IDE Integration User’s Guide Chapter 1 – Integration with Eclipse/WSAD
4. Locate the file path of the source VP-UML project. The source project is the one that is going to be imported into theselected Eclipse project. If there is an existing VP-UML project associated with the selected Eclipse project, the targetproject path is the path of the existing VP-UML project. If there is no existing VP-UML project associated with theselected Eclipse project, the path is the default one, which is %Eclipse_Project_Directory%/vpproject.
5. Click OK .
This starts a new instance of VP-UML on a separate window. The project opened from VP-UML is the imported one which isnow associated with the Eclipse project.
Exporting a VP-UML Project from Eclipse
You can export the VP-UML project that is associated with an Eclipse project. The exported VP-UML project has noassociation with both the Eclipse project and the VP-UML project it exported from.
Before exporting a VP-UML project, you must open the UML model of the desired project. More information about how toopen a VP-UML from Eclipse can be found from the section Opening a VP-UML Project from Eclipse in this Chapter.
To export a VP-UML project:
1. Select the Eclipse project for which you want to export the VP-UML associated with it.
2. Right-click on the selected project and choose VP-UML Project > Export from popup menu.
1- 14
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 23/108
VP-UML IDE Integration User’s Guide Chapter 1 – Integration with Eclipse/WSAD
This displays the Save As dialog box.
3. Locate the project file path for the output project.
4. Click Save .
The VP-UML project is exported to the specified location.
Model Representation of Code
The following table shows some of the model representation of code.
Model Code
Class public class MyClass
{
}
Abstract Class public abstract class MyClass
{
}
Attribute
Instance Scope public class MyClass
{ private Integer intValue;
1- 15
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 24/108
VP-UML IDE Integration User’s Guide Chapter 1 – Integration with Eclipse/WSAD
}
classifier Scope public class MyClass {
private static Integer intValue;
}
Operation
Instance Scope public class MyClass
{
private Integer intValue;
public integer getIntValue()
{
}
}
Classifier Scope public class MyClass
{
private static Integer intValue;
public static Integer getIntValue()
{
}
}
Package package Package;
Containment package Package;
public class MyClass
{
}
Inner Class public class OuterClass
{
class InnerClass
{
}
}
1- 16
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 25/108
VP-UML IDE Integration User’s Guide Chapter 1 – Integration with Eclipse/WSAD
Generalization public class MyClass extends OtherClass
{
}
Realization public class MyClass implements MyInterface
{
}
Association public class MyClass {
Otherclass otherClass;
}
1- 17
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 26/108
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 27/108
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 28/108
VP-UML IDE Integration User’s Guide Chapter 2 – Integration with NetBeans/Sun™ ONE
Chapter 2 – Integration with NetBeans/Sun™ ONE
Overview
VP-UML Professional and Enterprise Edition allows you to integrate the VP-UML module with NetBeans, providing fullsoftware development life cycle support. By designing your software system in VP-UML, you can generate programmingsource code from class diagram to a NetBeans project. Also, you can reverse engineer your source code into class models inVP-UML.
2- 2
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 29/108
VP-UML IDE Integration User’s Guide Chapter 2 – Integration with NetBeans/Sun™ ONE
Installation
First of all, please make sure your machine has NetBeans IDE 4.0 or above / Sun™ ONE Studio 5 or above properly installed.
To install NetBeans Integration from VP-UML:
1. Start VP-UML
2. Select Tools > IDE Integration… from the main menu of VP-UML.
3. This displays the VP-Suite dialog box.
4. Check NetBeans / Sun ONE Integration .
5. Click Next . This displays the Product Configuration page.
6. Locate the NetBeans home directory in the Directory field. You can enter the path directly in the text field, or press … toselect the directory from the Open dialog box.
7. Click Next . This displays the Installing Files page and starts the installation process.
2- 3
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 30/108
VP-UML IDE Integration User’s Guide Chapter 2 – Integration with NetBeans/Sun™ ONE
8. Click Finish to close the dialog box when the installation is completed.
You can install NetBeans Integration only on a “clean” copy of NetBeans. A clean copy of NetBeans is one whichhas no other kinds of integration such as SDE for NetBeans and DB-VA for NetBeans installed.
NetBeans Integration can only be installed on ONE NetBeans directory only. The next time you start theVP-Suite dialog from VP-UML you will see the option NetBeans/Sun ONE Integration is selected.
Creating a VP-UML Project in NetBeans
To create a VP-UML Project in NetBeans:
1. Start NetBeans.
2. Select the NetBeans project for which you want to create a VP-UML project for it.3. Right-click on the selected project and choose Tools > Visual Paradigm for UML %EDITION% > New VP-UML
%EDITION% Project from popup menu.
2- 4
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 31/108
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 32/108
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 33/108
VP-UML IDE Integration User’s Guide Chapter 2 – Integration with NetBeans/Sun™ ONE
Project Based Reverse Engineering
You can update models in VP-UML from a NetBeans project. Models of the selected project, child packages and classes willbe updated or created (if the models are not already exists).
To reverse engineer code from a NetBeans project to UML model, right-click on the project node in NetBeans and select Tools> Visual Paradigm for UML %EDITION% > Update VP-UML %EDITION% Model from popup menu.
This updates/creates the corresponding UML model in VP-UML.
Package Based Reverse Engineering
You can update models in VP-UML from a NetBeans project. Models of the selected package, child packages and classes willbe updated or created (if the models are not already exists).
To reverse engineer code from a package in a NetBeans project to UML model, right-click on the package in NetBeans andselect Tools > Visual Paradigm for UML %EDITION% > Update VP-UML %EDITION% Model from popup menu.
2- 7
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 34/108
VP-UML IDE Integration User’s Guide Chapter 2 – Integration with NetBeans/Sun™ ONE
This updates/creates the corresponding UML model in VP-UML.
Class Based Reverse Engineering
You can update models in VP-UML from a NetBeans project. Models of the selected class and child classes (inner class) willbe updated or created (if the models are not already exists).
To reverse engineer code from a class in a NetBeans project to UML model, right-click on the class file(s) in NetBeans andselect Tools > Visual Paradigm for UML %EDITION% > Update VP-UML %EDITION% Model from popup menu.
2- 8
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 35/108
VP-UML IDE Integration User’s Guide Chapter 2 – Integration with NetBeans/Sun™ ONE
This updates/creates the corresponding UML model in VP-UML.
Selecting Corresponding Elements in VP-UML from NetBeans
VP-UML helps selects class models in VP-UML corresponding to the source code in NetBeans. To select correspondingmodels in VP-UML from NetBeans, perform one of the following actions:
Select on the desired piece of source elements from the Projects Windows of NetBeans. Right-click on the selectionand choose Tools > Visual Paradigm for UML %EDITION% > Select in VP-UML %EDITION% Model frompopup menu.
2- 9
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 36/108
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 37/108
VP-UML IDE Integration User’s Guide Chapter 2 – Integration with NetBeans/Sun™ ONE
Code Generation from Model to Code
Code generation creates/updates source code in a NetBeans project from UML models. You can select to update the wholeproject, package (s) and class (es) from VP-UML to NetBeans. Before updating/generating code, you must open the UMLmodel of the desired project. More information about how to open a VP-UML from NetBeans can be found from the sectionOpening a VP-UML Project from NetBeans in this Chapter.
Furthermore, there are 2 ways in synchronizing (updating) model to code. They are Sync to Code and Force Sync to Code .
Sync to Code
Removed sources will not be recovered. Only the existing sources will be synchronized with the UML models.
Force Sync to Code
Removed sources will be recovered. Existing sources will be synchronized with the UML models, while removed sources willbe reconstructed.
Project Based Code Generation
To generate all classes and/or packages within a UML project:
1. Right-click the project (the root) in the Diagram Navigator , in the Model Tree or in the Class Repository Tree .
2. Select Update Project to NetBeans from popup menu.
Package Based Code Generation
To generate a package together with class/classes inside:
1. Select the desired package for generating code on a class diagram, in the Diagram Navigator , in the Model Tree or in theClass Repository Tree .
2- 11
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 38/108
VP-UML IDE Integration User’s Guide Chapter 2 – Integration with NetBeans/Sun™ ONE
2. Right-click on the selection and choose Update to NetBeans from popup menu.
Class Based Code Generation
To generate class/classes:
1. Select class/classes on a class diagram, in the Diagram Navigator , in the Model Tree or in the Class Repository Tree forgenerating code.
2. Right-click on the selection and select Update to NetBeans from popup menu.
Selecting Corresponding Elements in NetBeans from VP-UML
VP-UML helps selects element in VP-UML corresponding to the source code in NetBeans. To select corresponding piece of source code in NetBeans from VP-UML, perform one of the following actions:
Select on the desired UML model in the Diagram Navigator , in the Model Tree or in the Class Repository Tree .Right-click on the selection and choose Select in NetBeans from popup menu.
2- 12
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 39/108
VP-UML IDE Integration User’s Guide Chapter 2 – Integration with NetBeans/Sun™ ONE
Select the desired model for generating code on a class diagram. Right-click on the selection and choose Select inNetBeans from popup menu.
In both cases, the corresponding source files will be opened and activated in NetBeans.
Importing a VP-UML Project into NetBeans
You can import another VP-UML project into a NetBeans project. If there is a VP-UML associating with the NetBeans project,importing a VP-UML project results in replacing the original one with the one going to be imported.
Before importing a VP-UML project, you must open the UML model of the desired project. More information about how toopen a VP-UML from NetBeans can be found from the section Opening a VP-UML Project from NetBeans in this Chapter.
To import a VP-UML project:
2- 13
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 40/108
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 41/108
VP-UML IDE Integration User’s Guide Chapter 2 – Integration with NetBeans/Sun™ ONE
Exporting a VP-UML Project from NetBeans
You can export the VP-UML project that is associated with an NetBeans project. The exported VP-UML project has noassociation with both the NetBeans project and the VP-UML project it exported from.
Before exporting a VP-UML project, you must open the UML model of the desired project. More information about how toopen a VP-UML from NetBeans can be found from the section Opening a VP-UML Project from NetBeans in this Chapter.
To export a VP-UML project:
1. Select the NetBeans project for which you want to export the VP-UML associated with it.
2. Right-click on the selected project and choose Tools > Visual Paradigm for UML %EDITION% > Export VP-UML%EDITION% Project from popup menu.
This displays the Save As dialog box.
3. Locate the project file path for the output project.
4. Click Save .
2- 15
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 42/108
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 43/108
VP-UML IDE Integration User’s Guide Chapter 2 – Integration with NetBeans/Sun™ ONE
}
Package package Package;
Containment package Package;
public class MyClass
{
}
Inner Class public class OuterClass
{
class InnerClass
{
}
}
Generalization public class MyClass extends OtherClass
{
}
Realization public class MyClass implements MyInterface
{
}
Association public class MyClass {
Otherclass otherClass;
}
2- 17
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 44/108
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 45/108
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 46/108
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 47/108
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 48/108
VP-UML IDE Integration User’s Guide Chapter 3 – Integration with JBuilder
8. Click Finish to close the dialog box when the installation is completed.
You can install JBuilder Integration only on a “clean” copy of JBuilder. A clean copy of JBuilder is one which hasno other kinds of integration such as SDE for JBuilder and DB-VA for JBuilder installed.
JBuilder Integration can only be installed on ONE JBuilder directory only. The next time you start the VP-Suitedialog from VP-UML you will see the option JBuilder Studio Integration is selected.
Creating a VP-UML Project in JBuilder
To create a VP-UML Project in JBuilder:
1. Start JBuilder.
2.
Select the JBuilder project for which you want to create a VP-UML project for it.3. Right-click on the selected project and choose VP-UML %EDITION% Project > New VP-UML %EDITION%
Project from popup menu.
3 - 4
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 49/108
VP-UML IDE Integration User’s Guide Chapter 3 – Integration with JBuilder
This displays the Project Structure dialog box.
4. Select from the Project Structure dialog box the location of the VP-UML project is to be saved. The VP-UML project,with .vpp extension, is the UML project file that is going to be associated with the selected JBuilder project file. SelectCreate in default path result in saving the VP-UML project to %JBuilder_Project_Directory%/vpproject while selectingCreate at external location require you to specify the project path.
5. Click OK .
This starts a new instance of VP-UML on a separate window. The project opened from VP-UML is associated with theJBuilder project.
3 - 5
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 50/108
VP-UML IDE Integration User’s Guide Chapter 3 – Integration with JBuilder
Opening a VP-UML Project from JBuilder
1. Start JBuilder.
2. Select the JBuilder project for which you want to open the VP-UML project from it.
3. Right-click on the selected project and choose VP-UML %EDITION% Project > Open VP-UML %EDITION%Project from popup menu.
This starts a new instance of VP-UML on a separate window. The project opened from VP-UML is associated with theJBuilder project.
Reverse Engineering from Code to Model
Code reverse engineering updates UML class models from source code in JBuilder. You can update the whole project, package(s) and class (es) from JBuilder to VP-UML. Before reverse engineering, you must open the UML model of the desired project.More information about how to open a VP-UML from JBuilder can be found from the section Opening a VP-UML Projectfrom JBuilder in this Chapter.
Project Based Reverse Engineering
You can update models in VP-UML from a JBuilder project. Models of the selected project, child packages and classes will be
updated or created (if the models are not already exists).
To reverse engineer code from a JBuilder project to UML model, right-click on the project node in JBuilder and select UpdateVP-UML %EDITION% Model from popup menu.
3 - 6
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 51/108
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 52/108
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 53/108
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 54/108
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 55/108
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 56/108
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 57/108
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 58/108
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 59/108
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 60/108
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 61/108
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 62/108
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 63/108
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 64/108
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 65/108
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 66/108
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 67/108
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 68/108
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 69/108
VP-UML IDE Integration User’s Guide Chapter 4 – Integration with IntelliJ IDEA™
When the code editor for the desired piece of source is active, choose VP-UML > Select in VP-UML from IntelliJIDEA main menu.
In both cases, the corresponding model in VP-UML is selected.
Code Generation from Model to Code
Code generation creates/updates source code in a IntelliJ IDEA project from UML models. You can select to update the wholeproject, package (s) and class (es) from VP-UML to IntelliJ IDEA. Before updating/generating code, you must open the UMLmodel of the desired project. More information about how to open a VP-UML from IntelliJ IDEA can be found from thesection Opening a VP-UML Project from IntelliJ IDEA in this Chapter.
Furthermore, there are 2 ways in synchronizing (updating) model to code. They are Sync to Code and Force Sync to Code .
Sync to Code
Removed sources will not be recovered. Only the existing sources will be synchronized with the UML models.
Force Sync to Code
Removed sources will be recovered. Existing sources will be synchronized with the UML models, while removed sources willbe reconstructed.
4- 9
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 70/108
VP-UML IDE Integration User’s Guide Chapter 4 – Integration with IntelliJ IDEA™
Project Based Code Generation
To generate all classes and/or packages within a UML project:
1. Right-click the project (the root) in the Diagram Navigator , in the Model Tree or in the Class Repository Tree .
2. Select Update Project to IntelliJ from popup menu.
Package Based Code Generation
To generate a package together with class/classes inside:
1. Select the desired package for generating code on a class diagram, in the Diagram Navigator , in the Model Tree or in theClass Repository Tree .
2. Right-click on the selection and choose Update to IntelliJ from popup menu.
Class Based Code Generation
To generate class/classes:
1. Select class/classes on a class diagram, in the Diagram Navigator , in the Model Tree or in the Class Repository Tree forgenerating code.
2. Right-click on the selection and select Update to IntelliJ from popup menu.
4- 10
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 71/108
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 72/108
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 73/108
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 74/108
VP-UML IDE Integration User’s Guide Chapter 4 – Integration with IntelliJ IDEA™
This displays the Save As dialog box.
3. Locate the project file path for the output project.
4. Click Save .
The VP-UML project is exported to the specified location.
Model Representation of Code
The following table shows some of the model representation of code.
Model CodeClass public class MyClass
{
}
Abstract Class public abstract class MyClass
{
}
Attribute
Instance Scope public class MyClass
{
private Integer intValue;
}
classifier Scope public class MyClass {
private static Integer intValue;
}
4- 14
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 75/108
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 76/108
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 77/108
5Integration with JDeveloper
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 78/108
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 79/108
VP-UML IDE Integration User’s Guide Chapter 5 – Integration with JDeveloper
Installation
First of all, please make sure your machine has Oracle JDeveloper 10g or above properly installed.
To install JDeveloper Integration from VP-UML:
1. Start VP-UML
2. Select Tools > IDE Integration… from the main menu of VP-UML.
3. This displays the VP-Suite dialog box.
4. Check JDeveloper Integration .
5. Click Next . This displays the Product Configuration page.
6. Locate the JDeveloper home directory in the Directory field. You can enter the path directly in the text field, or press … toselect the directory from the Open dialog box.
7. Click Next . This displays the Installing Files page and starts the installation process.
5- 3
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 80/108
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 81/108
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 82/108
VP-UML IDE Integration User’s Guide Chapter 5 – Integration with JDeveloper
Opening a VP-UML Project from JDeveloper
1. Start JDeveloper.
2. Select the JDeveloper project for which you want to open the VP-UML project from it.
3. Right-click on the selected project and choose Open VP-UML %EDITION% Model from popup menu.
This starts a new instance of VP-UML on a separate window. The project opened from VP-UML is associated with theJDeveloper project.
Reverse Engineering from Code to Model
Code reverse engineering updates UML class models from source code in JDeveloper. You can update the whole project,
package (s) and class (es) from JDeveloper to VP-UML. Before reverse engineering, you must open the UML model of thedesired project. More information about how to open a VP-UML from JDeveloper can be found from the section Opening aVP-UML Project from JDeveloper in this Chapter.
5- 6
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 83/108
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 84/108
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 85/108
VP-UML IDE Integration User’s Guide Chapter 5 – Integration with JDeveloper
When the code editor for the desired piece of source is active, choose VP-UML %EDITION% > Select inVP-UML %EDITION% Project from JDeveloper main menu.
In both cases, the corresponding model in VP-UML is selected.
Code Generation from Model to Code
Code generation creates/updates source code in a JDeveloper project from UML models. You can select to update the wholeproject, package (s) and class (es) from VP-UML to JDeveloper. Before updating/generating code, you must open the UMLmodel of the desired project. More information about how to open a VP-UML from JDeveloper can be found from the sectionOpening a VP-UML Project from JDeveloper in this Chapter.
Furthermore, there are 2 ways in synchronizing (updating) model to code. They are Sync to Code and Force Sync to Code .
Sync to Code
Removed sources will not be recovered. Only the existing sources will be synchronized with the UML models.
5- 9
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 86/108
VP-UML IDE Integration User’s Guide Chapter 5 – Integration with JDeveloper
Force Sync to Code
Removed sources will be recovered. Existing sources will be synchronized with the UML models, while removed sources willbe reconstructed.
Project Based Code Generation
To generate all classes and/or packages within a UML project:
1. Right-click the project (the root) in the Diagram Navigator , in the Model Tree or in the Class Repository Tree .
2. Select Update Project to JDeveloper from popup menu.
Package Based Code Generation
To generate a package together with class/classes inside:1. Select the desired package for generating code on a class diagram, in the Diagram Navigator , in the Model Tree or in the
Class Repository Tree .
2. Right-click on the selection and choose Update to JDeveloper from popup menu.
Class Based Code Generation
To generate class/classes:
1. Select class/classes on a class diagram, in the Diagram Navigator , in the Model Tree or in the Class Repository Tree forgenerating code.
5- 10
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 87/108
VP-UML IDE Integration User’s Guide Chapter 5 – Integration with JDeveloper
2. Right-click on the selection and select Update to JDeveloper from popup menu.
Selecting Corresponding Elements in JDeveloper from VP-UML
VP-UML helps selects element in VP-UML corresponding to the source code in JDeveloper. To select corresponding piece of source code in JDeveloper from VP-UML, perform one of the following actions:
Select on the desired UML model in the Diagram Navigator , in the Model Tree or in the Class Repository Tree .Right-click on the selection and choose Select in JDeveloper from popup menu.
Select the desired model for generating code on a class diagram. Right-click on the selection and choose Select inJDeveloper from popup menu.
In both cases, the corresponding source files will be opened and activated in JDeveloper.
5- 11
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 88/108
VP-UML IDE Integration User’s Guide Chapter 5 – Integration with JDeveloper
Importing a VP-UML Project into JDeveloper
You can import another VP-UML project into a JDeveloper project. If there is a VP-UML associating with the JDeveloperproject, importing a VP-UML project results in replacing the original one with the one going to be imported.
Before importing a VP-UML project, you must open the UML model of the desired project. More information about how toopen a VP-UML from JDeveloper can be found from the section Opening a VP-UML Project from JDeveloper in this Chapter.
To import a VP-UML project:
1. Select the JDeveloper project for which you want to import a VP-UML project into it.
2. Right-click on the selected project and choose VP-UML %EDITION% > Import VP-UML %EDITION% Project from popup menu.
3. This displays the Import Project dialog box.
5- 12
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 89/108
VP-UML IDE Integration User’s Guide Chapter 5 – Integration with JDeveloper
4. Locate the file path of the source VP-UML project. The source project is the one that is going to be imported into theselected JDeveloper project. If there is an existing VP-UML project associated with the selected JDeveloper project, thetarget project path is the path of the existing VP-UML project. If there is no existing VP-UML project associated with theselected JDeveloper project, the path is the default one, which is %JDeveloper_Project_Directory%/vpproject.
5. Click OK .
This starts a new instance of VP-UML on a separate window. The project opened from VP-UML is the imported onewhich is now associated with the JDeveloper project.
Exporting a VP-UML Project from JDeveloper
You can export the VP-UML project that is associated with a JDeveloper project. The exported VP-UML project has noassociation with both the JDeveloper project and the VP-UML project it exported from.
Before exporting a VP-UML project, you must open the UML model of the desired project. More information about how toopen a VP-UML from JDeveloper can be found from the section Opening a VP-UML Project from JDeveloper in this Chapter.
To export a VP-UML project:
1. Select the JDeveloper project for which you want to export the VP-UML associated with it.
2. Right-click on the selected project and choose VP-UML %EDITION% > Export VP-UML %EDITION% Project from popup menu.
5- 13
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 90/108
VP-UML IDE Integration User’s Guide Chapter 5 – Integration with JDeveloper
This displays the Save As dialog box.
3. Locate the project file path for the output project.
4. Click Save .
The VP-UML project is exported to the specified location.
Model Representation of Code
The following table shows some of the model representation of code.
Model Code
Class public class MyClass
{
}
Abstract Class public abstract class MyClass
{
}
Attribute
Instance Scope public class MyClass
{
private Integer intValue;
}
classifier Scope public class MyClass {
private static Integer intValue;
}
5- 14
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 91/108
VP-UML IDE Integration User’s Guide Chapter 5 – Integration with JDeveloper
Operation
Instance Scope public class MyClass
{
private Integer intValue;
public integer getIntValue()
{
}
}
Classifier Scope public class MyClass
{
private static Integer intValue;
public static Integer getIntValue()
{
}
}
Package package Package;
Containment package Package;
public class MyClass
{
}
Inner Class public class OuterClass
{
class InnerClass
{
}
}
Generalization public class MyClass extends OtherClass
{
}
5- 15
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 92/108
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 93/108
6Integration with WebLogic Workshop™
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 94/108
VP-UML IDE Integration User’s Guide Chapter 6 – Integration with WebLogic Workshop™
Chapter 6 – Integration with WebLogic Workshop™
Overview
VP-UML Professional and Enterprise Edition allows you to integrate the VP-UML module with WebLogic Workshop™,providing full software development life cycle support. By designing your software system in VP-UML, you can generateprogramming source code from class diagram to a WebLogic Workshop™ project. Also, you can reverse engineer your source
code into class models in VP-UML.
6 - 2
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 95/108
VP-UML IDE Integration User’s Guide Chapter 6 – Integration with WebLogic Workshop™
Installation
First of all, please make sure your machine has WebLogic Workshop™ 8.1 or above properly installed.
To install WebLogic Workshop™ Integration from VP-UML:
1. Start VP-UML
2. Select Tools > IDE Integration… from the main menu of VP-UML.
3. This displays the VP-Suite dialog box.
4. Check WebLogic Workshop Integration .
5. Click Next . This displays the Product Configuration page.
6. Locate the WebLogic Workshop™ home directory in the Directory field. You can enter the path directly in the text field,or press … to select the directory from the Open dialog box.
7. Click Next . This displays the Installing Files page and starts the installation process.
6 - 3
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 96/108
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 97/108
VP-UML IDE Integration User’s Guide Chapter 6 – Integration with WebLogic Workshop™
This displays the Project Structure dialog box.
4. Select from the Project Structure dialog box the location of the VP-UML project is to be saved. The VP-UML project,with .vpp extension, is the UML project file that is going to be associated with the selected WebLogic Workshop™ projectfile. Select Create in default path result in saving the VP-UML project to%WebLogic_Workshop_Project_Directory%/vpproject while selecting Create at external location require you to specifythe project path.
5. Click OK .
This starts a new instance of VP-UML on a separate window. The project opened from VP-UML is associated with theWebLogic Workshop™ project.
6 - 5
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 98/108
VP-UML IDE Integration User’s Guide Chapter 6 – Integration with WebLogic Workshop™
Opening a VP-UML Project from WebLogic Workshop™
1. Start WebLogic Workshop™.
2. Select the WebLogic Workshop™ project for which you want to open the VP-UML project from it.
3. Right-click on the selected project and choose Open VP-UML %EDITION% Project from popup menu.
This starts a new instance of VP-UML on a separate window. The project opened from VP-UML is associated with theWebLogic Workshop™ project.
6 - 6
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 99/108
VP-UML IDE Integration User’s Guide Chapter 6 – Integration with WebLogic Workshop™
Reverse Engineering from Code to Model
Code reverse engineering updates UML class models from source code in WebLogic Workshop™. You can update the wholeproject, package (s) and class (es) from WebLogic Workshop™ to VP-UML. Before reverse engineering, you must open theUML model of the desired project. More information about how to open a VP-UML from WebLogic Workshop™ can be foundfrom the section Opening a VP-UML Project from WebLogic Workshop™ in this Chapter.
Project Based Reverse Engineering
You can update models in VP-UML from a WebLogic Workshop™ project. Models of the selected project, child packages andclasses will be updated or created (if the models are not already exists).
To reverse engineer code from a WebLogic Workshop™ project to UML model, right-click on the project node in WebLogicWorkshop™ and select Update VP-UML %EDITION% Model from popup menu.
This updates/creates the corresponding UML model in VP-UML.
Package Based Reverse Engineering
You can update models in VP-UML from a WebLogic Workshop™ project. Models of the selected package, child packagesand classes will be updated or created (if the models are not already exists).
To reverse engineer code from a package in an WebLogic Workshop™ project to UML model, right-click on the package inWebLogic Workshop™ and select Update VP-UML %EDITION% Model from popup menu.
6 - 7
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 100/108
VP-UML IDE Integration User’s Guide Chapter 6 – Integration with WebLogic Workshop™
This updates/creates the corresponding UML model in VP-UML.
The model will be updated according to the package hierarchy.
Class Based Reverse Engineering
You can update models in VP-UML from a WebLogic Workshop™ project. Models of the selected class and child classes(inner class) will be updated or created (if the models are not already exists).
To reverse engineer code from a class in a WebLogic Workshop™ project to UML model, right-click on the class file inWebLogic Workshop™ and select Update VP-UML %EDITION% Model from popup menu.
This updates/creates the corresponding UML model in VP-UML.
Selecting Corresponding Elements in VP-UML from WebLogic Workshop™
VP-UML helps selects class models in VP-UML corresponding to the source code in WebLogic Workshop™. To selectcorresponding models in VP-UML from WebLogic Workshop™, perform one of the following actions:
Select on the desired piece of source elements from the WebLogic Workshop™. Right-click on the selection andchoose Select in VP-UML %EDITION% from popup menu.
6 - 8
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 101/108
VP-UML IDE Integration User’s Guide Chapter 6 – Integration with WebLogic Workshop™
When the code editor for the desired piece of source is active, choose VP-UML > Select in VP-UML%EDITION% from WebLogic Workshop™ main menu.
In both cases, the corresponding model in VP-UML is selected.
Code Generation from Model to Code
Code generation creates/updates source code in a WebLogic Workshop™ project from UML models. You can select to updatethe whole project, package (s) and class (es) from VP-UML to WebLogic Workshop™. Before updating/generating code, youmust open the UML model of the desired project. More information about how to open a VP-UML from WebLogicWorkshop™ can be found from the section Opening a VP-UML Project from WebLogic Workshop™ in this Chapter.
Furthermore, there are 2 ways in synchronizing (updating) model to code. They are Sync to Code and Force Sync to Code .
Sync to Code
Removed sources will not be recovered. Only the existing sources will be synchronized with the UML models.
Force Sync to CodeRemoved sources will be recovered. Existing sources will be synchronized with the UML models, while removed sources willbe reconstructed.
6 - 9
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 102/108
VP-UML IDE Integration User’s Guide Chapter 6 – Integration with WebLogic Workshop™
Project Based Code Generation
To generate all classes and/or packages within a UML project:
1. Right-click the project (the root) in the Diagram Navigator , in the Model Tree or in the Class Repository Tree .
2. Select Update Project to WebLogic Workshop from popup menu.
Package Based Code Generation
To generate a package together with class/classes inside:
1. Select the desired package for generating code on a class diagram, in the Diagram Navigator , in the Model Tree or in theClass Repository Tree .
2. Right-click on the selection and choose Update to WebLogic Workshop from popup menu.
Class Based Code Generation
To generate class/classes:
1. Select class/classes on a class diagram, in the Diagram Navigator , in the Model Tree or in the Class Repository Tree forgenerating code.
2. Right-click on the selection and select Update to WebLogic Workshop from popup menu.
6 - 10
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 103/108
VP-UML IDE Integration User’s Guide Chapter 6 – Integration with WebLogic Workshop™
Selecting Corresponding Elements in WebLogic Workshop™ from VP-UML
VP-UML helps selects element in VP-UML corresponding to the source code in WebLogic Workshop™. To selectcorresponding piece of source code in WebLogic Workshop™ from VP-UML, perform one of the following actions:
Select on the desired UML model in the Diagram Navigator , in the Model Tree or in the Class Repository Tree .Right-click on the selection and choose Select in WebLogic Workshop from popup menu.
Select the desired model for generating code on a class diagram. Right-click on the selection and choose Select inWebLogic Workshop from popup menu.
6 - 11
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 104/108
VP-UML IDE Integration User’s Guide Chapter 6 – Integration with WebLogic Workshop™
In both cases, the corresponding source files will be opened and activated in WebLogic Workshop™.
Importing a VP-UML Project into WebLogic Workshop™
You can import another VP-UML project into a WebLogic Workshop™ project. If there is a VP-UML associating with theWebLogic Workshop™ project, importing a VP-UML project results in replacing the original one with the one going to beimported.
Before importing a VP-UML project, you must open the UML model of the desired project. More information about how toopen a VP-UML from WebLogic Workshop™ can be found from the section Opening a VP-UML Project from WebLogicWorkshop™ in this Chapter.
To import a VP-UML project:1. Select the WebLogic Workshop™ project for which you want to import a VP-UML project into it.
2. Right-click on the selected project and choose Import VP-UML %EDITION% Project from popup menu.
6 - 12
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 105/108
VP-UML IDE Integration User’s Guide Chapter 6 – Integration with WebLogic Workshop™
3. This displays the Import Project dialog box.
4. Locate the file path of the source VP-UML project. The source project is the one that is going to be imported into theselected WebLogic Workshop™ project. If there is an existing VP-UML project associated with the selected WebLogicWorkshop™ project, the target project path is the path of the existing VP-UML project. If there is no existing VP-UMLproject associated with the selected WebLogic Workshop™ project, the path is the default one, which is%WebLogic_Workshop_Project_Directory%/vpproject.
5. Click OK .
This starts a new instance of VP-UML on a separate window. The project opened from VP-UML is the imported one which isnow associated with the WebLogic Workshop™ project.
6 - 13
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 106/108
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 107/108
7/31/2019 Vpuml Integration Guide
http://slidepdf.com/reader/full/vpuml-integration-guide 108/108