time out user-notification

View: New views
2 Messages — Rating Filter:   Alert me  

time out user-notification

by Hochmeister Rudolf :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

Is it possible to forward an occuring time out - defined in
org.geotools.data.wfs.WFSDataStoreFactory.TIMEOUT - to some user
notification(dialogbox or statusbar). Can you maybe give a helpfull
hint?

cheers,
Rudi
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel

Re: time out user-notification

by Ugo Taddei-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

Rudi Hochmeister wrote:
> Hi,
>
> Is it possible to forward an occuring time out - defined in
> org.geotools.data.wfs.WFSDataStoreFactory.TIMEOUT - to some user
> notification(dialogbox or statusbar). Can you maybe give a helpfull
> hint?

see http://wiki.eclipse.org/Platform_UI_Error_Handling


copying and pasting a couple of examples I have:

IStatus status = new Status(IStatus.ERROR, YourPlugin.ID, IStatus.ERROR,
mesg, ex);
ErrorDialog.openError(getSite().getShell(), "Panic", userMessage, status);


or

  IStatus status = new Status(IStatus.ERROR, YourPlugin.ID,
IStatus.ERROR, mesg, ex);
StatusManager.getManager().handle(status, StatusManager.SHOW);

(one of them is an old way, but you'll have to read the docs to see which)

Cheers,

Ugo

>
> cheers,
> Rudi
> _______________________________________________
> User-friendly Desktop Internet GIS (uDig)
> http://udig.refractions.net
> http://lists.refractions.net/mailman/listinfo/udig-devel
>
>
>
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel