CalendarCombo Error Handling [message #595712] |
Fri, 17 July 2009 13:34 |
Eclipse User |
|
|
|
If I edit the date in a CalendarCombo directly and enter an invalid
format, the following exception is thrown:
org.eclipse.nebula.widgets.calendarcombo.CalendarDateParseEx ception: Date
format does not match date string in terms of splitter character numbers
at
org.eclipse.nebula.widgets.calendarcombo.DateHelper.slashPar se(DateHelper.java:540)
at
org.eclipse.nebula.widgets.calendarcombo.DateHelper.parse(Da teHelper.java:158)
at
org.eclipse.nebula.widgets.calendarcombo.CalendarCombo.parse TextDate(CalendarCombo.java:943)
at
org.eclipse.nebula.widgets.calendarcombo.CalendarCombo.acces s$7(CalendarCombo.java:923)
at
org.eclipse.nebula.widgets.calendarcombo.CalendarCombo$2.han dleEvent(CalendarCombo.java:454)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)
...
How do I catch this exception so I can provide the user with some useful
feedback? My current workaround is to make the CalendarCombo
SWT.READ_ONLY...
|
|
|
Powered by
FUDForum. Page generated in 0.04182 seconds