Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Spinner - Min, Max values
Spinner - Min, Max values [message #479581] Tue, 11 August 2009 15:46 Go to next message
Opfermann C is currently offline Opfermann CFriend
Messages: 53
Registered: July 2009
Location: Annecy
Member
Hi,

I have a question concerning the min and max behaviour of the SWT Spinner
component.
In some cases, I have the same value for the min and max values. But this
is managed by the component as an error case :

Spinner.java => L 1090 : if (maximum <= minimum) return;

Does anyone knows why this has been done and if it is possible to allow
the min and max values to be equal in the next release of SWT ?

Thanks in advance,

Cédric
Re: Spinner - Min, Max values [message #479850 is a reply to message #479581] Wed, 12 August 2009 17:21 Go to previous messageGo to next message
Eric Rizzo is currently offline Eric RizzoFriend
Messages: 3070
Registered: July 2009
Senior Member
Opfermann Cédric wrote:
> Hi,
>
> I have a question concerning the min and max behaviour of the SWT
> Spinner component.
> In some cases, I have the same value for the min and max values. But
> this is managed by the component as an error case :
>
> Spinner.java => L 1090 : if (maximum <= minimum) return;
>
> Does anyone knows why this has been done and if it is possible to allow
> the min and max values to be equal in the next release of SWT ?

Note: when referring to code, you should give more context, including
the version of SWT and the method you are referencing. In the current
(3.5) version of Spinner.java, there is no line 1090.
Hopefully someone will explain why that limitation exits; if you want to
request a change you should do so via Bugzilla:
https://bugs.eclipse.org/bugs

Hope this helps,
Eric
Re: Spinner - Min, Max values [message #479968 is a reply to message #479850] Thu, 13 August 2009 09:47 Go to previous messageGo to next message
Opfermann C is currently offline Opfermann CFriend
Messages: 53
Registered: July 2009
Location: Annecy
Member
OK, thanks for your help, I posted a bug report, let's see how it will be
corrected or not :)

https://bugs.eclipse.org/bugs/show_bug.cgi?id=286489
Re: Spinner - Min, Max values [message #480026 is a reply to message #479968] Thu, 13 August 2009 13:39 Go to previous message
Eric Rizzo is currently offline Eric RizzoFriend
Messages: 3070
Registered: July 2009
Senior Member
Opfermann Cédric wrote:
> OK, thanks for your help, I posted a bug report, let's see how it will
> be corrected or not :)
>
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=286489
>

Good.
I see that it was marked as a duplicate of another (old) bug report. I
suggest you make an attempt at fixing the problem and submitting a
patch, since bugs or feature requests with code patches tend to get more
attention than those without. Plus, it is a wonderful feeling to see
some code you wrote make it into the platform!

Eric
Previous Topic:SWT Label with SWT.WRAP and SWT.CENTER is wrapped, but not centered (Mac OS X)
Next Topic:Preventing a shell from closing
Goto Forum:
  


Current Time: Fri Apr 19 04:31:31 GMT 2024

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

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

Back to the top