Add a Portal

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.

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