Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Interaction with tree and table views
Interaction with tree and table views [message #1553382] Thu, 08 January 2015 17:19 Go to next message
Frédéric Botron is currently offline Frédéric BotronFriend
Messages: 9
Registered: December 2014
Junior Member
Hi,

I would like to know if it possible to interact programmatically with the views provided by Sirius (typically table view and/or tree view), in order for example to change the selected element(s) or to listen for events (selection change, double-click on an item). If the answer is yes, what documentation should I look for ?

Thanks in advance.
Re: Interaction with tree and table views [message #1554661 is a reply to message #1553382] Fri, 09 January 2015 10:27 Go to previous messageGo to next message
Esteban Dugueperoux is currently offline Esteban DugueperouxFriend
Messages: 472
Registered: July 2009
Senior Member
Hi Frédéric,

If you talk about tree and table editor, as they use JFace TreeViewer,
you can use JFace/SWT API to add listeners to be notified of SWT changes.

Best Regards.

Le 08/01/2015 18:19, Frédéric Botron a écrit :
> Hi,
>
> I would like to know if it possible to interact programmatically with
> the views provided by Sirius (typically table view and/or tree view), in
> order for example to change the selected element(s) or to listen for
> events (selection change, double-click on an item). If the answer is
> yes, what documentation should I look for ?
>
> Thanks in advance.



--
Esteban Dugueperoux - Obeo

Need professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: Interaction with tree and table views [message #1554963 is a reply to message #1554661] Fri, 09 January 2015 14:25 Go to previous messageGo to next message
Frédéric Botron is currently offline Frédéric BotronFriend
Messages: 9
Registered: December 2014
Junior Member
Hello Esteban,

Yes, using the TreeView object to get access to the tree's selection and events (without modifying directly the underlying model) was my intent.

But my main problem is to find my way to the TreeViewer object from the Sirius Session object. What API calls do I need to get it ?

I am behind a company firewall which prevents me from packaging the Sirius Javadoc using Maven, so I cannot find the information for the moment. I did not find it in https://www.eclipse.org/sirius/doc/developer/Architecture.html and I think I need the Javadoc to go further. I think I'll generate the Sirius Javadoc one evening at home Smile

[Updated on: Fri, 09 January 2015 16:08]

Report message to a moderator

Re: Interaction with tree and table views [message #1561884 is a reply to message #1554963] Tue, 13 January 2015 11:04 Go to previous messageGo to next message
Esteban Dugueperoux is currently offline Esteban DugueperouxFriend
Messages: 472
Registered: July 2009
Senior Member
Hi,

Could you explain precisly your need? Elements selection depends of the
editor for which you want selection.

Best Regards.

Le 09/01/2015 15:25, Frédéric Botron a écrit :
> Hello Esteban,
>
> Yes, using the TreeView object to get access to the tree's selection
> and events (without modifying directly the underlying model) was my intent.
>
> But my main problem is to find my way through the TreeViewer object
> from the Sirius Session object. What API calls do I need to get it ?
>
> I am behind a company firewall which prevents me from packaging the
> Sirius Javadoc using Maven, so I cannot find the information for the
> moment. I did not find it in
> https://www.eclipse.org/sirius/doc/developer/Architecture.html and I
> think I need the Javadoc to go further. I think I'll generate the Sirius
> Javadoc one evening at home :)
>



--
Esteban Dugueperoux - Obeo

Need professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: Interaction with tree and table views [message #1561892 is a reply to message #1554963] Tue, 13 January 2015 11:05 Go to previous message
Esteban Dugueperoux is currently offline Esteban DugueperouxFriend
Messages: 472
Registered: July 2009
Senior Member
You can yet use DialectUIManager.INSTANCE.setSelection(DialectEditor,
List<DRepresentationElement>); API.

Le 09/01/2015 15:25, Frédéric Botron a écrit :
> Hello Esteban,
>
> Yes, using the TreeView object to get access to the tree's selection
> and events (without modifying directly the underlying model) was my intent.
>
> But my main problem is to find my way through the TreeViewer object
> from the Sirius Session object. What API calls do I need to get it ?
>
> I am behind a company firewall which prevents me from packaging the
> Sirius Javadoc using Maven, so I cannot find the information for the
> moment. I did not find it in
> https://www.eclipse.org/sirius/doc/developer/Architecture.html and I
> think I need the Javadoc to go further. I think I'll generate the Sirius
> Javadoc one evening at home :)
>



--
Esteban Dugueperoux - Obeo

Need professional services for Sirius?
http://www.obeodesigner.com/sirius
Previous Topic:Can't select target during edge creation
Next Topic:Create edges between siblings
Goto Forum:
  


Current Time: Fri Apr 19 18:03:30 GMT 2024

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

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

Back to the top