Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Sapphire » If/Then/Else no longer available in sdef?
If/Then/Else no longer available in sdef? [message #1142440] Thu, 17 October 2013 16:21 Go to next message
Paul Kolonay is currently offline Paul KolonayFriend
Messages: 16
Registered: September 2013
Junior Member
Has support for If/Then/Else been removed from the sdef? If so what is the preferred way to implement this functionality? I checked the migration guide but may have missed it.

Along the same line... what is the preferred way to disable an actuator? I have tried adding a Condition class but this does not seem to affect the behavior.


Re: If/Then/Else no longer available in sdef? [message #1142447 is a reply to message #1142440] Thu, 17 October 2013 16:28 Go to previous messageGo to next message
Greg Amerson is currently offline Greg AmersonFriend
Messages: 119
Registered: March 2010
Senior Member
Hi Paul,

Now I believe the correct thing to use is Visible when expressions. They are much nice than if/then/else and makes the SDEFs more readable IMHO.

For disabling the Actuator are you wanting it to not be visible in UI or just simpled 'disabled/grayed'?
Re: If/Then/Else no longer available in sdef? [message #1142482 is a reply to message #1142447] Thu, 17 October 2013 17:00 Go to previous messageGo to next message
Konstantin Komissarchik is currently offline Konstantin KomissarchikFriend
Messages: 1077
Registered: July 2009
Senior Member
Quote:
Now I believe the correct thing to use is Visible when expressions.


That's right. A few of the constructs in sdef where we have functional overlap have been eliminated in 0.7 code line recently. I am still working on updating the migration guide.
Re: If/Then/Else no longer available in sdef? [message #1142533 is a reply to message #1142440] Thu, 17 October 2013 17:41 Go to previous messageGo to next message
Paul Kolonay is currently offline Paul KolonayFriend
Messages: 16
Registered: September 2013
Junior Member
Thanks guys for the confirmation... that's the path I was suspecting.


Quote:
For disabling the Actuator are you wanting it to not be visible in UI or just simpled 'disabled/grayed'?



Suggestions on either case (visible or) would be helpful. I kept thinking there should be a 'visible when' on the actuator.
Re: If/Then/Else no longer available in sdef? [message #1142540 is a reply to message #1142533] Thu, 17 October 2013 17:48 Go to previous messageGo to next message
Konstantin Komissarchik is currently offline Konstantin KomissarchikFriend
Messages: 1077
Registered: July 2009
Senior Member
There is visible-when support for the actuator, but it looks like the sdef editor is missing that property. Could you open a bug?

As for the option of controlling enablement, you take care of that in your action handler implementation via the setEnabled method.
Re: If/Then/Else no longer available in sdef? [message #1142974 is a reply to message #1142540] Fri, 18 October 2013 00:15 Go to previous messageGo to next message
Konstantin Komissarchik is currently offline Konstantin KomissarchikFriend
Messages: 1077
Registered: July 2009
Senior Member
Never mind on opening the bug for missing visible-when for actuator. I have fixed the issue. Please verify.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=419777

Pretty much all form components support visible-when directive and now that's correctly exposed in the sdef editor.
Re: If/Then/Else no longer available in sdef? [message #1144005 is a reply to message #1142974] Fri, 18 October 2013 15:21 Go to previous messageGo to next message
Paul Kolonay is currently offline Paul KolonayFriend
Messages: 16
Registered: September 2013
Junior Member
Thanks for the prompt action... I was all set to edit the sdef by hand.

Verified that 'Visible when' is now available in the editor for actuators.
Re: If/Then/Else no longer available in sdef? [message #1144046 is a reply to message #1144005] Fri, 18 October 2013 16:01 Go to previous message
Konstantin Komissarchik is currently offline Konstantin KomissarchikFriend
Messages: 1077
Registered: July 2009
Senior Member
Thanks for the verification. Could you add a verification note to the bug? That will allow me to close it.
Previous Topic:A round of introductions?
Next Topic:internal packages in sapphire.ui
Goto Forum:
  


Current Time: Tue Mar 19 02:05:54 GMT 2024

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

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

Back to the top