The UML Modeler component supports UML model content that is rooted in Packages that are not Models. Any assumption that the root element is a Model is now invalid.
As evident in a sweep of the UML Modeler code, this assumption is fairly pervasive. The nesting of Models in packages is not supported. The assumption that a Model has no owner is valid, although is encouraged not make this assumption. The UML Modeler application [programming interface (API) is modified to manage the manifestations of this assumption. For components that use UML Modeler resources, the following common patterns appear:
References to Model metaclass and the related API:
Miscellaneous:
WORK IN PROGRESS_ DRAFT The example given in this RFE (com.ibm.xtools.modeler.ui.UMLModeler.saveResourceAs(Resource, String, int)) is a private static method. Private methods are not documented since clients are not be able to access this API call.
Observation: There is no way to directly bring up information about the method within RSA. Pressing F3 or F4 brings up virtually useless declaration information contained within the tabbed page. If you bring up "/Help/Help Contents" and search for "saveProfileAs" the help system returns "Nothing Found". If you know to search for "UMLModeler" and click on the "com.ibm.xtools.modeler.ui" entry in the list you then get a browse-able help page. Pressing Shift-F2 appears to be intended to provide the capability that I'm looking for however I'm unaware of any javadocs provided with RSA that can be accessed via the Shift-F2 function key. If you know how to use the key stroke pair with the distributed RSA files, please call and guide me through the setup.
The class UMLModeler contains the saveModelResourceAs(Element model, String file) and saveProfileAs(Profile profile, String file) methods.
The saveModelResourceAs(Element model, String file) method saves the model specified by a root model element to the location specified by file. The saveProfileAs(Profile profile, String file) saves the profile specified by profile to the location specified by file.