|
|
(20 intermediate revisions by 6 users not shown) |
Line 1: |
Line 1: |
− | The Java reverse engineering is available in the extra plugins of Papyrus. It allows to reverse java filles or packages to a Papyrus class diagram.
| + | = Page has moved to [https://gitlab.eclipse.org/eclipse/papyrus/org.eclipse.papyrus-designer/-/wikis/reverse/java-reverse gitlab] = |
− | | + | |
− | == Reverse a Java class == | + | |
− | | + | |
− | A java class can be reversed into a Papyrus class diagram:
| + | |
− | *open the class diagram,
| + | |
− | *select a java package from a project
| + | |
− | * click into the Reverse button [[File:ReverseButton.jpg]]
| + | |
− | | + | |
− | A UML class has been created into the Model Explorer. Your can now add it into your diagram.
| + | |
− | Note that all associated classes are also been added into the model.
| + | |
− | | + | |
− | == Reverse a package ==
| + | |
− | | + | |
− | A java package (and all classes included) can be reversed into a Papyrus class diagram:
| + | |
− | *open the class diagram,
| + | |
− | *select a java package from a project,
| + | |
− | *click into the Reverse button [[File:ReverseButton.jpg]]
| + | |
− | | + | |
− | Package and classes have been created into the Model Explorer. Your can now add them into your diagram.
| + | |
− | Note that all associated classes are also been added into the model.
| + | |
− | | + | |
− | == Choose reverse options ==
| + | |
− | By default, a package named "generated" is created for the reverse engineering. You can choose another package name on the options menu.
| + | |
− | | + | |
− | [[File:JavaReverseOptionsMenu.jpg]]
| + | |
− | | + | |
− | This options menu allows to:
| + | |
− | * change the default package of the reverse engineering,
| + | |
− | * add or remove search path. The reverse generator search existing uml classes and regenerate them.
| + | |
− | * add or remove creation path. The reverse generator search on existing java classes to generate a uml class. Useful for creating java imports (ex: String, Integer).
| + | |