Topic
  • 1 reply
  • Latest Post - ‏2005-06-16T14:25:56Z by SystemAdmin
SystemAdmin
SystemAdmin
14225 Posts

Pinned topic Plugin development with RSA

‏2005-06-16T12:16:12Z |
Is there a good source of information on how to develop plugins in RSA. Specifically, what are the extendable pieces in RSA, and where the extension points lie. I have followed the small tutorial from developerworks on "UML to C++ Transformation Extensibility", and got a usable extension written and working. However, i'd like to do some more complex things, some related to extending that transformation, and some related to extending other pieces in RSA. For example:

1) I'd like to write a plugin which extends the modeling UI to support the insertion of Doxygen comments. In other words, When one creates a UML2 class, part of the general tab of properties, or perhaps its own tab entirely would be fields to fill in such as "brief", "precondition", "postcondition", "exceptions". The same would apply for operations, but also would add a field for each parameter, such that if an operation had 4 parameters, you would have 4 "param" fields to fill in.

2) To go along with #1, a plugin extending the UML2 to C++ transformation to recognize these new fields in the class and generate the comments appropriately in the transformed C++ code.

3) Is there a way to provide for options in a transformation extension. Specifically, the UML2 -> C++ extension plugin I wrote adds a comment at the top of all headers and bodies (cpp files) generated that includes the datamarking/copyright information so that when code is generated, the datamarking is automatically there. The question is, can one provide, perhaps in a message box sort of dialog, a selectable list of choices, as there are multiple datamarkings specific to the rights necessary for the software being datamarked (ie government rights, program rights, company rights, etc).

Thanks,
Chris Fagyal
United Defense, L.P.
Fridley, MN
Updated on 2005-06-16T14:25:56Z at 2005-06-16T14:25:56Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    14225 Posts

    Re:Plugin development with RSA

    ‏2005-06-16T14:25:56Z  
    There are many API examples accessible from File > New > Examples, look
    into the "Modeler Plug-ins" category. The online help contains Javadoc for
    the public API (see Extending Rational Software Architect functionality >
    extensibility reference), for modeler specific extensibility look at the
    following package's documentation:
    com.ibm.xtools.modeler
    com.ibm.xtools.emf.msl
    com.ibm.xtools.common.core.service
    com.ibm.xtools.notation
    com.ibm.xtools.umlnotation
    com.ibm.xtools.viz.ui

    Thanks

    - Fred

    _________________________________
    Frédéric Plante
    Rational Software, IBM Software Group
    770 Palladium Drive, Ottawa, ON, Canada
    tel: (613) 591-7034

    cfagyal <disadmin@us.ibm.com>
    Sent by: owner-dev-tools@lists.us.ibm.com
    06/16/2005 08:16 AM
    Please respond to
    dev-tools
    To
    dev-tools@lists.us.ibm.com
    cc

    Subject
    dev-tools Plugin development with RSA
    Is there a good source of information on how to develop plugins in RSA.
    Specifically, what are the extendable pieces in RSA, and where the
    extension points lie. I have followed the small tutorial from
    developerworks on "UML to C++ Transformation Extensibility", and got a
    usable extension written and working. However, i'd like to do some more
    complex things, some related to extending that transformation, and some
    related to extending other pieces in RSA. For example:

    1) I'd like to write a plugin which extends the modeling UI to support the
    insertion of Doxygen comments. In other words, When one creates a UML2
    class, part of the general tab of properties, or perhaps its own tab
    entirely would be fields to fill in such as "brief", "precondition",
    "postcondition", "exceptions". The same would apply for operations, but
    also would add a field for each parameter, such that if an operation had 4
    parameters, you would have 4 "param" fields to fill in.

    2) To go along with #1, a plugin extending the UML2 to C++ transformation
    to recognize these new fields in the class and generate the comments
    appropriately in the transformed C++ code.

    3) Is there a way to provide for options in a transformation extension.
    Specifically, the UML2 -> C++ extension plugin I wrote adds a comment at
    the top of all headers and bodies (cpp files) generated that includes the
    datamarking/copyright information so that when code is generated, the
    datamarking is automatically there. The question is, can one provide,
    perhaps in a message box sort of dialog, a selectable list of choices, as
    there are multiple datamarkings specific to the rights necessary for the
    software being datamarked (ie government rights, program rights, company
    rights, etc).

    Thanks,
    Chris Fagyal
    United Defense, L.P.
    Fridley, MN
    <============================================================
    To unsubscribe, send email to
    majordomo@lists.us.ibm.com and put these words in the
    message body: unsubscribe dev-tools
    ============================================================>

    http://att1.html