Source Code Import Wizard

The source code wizard import enables the import of Java source code.

Purpose

Java source code can be imported into an Innovator model using the on-demand plug-in.

During a source code import, packages, classes, interfaces, associations, attributes, operations, parameters, enumeration types and enumeration values are created in the Innovator model. An association is also created for an attribute with the class or interface type. In addition, generalizations between the classes and implementations of an interface realization are imported.

Method calls, method bodies, and annotations are not imported.

Javadoc comments content can be stored in the specification text for the respective model element when importing Java source code.

Prerequisites

The required stereotypes must exist. These stereotypes are found in the delivered "Java Software Modeling" profile, for example. You can use other stereotypes and define them in the Configuration of Source Code Import dialog.

Importing Source Code

Prerequisites

You require a license for Innovator for Software Architects.

Context

Packages, classes, interfaces, associations, attributes, operations, parameters, enumeration types, enumeration types, implementations and generalizations are mapped from the source code into the model upon import.

Note that all existing elements of the same type in the target package are deleted permanently and irrevocably.

How to proceed

  1. Select Import/Export>Import>Wizard.

    The wizard with the same name appears.

  2. On the first page of the wizard, select the files and directories to be imported and confirm with Next.

    The root package selection screen appears.

  3. If you know part of the name of the desired root package, then enter this name part into the Find by Name field and click on .

    The selection jumps to the first permitted owner in the model structure. Click on again to jump to the next hits.

  4. If you want to directly select the root package, click on the corresponding element in the tree.

  5. Select one of the packages that appears there.

    Attention

    In the selected package, all existing classes and interfaces are deleted permanently and irrevocably.

  6. Confirm with Finish.

    The selected source files are searched for Java classes and Java interfaces.

    A progress indicator appears.

    Then the Delete from Model dialog appears.

  7. Click on Delete to confirm deletion or on Abort to continue importing without deletion.

    The wizard shows the import's Messages.

  8. Close the wizard with Close.

    The model elements found are created beneath the selected root package.

    You can see the Messages log window in the Info tool window. You can see the source code import messages in the form of a table here.

    You can save the content of the table as a CSV file via the context menu or you can copy it to the clipboard.

    If you select messages that relate to a model element, you can jump to the relevant position in the model structure via the context menu.

This chapter contains the topics:

  Configuration of Source Code Import Dialog