Eclipse Extension Point Description


To use an Omondo Profile in your Eclipse workbench, you must declare an extension of the com.omondo.uml.std.profiles point. The extension mechanism is an Eclipse feature that allows users to plug custom elements into their Eclipse environment.


The following code snipset is extracted from the plugin.xml file:

   

<extension point=

"com.omondo.uml.std.profiles"

>


<profile
name=

"Example Profile"


class=

"com.omondo.uml.profile.example.ProfileExample"


id=

"com.omondo.uml.profile.example.ProfileExample.id"


model=

"com.omondo.uml.profile.example.profile.uml2"

>


<property
name=

"myProp"


value=

"myValue"

>


</property>


<property
name=

"myProp1"


value=

"myValue1"

>


</property>


<fragment
class=

"com.omondo.uml.profile.example.FragmentExample"


diagramType=

"classDiagram"


elementType=

"association, class, interface, operation, property"


stereotype=

"Example::MyStereotype"

>


</fragment>


</profile>


</extension>


<!ELEMENT extension (profile)*>

<!ATTLIST extension

point                 CDATA #REQUIRED

id                    CDATA #IMPLIED

name                  CDATA #IMPLIED>

  • point - a fully qualified identifier of the target extension point
  • id - an optional identifier of the extension instance
  • name - an optional name of the extension instance

<!ELEMENT profile (property, fragment)*>

<!ATTLIST profile

id                    CDATA #REQUIRED

name                  CDATA #REQUIRED

class                 CDATA #REQUIRED

model                 CDATA #REQUIRED>

  • id - a unique name that can be used to identify this profile
  • name - a translatable name of the profile that will be used in the Omondo Profiles Properties window selector.
  • class - a fully qualified name of the Java class extending com.omondo.uml.std.external.profile.AbstractProfile.
  • model - a relative path of a uml2 model.

<!ELEMENT property EMPTY> Note that the Property element is optional.

<!ATTLIST property

name                  CDATA #REQUIRED

value                 CDATA #REQUIRED>

  • name - property name.
  • value - property value.

<!ELEMENT fragment EMPTY> You can declare more than one fragment.

<!ATTLIST fragment

class                 CDATA #REQUIRED

diagramType           CDATA #REQUIRED

elementType           CDATA #REQUIRED

stereotype            CDATA #REQUIRED>

  • class - a fully qualified name of the Java class implementing com.omondo.uml.std.external.profile.AbstractFragment.
  • diagramType - kind of UML Diagrams this fragment applies to
    Valid Values are :
    • classDiagram
  • elementType - kind of element this fragment applies to.
    Valid Values are :
    • association
    • class
    • interface
    • operation
    • property
  • stereotype - name of the stereotype which will activate this fragment.



 


 
Last update Tue Feb 08 14:58:31 CEST 2005 Valid XHTML 1.0 Valid CSS All text, graphics © 2002-2005 by Omondo