Skip navigation links

Package com.ibm.xtools.umlviz.ui

UML Diagram Resource primary package.

See: Description

Package com.ibm.xtools.umlviz.ui Description

UML Diagram Resource primary package. This package exposes the entry point for the UML Diagram Resource API though UMLDiagramResourceUtil.

Package Specification

The UML Diagram Resource API consists of a single static utility class, UMLDiagramResourceUtil, and of several other classes and interfaces that are accessible from UMLDiagramResourceUtil. The implementation of these other classes and interfaces spans several plug-ins in the product. These plug-ins are re-exported from the plug-in that exposes UMLDiagramResourceUtil, which is com.ibm.xtools.viz.ui. To use the UML Diagram Resource extensibility, API clients must only add a single plug-in dependency to com.ibm.xtools.viz.ui.

Extensibility Architecture

The foundation of the UML Diagram Resource extensibility is called the modeling platform. The modeling platform consists of a set of services that enable the management of UML 2.0 models and is based on a UML 2.0 meta-model that the Eclipse UML2 Project provides. Because the meta-model is an EMF-based implementation of the UML 2.0 specification, the objects that represent user models are UML2 objects.

For diagraming, the UML Modeler leverages the runtime of the Eclipse GMF project.

For example, UMLDiagramResourceUtil.openDiagram returns a GMF Diagram. This object contains view objects through its getChildren method. Each view can be associated with a semantic element. In case of our UML Modeler diagrams, these semantic elements are UML2 Element and are accessible from the View.getElement method.

Like all UML2 objects, Element indirectly extends the EModelElement EMF object.

The modeling platform exposes interfaces to help manage notation-based diagrams:

UMLUIHelper
A user interface helper for using UML2 elements
UMLDiagramHelper
A helper for using UML 2.0 notation-based diagrams
UML Notation
UML 2.0 specific extensions to the GMF notation meta-model
Skip navigation links