Réserver une Démo
Pré. Proc.

EA_LoadWindowManager

Enterprise Architect provides a set of Portals, each of which is a collection of shortcuts and information on performing specific areas of work on a project. The Portals help both new and experienced users quickly identify and set up the facilities they most often use in their assigned tasks.

You can add your own Portal to the system-installed set, to provide a convenient and concise call-up of one or more groups of facilities available in your Add-In.

Syntax

Function EA_Connect (Repository As EA.Repository) As String

The EA_Connect function syntax has this parameter:

Parameter

Type

See also

Repository

EA.Repository

Direction: IN

Description: An EA.Repository object representing the currently open Enterprise Architect model. Poll its members to retrieve model data and user interface status information.

Example Code

      public String EA_LoadWindowManager(EA.Repository Repository)

      {

      return Resource1.WindowManager;

      }

Where Resource1.WindowManager is a resource file with these contents:

      <?xml version="1.0" encoding="UTF-8"?>

      <perspectives>

      <perspective name="Add-In">

      <category name="Add-In" type="commandlist" projectrequired="true">

      <item name="Hello World" command="CallAddin" addin="CS_AddinFramework" function="HelloWorld"/>

      <item name="Model Dump" command="CallScript" group="Local Scripts" script="JScript - Recursive Model Dump Example"/>

      </category>

      <category name="Open Diagrams" type="currentdiagramlist" state = "open"/>

      <category name="Recent Diagrams" type="recentdiagramlist" state = "open"/>

      <category name="Other Windows" type="otherwindowlist" state = "open"/>

      </perspective>

      </perspectives>

Note that the Add-In cannot specify the icon used.

Learn more