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

Difference between revisions of "Papyrus/Neon Work Description/Improvements/Tree Customization"

(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...")
 
(Tree Customization)
 
Line 1: Line 1:
 
=Tree Customization=
 
=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.
+
In the context of [https://bugs.eclipse.org/bugs/show_bug.cgi?id=485539 Bug 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)
 
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)

Latest revision as of 09:03, 18 January 2016

Tree Customization

In the context of Bug 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