UML Libraries
Identifier:
com.ibm.xtools.uml.msl.UMLLibraries
Description:
Extension point for the definition of a type library.
Configuration Markup:
<!ELEMENT extension (UMLLibrary+)>
<!ATTLIST extension
point CDATA #REQUIRED
id CDATA #IMPLIED
name CDATA #IMPLIED>
<!ELEMENT UMLLibrary EMPTY>
<!ATTLIST UMLLibrary
name CDATA #REQUIRED
path CDATA #REQUIRED
required (true | false)
visible (true | false)
id CDATA #IMPLIED>
- name - A descriptive name of the librray.
- path - the path of the library relative to the plugin declaring the extension (pathmap URIs could also be used, e.g. pathmap://MY_PATHMAP/MyTypeLibraryModel.emx).
- required - defines if the library is required (required libraries are applied automatically to models when these are loaded or created, normally only system libraries are required).
- visible - defines if the library will be visible in the GUI.
- id - A non-localized unique identifier for the library, used for referencing it
in the UML resource manager API. It is optional for compatibility, but is
very much recommended.
Examples:
Here is an example of an extension point used to define a new plugin-based type library:
The only officially supported format for type libraries are emx files. Other formats may work, but no explicit support is available.
<extension
id="MyTypeLibrary"
name="My Type Library"
point="com.ibm.xtools.uml.msl.UMLLibraries">
<UMLLibrary
name="MyTypes"
path="pathmap://MY_PATHMAP/MyTypeLibraryModel.emx"
required="false"
visible="true">
</UMLLibrary>
</extension>
API Information:
N/A
Copyright (c) 2004, 2018 IBM, HCL and others. All Rights Reserved.