Adding Java Packages, Java Classes, and XHTML Files to the Simulation Assistant Project

Typically, Simulation Assistant projects contain two Java packages, one for the assistant code, and the other for the XHTML text that is displayed in the user interface of the assistant.

Adding Java Packages to the Project

To add Java packages to the Simulation Assistant Project:

  1. Right-click on [project_name] > Source Packages and select New Java Package...

    The New Java Package dialog appears.

  2. In the Package Name field, enter the package name.

  3. Click Finish.
    The Java package is added to the project.

Adding Java Classes to the Project

Java classes contain the code that made up the Simulation Assistant.

To add a Java class to the Simulation Assistant project:

  1. Right-click [project_name] > Source Packages > [package_name] and select New Java Class...

    The New Java Class dialog appears.

  2. In the Class Name field, enter the class name.

  3. Click Finish.
    The Java class is added to the Java package. Add as many classes as required for your workflow.

Adding XHTML Files to the Project

Typically, all the text that is displayed in the Simulation Assistant user interface is stored in XHTML files, and is contained in a separate Java class.

To add an XHTML file to the simulation assistant project:

  1. Right-click on [project_name] > Source Packages > [package_name] and select New > Other...

    The New File dialog appears.

  2. Select Other from the Categories list.
  3. Select XHTML File from the File Types list.

  4. Click Next.

    The New XHTML File dialog appears.

  5. In the File Name field, enter the file name.

  6. Click Finish.
    The XHTML file is added to the Java package. Add as many XHTML files as required for your workflow.