Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » trigger refresh on filter
trigger refresh on filter [message #1817026] Thu, 14 November 2019 09:42 Go to next message
Michael C is currently offline Michael CFriend
Messages: 37
Registered: April 2019
Member
Hello,

I found out about the recently added feature to trigger a refresh on graphical changes.
(https://www.eclipse.org/sirius/doc/developer/trigger-refresh-graphical-changes.html)

I was not able to adapt the predicate to trigger a refresh on filters.

Is this possible ?
Re: trigger refresh on filter [message #1817030 is a reply to message #1817026] Thu, 14 November 2019 10:08 Go to previous messageGo to next message
Maxime Porhel is currently offline Maxime PorhelFriend
Messages: 476
Registered: July 2009
Location: Nantes, France
Senior Member
Hi Michael,

This feature has been introduced in Sirius 6.1.3 and 6.2.0.

The "refresh" triggered by this entry point is the Sirius refresh ie. the evaluation of the diagram description, mappings and styles to update the diagram content.

Could you give us more hints about what you are trying to achieve ? With which kind of filters ?

Regards,


Maxime Porhel - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius

Join the Sirius community at SiriusCon. Register for free: Nov. 9th Paris
http://www.siriuscon.org/
Re: trigger refresh on filter [message #1817038 is a reply to message #1817030] Thu, 14 November 2019 14:05 Go to previous messageGo to next message
Michael C is currently offline Michael CFriend
Messages: 37
Registered: April 2019
Member
Hello Maxime,

The users can hide some children node containeur with a filter declared in the .odesign. I would like to set the edges source / target to the parent node containeur if the children is hidden.
I managed to do most of the implementation but the user would have to manualy refresh the diagram after he hides some node containeur.

I was thinking of using this feature but I'm not able to use it with filters that hide elements.

Regards,

[Updated on: Thu, 14 November 2019 14:06]

Report message to a moderator

Re: trigger refresh on filter [message #1817094 is a reply to message #1817038] Fri, 15 November 2019 13:09 Go to previous messageGo to next message
Michael C is currently offline Michael CFriend
Messages: 37
Registered: April 2019
Member
I found the solution, I had to use NotationPackage.eINSTANCE.getView_Visible().
Re: trigger refresh on filter [message #1817114 is a reply to message #1817094] Fri, 15 November 2019 15:26 Go to previous message
Maxime Porhel is currently offline Maxime PorhelFriend
Messages: 476
Registered: July 2009
Location: Nantes, France
Senior Member
Hi Michael,

I was about to answer the same tip when I saw your message.

Regards


Maxime Porhel - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius

Join the Sirius community at SiriusCon. Register for free: Nov. 9th Paris
http://www.siriuscon.org/
Previous Topic:Unable to create working Element based edge
Next Topic:Using Label Figure as decorator
Goto Forum:
  


Current Time: Tue Feb 25 15:40:25 GMT 2020

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

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

Back to the top