Skip to main content



      Home
Home » Eclipse Projects » Sirius » How to enable and disable Node from Palette(How to enable and disable Node from Palette)
How to enable and disable Node from Palette [message #1801910] Tue, 29 January 2019 08:43 Go to next message
Eclipse UserFriend
Hello

I have created some node into palette using sirius framework, but I want to desable and enable from the palette. I have seen there is option to give the pre-condition but I am not able to do this.

Can some onle help into this.

Regards
Ravi
Re: How to enable and disable Node from Palette [message #1801917 is a reply to message #1801910] Tue, 29 January 2019 09:05 Go to previous messageGo to next message
Eclipse UserFriend
Hello,

The pre-condition field of a tool is not used to determine its visibility on the palette but to determine if it can be applied on a diagram element. For instance, you can have a precondition "aql:name.startsWith("S")" to have a tool that can be only applied if the target element name starts by an S.
What is your condition to enable/disable a tool in the palette? The simplest would be to place them in different layers [1]. This way the tool will be visible or not depending on your layers activation.

Regards,
Steve

[1] https://www.eclipse.org/sirius/doc/specifier/diagrams/Diagrams.html#layers
Re: How to enable and disable Node from Palette [message #1802212 is a reply to message #1801917] Mon, 04 February 2019 05:45 Go to previous message
Eclipse UserFriend
Hi,

I am using service class and written method, that method return type is boolean, so based on boolean type I want to disable and enable the node from palette. Is it not possible to get the fileter of node based on true/false on palette?

Thanks and Regards
Ravi
Previous Topic:Table column with two or more possibilities,
Next Topic:Table column derivation and if else
Goto Forum:
  


Current Time: Fri Jun 13 16:21:00 EDT 2025

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

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

Back to the top