Skip to main content



      Home
Home » Eclipse Projects » Sirius » Problems while editing double attributes with Text-Widget(Editing EDouble attributes with Text-Widget causes Error Message when an Integer is entered)
Problems while editing double attributes with Text-Widget [message #1808648] Fri, 28 June 2019 03:55 Go to next message
Eclipse UserFriend
Hello,

I created a properties page with Sirius to edit EDouble attributes of EMF Objects by using a Text-Widget. This works fine if the entered value actually is a double. So if I enter '1.0' there is no problem. If I simply enter '1', an error message is shown (see attachment). I understand that the 1 is parsed to a double and then set as the new value, which causes the model and the view holding different values. But is there actually a way to deactivate this error message?
In my case it is useless, because the view is updated immediately after I enter the new value and it's displaying the 1.0 while the error message is still showing (I set the 'Force refresh' to true of the dynamic mapping that creates the Text-Widget). When I press one of the buttons in the error dialog I additionally get a SWT-Exception that tells me 'Widget is disposed'.

So is there a way to disable the error message or do I have to simply avoid it by using a String attribute instead of a Double or forbidding inputs that are not formatted as double?

Kind regards
Sebastian
Re: Problems while editing double attributes with Text-Widget [message #1808807 is a reply to message #1808648] Tue, 02 July 2019 02:45 Go to previous messageGo to next message
Eclipse UserFriend
Problems while editing double attributes with Text-Widget Editing EDouble attributes with Text-Widget causes Error Message when an Integer is entered.

[Updated on: Wed, 03 July 2019 00:54] by Moderator

Re: Problems while editing double attributes with Text-Widget [message #1808980 is a reply to message #1808807] Fri, 05 July 2019 08:50 Go to previous message
Eclipse UserFriend
Hi,

This seems to be a bug. You can create a bu ticket on https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Sirius

Nothing you can do.

Regards,

[Updated on: Fri, 05 July 2019 08:51] by Moderator

Previous Topic:How to avoid overlapping of containers while using custom layout provider
Next Topic:Why does Sirius display an image with an exception?
Goto Forum:
  


Current Time: Sun Jul 13 19:17:16 EDT 2025

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

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

Back to the top