Hard questions.
On 14-Feb-07, at 1:36 AM, Andrea Antonello wrote:
Some doubts I have:
1) what is used to wrap a file access in a standard way? We had
something like a datasource which just decided if it was a file: or
smb:
or http: and had facilities to get readers, writers, stream and so.
I'm
sure this is also in udig, but I can't find it. If not, what is the
logic to follow?
I don't have a good answer here. Jody?
2) how to properly throw exceptions? When to send in red to the
statusbar? Is there a way to open a dialog with the error description
and a log to send? How is this dealth with in general?
We haven't nicely come up with a solution to this yet. The main
thing we do is add a logging method in the Activator class of the
plugin and directly log to that. There are a few areas that you can
put errors. One place is on the GeoResource or Service. There is an
error message and a Throwable that you can set. If you are in a
renderer you just have to throw an exception and it will be set in
the status bar for that layer. Layers also have a status and a
status message. This is an issue that needs to be better discussed
at some point as it is kind of ad hoc now. I think Cory started an
ErrorManager but it is a long way from complete.
Jesse
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel