Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Radio Button clicking does not work if you click only once (Important Ergonomic issue)
Radio Button clicking does not work if you click only once (Important Ergonomic issue) [message #1853871] Wed, 20 July 2022 13:36 Go to next message
Namea lasta is currently offline Namea lastaFriend
Messages: 50
Registered: March 2022
Member
Hello,
This is kind of a big problem in term of the user exprience (Ergonomics)
I made a radio button inside properties.
Lets say it contains informations about "status" or some object. (Complete, incomplete etc)

The user who selects the graphical node then select one of the radio buttons shown in the image, will find that his choice WAS NOT SAVED.

In other words: If your radio button had no value, and the user selects a new value, the new value is not saved, UNLESS you click /select TWICE or three times.

After that you will be able to select a new radio button value only once and it shall work.

Again: If you select the value of a button who has no value as a user, his selection is NOT saved unless he does several clicks.

This is a problem, because the user might think his choice was saved and move on to the next node, only to come back and find that all his choices were not saved.
Re: Radio Button clicking does not work if you click only once (Important Ergonomic issue) [message #1853965 is a reply to message #1853871] Tue, 26 July 2022 09:00 Go to previous messageGo to next message
Glenn Plouhinec is currently offline Glenn PlouhinecFriend
Messages: 22
Registered: April 2020
Junior Member
Hi Namea,

I recently face a similar issue following https://www.eclipse.org/sirius/doc/developer/extensions-properties_provide_custom_widget_advanced.html. I created my own Widget with some text fieds and a checkbox, but the checkbox was not saved until I clicked on it several times...
In my CheckBoxPropertySection class, I had to modify the method
org.eclipse.sirius.editor.properties.sections.common.AbstractCheckBoxPropertySection.getFeatureValue(String)
For a checkbox, I cast the String values "true" and "false" as boolean, but in fact the returned type should match the type of the attribute defined in the metamodel (In "Custom Advanced Widget" doc, we defined an InterpretedExpression, which is a String), so the returned type for *PropertySection.getFeatureValue(String) should also be a String, otherwise the command executed in *PropertySection.handleSelectionChanged() cannot be created.

If this doesn't solve your problem, we will need more informations to help you: What did you do to add your radio button ? Did you follow this documentation? Where are you trying to add your radio button ?

Regards,
Glenn


Glenn Plouhinec - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: Radio Button clicking does not work if you click only once (Important Ergonomic issue) [message #1854088 is a reply to message #1853965] Mon, 01 August 2022 07:46 Go to previous messageGo to next message
Namea lasta is currently offline Namea lastaFriend
Messages: 50
Registered: March 2022
Member
Hello Glenn,
All my sirius programming was done though Sirius SPECIFIER, I did not have to touch the code at all except for some aql code inside the specifier interface.
Do you know where I could find the codes you mentioned in my explorer (see image attached)


Other than that, I found a solution, you have to select a base default value, this will replace the multiple clicks the user has to do. It's not perfect but it did the trick.
  • Attachment: tree.png
    (Size: 14.30KB, Downloaded 104 times)
Re: Radio Button clicking does not work if you click only once (Important Ergonomic issue) [message #1855989 is a reply to message #1854088] Mon, 14 November 2022 15:34 Go to previous message
Namea lasta is currently offline Namea lastaFriend
Messages: 50
Registered: March 2022
Member
Hello again,
Could you tell me more about your (CheckBoxPropertySection class) ?
How are you developping?
You start from the eCore than start programming?
Previous Topic:Image Export Bug in Sirius 6.3.0 -> 6.6.0
Next Topic:[ANN] Sirius 7.0.6
Goto Forum:
  


Current Time: Mon Oct 07 21:44:31 GMT 2024

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

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

Back to the top