Community
Participate
Working Groups
Build Identifier: 20090920-1017 When using a CDateTime.setPattern of "HH:mm:ss.SSS", editing the "SSS" for miliseconds does not work. So, if one wants to set a field to ".100", they can't just type ".100" or even "100" in the "SSS" field. Instead, when they do that, they get ".010" and then the cursor jumps to the "HH" field. So, it's very cumbersome to set values to the tenths or hundredths of a second without having to hold down the arrow key to get to the desired number. And no, we can't just use "SS" because we do care about time in the miliseconds. Reproducible: Always Steps to Reproduce: 1.Bring up a CDateTime field with specified pattern of "HH:mm:ss.SSS". 2.Try to set the time to one tenths of a second. (.100) 3.See that the text gets modified only to .010
(In reply to comment #0) > And no, we can't just > use "SS" because we do care about time in the miliseconds. Do you care enough to provide a patch?
(In reply to comment #1) > (In reply to comment #0) > > > And no, we can't just > > use "SS" because we do care about time in the miliseconds. > > Do you care enough to provide a patch? Not sure exactly how to supply a fix, but the fix for this bug is to add a case statement for Calendar.MILLISECOND in org.eclipse.nebula.widgets.cdatetime.CDateTime.verify(Event). The case should have digits = 3;
> > Not sure exactly how to supply a fix, but the fix for this bug is to add a case You can clone the repo on github: https://github.com/eclipse/nebula You can then attach the changed source to this bug (straight up or as a patch). I will make sure to validate and commit the changes and recognize you as the author.
Created attachment 217824 [details] Fix for bug 353930 Attached is the patch for this bug. It adds a case for setting the amount of digits in a Calendar.MILLISECOND field.
Thanks Doug: Fix pushed to master: http://git.eclipse.org/c/nebula/org.eclipse.nebula.git/commit/?id=ddfa5e0a81871d135f1d1757c49b2c389bb08930
Unit test pushed to master: http://git.eclipse.org/c/nebula/org.eclipse.nebula.git/commit/?id=55d2e816479ce4956fe04d45d936581c56dfadcc
Doug, please verify and set to verified if it is ok or else reopen. Changes can be picked up from our update site in a few moments: http://www.eclipse.org/nebula/downloads.php
Looks good. Doesn't look like I have the permissions to change the status to verified.