Date value = (Date) getValue( );  if ( value != null ) { TimeDialogInfo time = new TimeDialogInfo( ); time.setTime( value.getTime( ) ); dialog.setInfo( time );
Object value =  getValue( ); Date dateValue = new Date( ); try { if ( value != null ) { TimeDialogInfo time = new TimeDialogInfo( ); if( value instanceof String && !value.toString().trim().equals("") ) { dateValue  = new SimpleDateFormat( time.getFormat()).parse(value.toString() ); } else if( value instanceof Date ) { dateValue  = (Date)value; } time.setTime( dateValue.getTime( ) ); dialog.setInfo( time ); } } catch ( Exception e ) { e.printStackTrace();
	protected Object openDialogBox( Control cellEditorWindow )	{		TimeOptionDialog dialog = new TimeOptionDialog( cellEditorWindow.getShell( ) );		Date value = (Date) getValue( );		if ( value != null )		{			TimeDialogInfo time = new TimeDialogInfo( );			time.setTime( value.getTime( ) );			dialog.setInfo( time );		}		dialog.open( );		if ( dialog.getReturnCode( ) == SelectionDialog.OK )		{			TimeDialogInfo result = (TimeDialogInfo) dialog.getInfo( );			return new Date( result.getTime( ) );		}		return value;	}