Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Nebula » CalendarCombo Error Handling
CalendarCombo Error Handling [message #595712] Fri, 17 July 2009 17:34
Eric Jain is currently offline Eric Jain
Messages: 266
Registered: July 2009
Senior Member
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...
Previous Topic:CalendarCombo Date Format
Next Topic:CalendarCombo Date Format
Goto Forum:
  


Current Time: Fri Oct 31 20:14:29 GMT 2014

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

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