summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDoug Showell2012-06-26 03:47:57 (EDT)
committer Wim Jongman2012-06-26 03:47:57 (EDT)
commitddfa5e0a81871d135f1d1757c49b2c389bb08930 (patch)
tree12aa0940d2804cb35467ce595e8c2d6f126af8a4
parent4a518b6e61b8bb2f057bcc3fe719a584194c0446 (diff)
downloadorg.eclipse.nebula-ddfa5e0a81871d135f1d1757c49b2c389bb08930.zip
org.eclipse.nebula-ddfa5e0a81871d135f1d1757c49b2c389bb08930.tar.gz
org.eclipse.nebula-ddfa5e0a81871d135f1d1757c49b2c389bb08930.tar.bz2
bug 353930: CDateTime miliseconds not editable.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=353930
-rw-r--r--widgets/cdatetime/org.eclipse.nebula.widgets.cdatetime/src/org/eclipse/nebula/widgets/cdatetime/CDateTime.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/widgets/cdatetime/org.eclipse.nebula.widgets.cdatetime/src/org/eclipse/nebula/widgets/cdatetime/CDateTime.java b/widgets/cdatetime/org.eclipse.nebula.widgets.cdatetime/src/org/eclipse/nebula/widgets/cdatetime/CDateTime.java
index 4a9db2d..faeb6fc 100644
--- a/widgets/cdatetime/org.eclipse.nebula.widgets.cdatetime/src/org/eclipse/nebula/widgets/cdatetime/CDateTime.java
+++ b/widgets/cdatetime/org.eclipse.nebula.widgets.cdatetime/src/org/eclipse/nebula/widgets/cdatetime/CDateTime.java
@@ -1684,7 +1684,7 @@ public class CDateTime extends BaseCombo {
}
if (checkButton() && ((isDate != wasDate) || (isTime != wasTime))) {
if (defaultButtonImage) {
- if (isDate && isTime) {
+ if (isDate && isTime) {
doSetButtonImage(Resources.getIconCalendarClock());
} else if (isDate) {
doSetButtonImage(Resources.getIconCalendar());
@@ -2003,6 +2003,9 @@ public class CDateTime extends BaseCombo {
case Calendar.ERA:
digits = 1;
break;
+ case Calendar.MILLISECOND:
+ digits = 3;
+ break;
default:
digits = 2;
}