Topic
Prev Next

Application Patterns (Model + Code)

To get you going with a code based project as fast as possible, Enterprise Architect helps you to generate starter projects including model information, code and build scripts for one of several basic application types. Patterns include:

  • MFC Windows applications
  • Java programs
  • ASP.NET web services

Access

Ribbon

Design > Package > Model Wizard > Application Patterns

Menu

Package | New > Application Patterns

Context Menu

In Project Browser | Right-click on a Package | Add a Model using Wizard > Application Patterns

Keyboard Shortcuts

Ctrl+Shift+M > Application Patterns

Generate Models

Field/Option/Button

Action

See also

Technology

Select the appropriate technology.

Name

Displays the Application Patterns available for the selected technology; select the required Pattern to import.

<description>

Displays a description of the selected Pattern.

Destination folder

Browse for and select the directory in which to load the source code for the application.

Use Local Path

Enable the selection of an existing local path to place the source code under; changes the 'Destination folder' field to a drop-down selection.

Compiler command

Displays the default compiler command path for the selected technology; you must either:

  • Confirm that the compiler can be found at this path, or
  • Edit the path to the compiler location
Local Paths Local Paths Dialog

Edit Local Paths

Many application Patterns specify their compiler using a local path.

The first time you use any Pattern you must click on this button to ensure the local path points to the correct location.

The 'Local Paths' dialog displays.

Notes

  • If required, you can publish custom application Patterns by adding files to the AppPatterns directory where Enterprise Architect is installed; top level directories are listed as Technologies and can contain an icon file to customize the icon displayed for the technology
    Directories below this are defined as groups in the Patterns list; the Patterns are identified by the presence of four files with a matching name: a zip file (.zip), XMI file (.xml), config file (.cfg) and optional icon (.ico)
  • The config file supports these fields:
         -  [provider], [language], [platform], [url], [description], [version] - all displayed in the <description> field
         -  [xmirootpaths] - the root path of the source code in the exported xmi; this is replaced with the selected destination
            folder when the user applies the Application Pattern

Learn more