Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Aird Editor - Customize tree structure of model elements.
Aird Editor - Customize tree structure of model elements. [message #1767966] Wed, 12 July 2017 12:44 Go to next message
Arunkumar Ramaswamy is currently offline Arunkumar RamaswamyFriend
Messages: 57
Registered: April 2014
Member
In the aird editior in Sirius 5, the first column shows the model elements in a tree structure. Is it possible to customize this view such as hiding some elements in tree, etc.
The viewpoints are defined for some elements in the model, I want to hide unwanted child elements to the user.

Any help much appreciated.

Regards
Arun
Re: Aird Editor - Customize tree structure of model elements. [message #1767985 is a reply to message #1767966] Wed, 12 July 2017 14:16 Go to previous message
Pierre Guilet is currently offline Pierre GuiletFriend
Messages: 250
Registered: June 2017
Senior Member
Hi,

You already have some filters available when clicking on filtering button:
index.php/fa/29948/0/

To add new one allowing to hide elements, you have to provide a custom filter.
To do that we have used the CNF framework from which you can read there http://help.eclipse.org/neon/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Fguide%2Fcnf.htm

Basically you have to use the extension point org.eclipse.ui.navigator.navigatorContent.

It allows you to define a common filter with a class applying the filtering as you want.
The only constraint to have your custom filter visible in the aird editor in the corresponding wizard is to use as filter's id an id respecting the reg exp org.eclipse.sirius.ui.commonFilter.*

You also can specify extension and content provider with this extension point. The id reg exp to respect to add custom ones is: org.eclipse.sirius.ui.editor.graphicalcomponents.semanticModelsViewer.contentExtension.*

Example:
index.php/fa/29949/0/

Regarding viewpoints, I am not sure to understand your need.

Viewpoints are defined for models kind and provide diagram, tree and table editors to edit parts of your models.

Even if you hide some models or model elements, the tree showing viewpoints will not be changed in the current implementation.

Indeed, Sirius does not take in consideration models visible in the tree to computes viewpoints to show but the models available in the aird.

Hope this answers your question.

Regards



Pierre Guilet - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Previous Topic:Floating node
Next Topic:Synchronization between xTtext editor and Sirius editor - location nodes
Goto Forum:
  


Current Time: Fri Apr 26 17:08:55 GMT 2024

Powered by FUDForum. Page generated in 0.03096 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top