Skip to main content



      Home
Home » Eclipse Projects » Sirius » trigger refresh on filter
trigger refresh on filter [message #1817026] Thu, 14 November 2019 04:42 Go to next message
Eclipse UserFriend
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 05:08 Go to previous messageGo to next message
Eclipse UserFriend
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,
Re: trigger refresh on filter [message #1817038 is a reply to message #1817030] Thu, 14 November 2019 09:05 Go to previous messageGo to next message
Eclipse UserFriend
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 09:06] by Moderator

Re: trigger refresh on filter [message #1817094 is a reply to message #1817038] Fri, 15 November 2019 08:09 Go to previous messageGo to next message
Eclipse UserFriend
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 10:26 Go to previous message
Eclipse UserFriend
Hi Michael,

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

Regards
Previous Topic:Unable to create working Element based edge
Next Topic:Using Label Figure as decorator
Goto Forum:
  


Current Time: Sun Jul 27 02:28:21 EDT 2025

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

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

Back to the top