Bug 530558 - [API] Programmatic access to unexpanded nodes in tree editors
Summary: [API] Programmatic access to unexpanded nodes in tree editors
Status: NEW
Alias: None
Product: Sirius
Classification: Modeling
Component: Tree (show other bugs)
Version: 5.0.0   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2018-01-31 08:45 EST by Loris Boiteux CLA
Modified: 2018-02-01 09:58 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Loris Boiteux CLA 2018-01-31 08:45:57 EST
Hi,

I work for Thales AVS France (used to be Thales Avionics) and I'm in charge of a modeling tool based on tree editors.

We have very good feedback on our solution, integrating Sirius 5.0.1. 

We would like implement use cases like this:
    - EMF or user defined validation of a tree data
    - Error view listing markers or something like that
    - Double clic on a marker => the tree expands to the involved object node and select it to display the property view and correct the wrong data

After som research, it appears that children nodes are created in the tree memory only when an expand is required by the user.
But it feels like there is no API providing the developer with a means to do it programmaticaly.
Comment 1 Steve Monnier CLA 2018-02-01 09:58:19 EST
Hello,

Indeed, validation can be created for a Diagram description, but not for a Tree description. As far as I know, this evolution is not planned in the next versions.
However, you could provide a contextual action (popup menu in a TreeElement in a VSM) that would call Java services and put some markers if needed (see org.eclipse.sirius.common.tools.api.util.MarkerUtil.addMarkerFor(IResource, String, int, String)).

Regards,
Steve