Une image contenant texte, signe

Description générée automatiquement

Model Element Editor

 

Launching the Model Element Editor

 

Applicable To

All

Menu Entry

Power Pack Edit Model Element

 

In addition, if using Rhapsody 10 or later then the Model Element Editor may be launched from the main toolbar as well as the Tools menu and shortcut key (Shift-Alt-E):

 

A screenshot of a computer

AI-generated content may be incorrect.

Model Element Editor Toolbar Button

A screenshot of a computer

AI-generated content may be incorrect.

Model Element Editor on Tools Menu

You may have as many Model Element Editor instances as you like. An existing Model Element Editor instance may also be re-loaded to edit the currently selected model element in Rhapsody by clicking Focus Editor on Selected:

A screenshot of a computer

AI-generated content may be incorrect.

Modes

The editor works in one of two modes controlled by the following project level property:

RhapsodyPowerPack.ModelElementEditor.SearchMode

Query Mode

This is the default mode. When the editor is launched it first reads all available maps and detects which model element types may be required. It then runs a Rhapsody Query to find all model elements of those types to present in the UI. Although this is far more performant than reading the entire model to see what model elements are available, it does impose two limitations:

·       Tags that are not in the map will not be included in the UI

·       The search cannot be scoped (Rhapsody does not allow Queries to be scoped)

·       For larger models a progress bar is displayed however this cannot be aborted (Rhapsody does not allow queries to be aborted)

Full Mode

In this mode, when the editor is launched it reads the entire model (see scoping later). A progress bar is displayed as each area of the model is read and these may be aborted. Tags not in the map are available for display (see properties later). Reading the entire model can take significantly longer than running a Query which only returns a subset of the model.

Models with M2M in Full Mode

For performance reasons, in Full Mode the Model Element Editor does not look into Profiles for available model elements. For models that contain the M2M or M2MIE Profile however it is more likely that you want to look for such elements since M2M Transformations and Rules use stereotypes from loaded profiles. On launch, if the editor detects M2M and profiles are not enabled then an option is displayed to enable them:

A screenshot of a computer

Description automatically generated

Clicking Don’t Ask Again will disable this dialog. It may be re-enabled by setting the following property on the project:      

RhapsodyPowerPack.ModelElementEditor.AskToEnableProfiles