[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.technology.nebula] CalendarCombo Error Handling

If I edit the date in a CalendarCombo directly and enter an invalid format, the following exception is thrown:

org.eclipse.nebula.widgets.calendarcombo.CalendarDateParseException: Date format does not match date string in terms of splitter character numbers
at org.eclipse.nebula.widgets.calendarcombo.DateHelper.slashParse(DateHelper.java:540)
at org.eclipse.nebula.widgets.calendarcombo.DateHelper.parse(DateHelper.java:158)
at org.eclipse.nebula.widgets.calendarcombo.CalendarCombo.parseTextDate(CalendarCombo.java:943)
at org.eclipse.nebula.widgets.calendarcombo.CalendarCombo.access$7(CalendarCombo.java:923)
at org.eclipse.nebula.widgets.calendarcombo.CalendarCombo$2.handleEvent(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...