Skip to content

Standard Expression Definitions

AaronGreenhouse edited this page Nov 5, 2020 · 6 revisions

The plugin.xml for org.osate.ui contains expression definitions that are intended to standardize adding OSATE commands to the UI. The are all named with the prefix org.osate.ui.definition.

Complex Expressions

  • org.osate.ui.definition.instanceAnalysisCommandVisibility — true when the there are 1 or more selected objects and at least one of them is a working set, AADL Project, folder in an AADL Project, an AAXL file, or an instantiatable component implementation.
    Meant for use in the visibleWhen clause of a command.
  • org.osate.ui.definition.instanceAnalysisCommandEnabled true when there are 1 or more selected objects and all of them are one of working set, AADL Project, folder in an AADL Project, an AAXL file, or an instantiatable component implementation. Meant for use in the enablecWhen clause of a command.
  • org.osate.ui.definition.inAadlPerspective — true when the AADL perspective is the active perspective. For enabledWhen on commands in the toolbar.

Simple Expressions

  • org.osate.ui.definition.isAADLProject — true if the currently selected item is a project and the project is either closed or an AADL project.
  • org.osate.ui.definition.isAADLFolder — true if the currently selected item if a folder inside of an AADL project.
  • org.osate.ui.definition.isInstanceFile — true if the currently selected item is an instance model (.aaxl) file.
  • org.osate.ui.definition.isPackageFile — true if the currently selected item is an .aadl file that contains a package definition.
  • org.osate.ui.definition.isPropertySetFile — true if the currently selected item is an .aadl file that contains a property set definition.
  • org.osate.ui.definition.isInstantiatableEObjectURIWrapper — true if the currently selected item is an EObjectURIWrapper (in the navigator view) that wraps a ComponentImplementation that is not a SubprogramImplementation or SubprogramGroupImplementation. That is, the object represents a component implementation that may be instantiated.
  • org.osate.ui.definition.isInstantiatableEObjectNode — true if the currently selected item is an EObjectNode (in the AADL outline view) that wraps a ComponentImplementation that is not a SubprogramImplementation or SubprogramGroupImplementation. That is, the object represents a component implementation that may be instantiated.
  • org.osate.ui.definition.isSystemInstance — true if the currently selected item is a SystemInstance. Meant to test the selection in the instance model editor and instance model editor outline view.
  • org.osate.ui.definition.isWorkingSet — true if the currently selected item in the AADL navigator is an Eclipse working set.
  • org.osate.ui.definition.isWorkingSetOrOpenProject — true if the currently selected item in the AADL navigator is an Eclipse working set or an open project (of any type).

Clone this wiki locally