There are 10 RoseItemView subtypes listed in the Extensibility Interface, some of which you may be able to access in a manner similar to how you are accessing class views.  For those that you can't access that way, there are two other ways to color the views.

Method 1 -
        Access the diagram where you want to make the change
        Use Diagram.ItemViews to get the views on the diagram
        Use RoseItemView.GetPropertyClassName() to determine if the view is for an item you are interested in
        Use RoseItemView.Item.Stereotype to determine the stereotype
        Colour the ItemView based on the stereotype

Method 2 -
        Operations and attributes do not have views that are accessible through the REI, so you can create your own stereotype icons using wmf, emf, or bitmaps files.  These icons will show in the browser and in class diagrams when you register them in defaultstereotypes.ini or your own .ini file associated to an add-in.  See Rose Help for more detail on this.

Reply via email to