Hi Kory:
> I am currently working on a research project at Furman University utilizing
> uDig.
>
> I am trying using the MapEditor class to display an interactive map that
> displays real-time scheduling.
>
> The current problem I am experiencing relates to the open-save-close
> life-cycle of the MapEditor class. Every time the user starts the program, I
> want there to only be one MapEditor in the workbench, however, when the
> application opens, the program brings up the old MapEditor as well. Added to
> this are a few other features that I would like to be able to disable. I
> would like the user to be able to close the entire application without the
> program asking if the user would like to save the map. I would also like to
> disable the asterisk that displays when the editor "isDirty".
Right; you may wish to host your "one map" in a view rather then an
open/save/close editor. We have two tutorials showing how to do this in the
example code section. Basically the MapViewer components works in a similar
fashion to a JFace viewer control; you can drop it in a view as required and
not be subject to open/save/close.
Jesse was for these examples as part of a training course he offered for a
client, he may be able to offer more guidance. But I encourage you to check out
the uDig source code and run the examples to see how they work.
> After a little bit of searching, I found a thread on the refractions forum
> that related to the same problem I am experiencing, however the poster never
> revealed his/her final solution (if any).
>
> Thus, I figured I would try an email you for your expertise and see if you
> could point me in the right direction as to how to solve this problem.
If you wanted an evil hack you could try a MapInterceptor of some sort that
automatically saves the Map as it is about to be closed; and modifying your
application "ini" file to include the -clean option to remove the project
workspace.
Jody
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel