Community
Participate
Working Groups
With the Show/Hide Contents action, we can visualize inherited members in Classifier, but we can easily distinguish the owned feature and the inherited feature. It could be interesting to precise graphically this information. We have some possibilities : - change the color of the inherited elements - change the font of the inherited elements - change the style of the border of the inherited elements - add an overlay/icon on the inherited elements - The 2 first possibilities are not possible, because the user can change these properties in the Appearance Tab. - Changing the border style is not very nice, moreover, some elements don't have border (Property in Class Diagram for example) - Adding an Icon seems be the most efficient solution. We will implement this solution
Done in r2938 We use a service to add an icon to the inherited elements. The extension point org.eclipse.gmf.runtime.decoratorProvider is used to do that. If the created element (graphical creation) is an Inherited Feature, the decoration provider add an icon (the Generalization icon) next to the elements. Note : the icon size is 15x15, because 16x16 was too big when we are is a Compartment List.
Minor change in r2940
r2944, Adds a listener on the Type of the graphical parent (when its a Property), to refresh the display of the decoration
in R2959 : Change the image for the inherited features Add a specific locator for the affixed child node (OverlayLocator)
Minor changes in r2984 and 2985 : all the overlays are now on the bottom left side (excepted in Compartment List, where they are on left side)
The overlay is not correctly updated if the Property is moved. e.g. In Composite Structure Diagram Create 2 composite with inheritance Create a Property in the parent Class Show the same Property in the child Class (appears with overlay) Move the Property from Parent to Child Class -> the overlay is not removed from the existing view showing the Property in the child Class.
Corrected in r3013.
In r3018 : correct a NPE when we do an Undo, after changing the type of a Property
In r3020 Re-correct the preceding NPE!
In r3112 : adds tests before adding listener on the EObject (listener is added only for Classifier, Property and Operation)
This feature is done. I close the bug.