Skip to main content

Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Papyrus/Neon Work Description/Improvements/Tree Customization

< Papyrus‎ | Neon Work Description
Revision as of 09:01, 18 January 2016 by Unnamed Poltroon (Talk) (Created page with "=Tree Customization= In the context of [Bug 485539 https://bugs.eclipse.org/bugs/show_bug.cgi?id=485539], the customization of Trees (Model Explorer, Properties view, ...) ha...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Tree Customization

In the context of [Bug 485539 https://bugs.eclipse.org/bugs/show_bug.cgi?id=485539], the customization of Trees (Model Explorer, Properties view, ...) has been changed. Especially, the "isVisible" custom property doesn't apply to Attributes and References anymore: it is now only used to show/hide specific elements.

To customize the Attributes/References displayed in Trees, you now need to extend the "visibleReferences" and "visibleAttributes" properties, which both return a List of features (Respectively List<EReference> and List<EAttribute>). Additionally, the "isVisible" query won't receive any parameter (It used to take one EStructuralFeature parameter)

Examples of such modification are available:

  • In org.eclipse.papyrus.uml.modelexplorer, resource/SimpleUML.custom uses a DisplayOnlyContainmentReferences query implemented in the java class org.eclipse.papyrus.uml.modelexplorer.queries.GetVisibleUMLReferencesQuery
  • In org.eclipse.papyrus.customization.properties, UICustom/PropertiesContext.custom uses a more complex visibleReferences query implemented in the java class org.eclipse.papyrus.customization.properties.query.GetVisibleFeaturesQuery

Back to the top