Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [udig-devel] Close map programmatically?

That is a very creative solution; Perhaps you guys could nail down a solid set of requirements and we can see if we can modify uDig to meet your needs.

It is my hope that projects that do not require an Open / Save / Close lifecycle will use a MapView. I feel that your issue is actually with the Open / Save / Close lifecycle of Eclipse RCP editors; rather than the uDig program being incorrect?

I think another way to accomplish your goal would be to insert your own startup and shutdown hooks that closed all the maps. I think that may be how maps are managed right now (or it may just be part of Eclipse RCP) we will need to ask Jesse.

Jody

Javier Sánchez Ramírez wrote:
Hi Stephen,

Our short-cut to this in an uDig RCP Extension, is launching the application from a .bat file [1] (of course in windows ;-)) in the /eclipse directory.
This .bat file deletes the workspace directory, and run udig.exe afterwards. Another advantage of doing this is that you can manage memory params as well.

We know this is not the best way of doing this, so may be someone can give us a more advanced help about this issue.

On the other hand, we are trying to start blank default project with different default preferences parameters without editing uDig source code. Does anyone know how to do that?


[1] .bat file:
...
rd /Q /S workspace
udig.exe  -clean -vmargs -Xms256m -Xmx256m -XX:PermSize=64m -XX:MaxPermSize=64m -Dosgi.parentClassloader=ext
...

Thanks for any help,

Javi.
www.jsgisdev.wordpress.com


----------------------------------------------
Javier Sánchez Ramírez
Genasys II Spain, S.A.
Project Manager
Ventura de la Vega, 5
28014 - Madrid, SPAIN
Phone   + 34 91 364 91 00
Fax       + 34 91 364 91 19
GSM     + 34 619413878

Email   jsanchez@xxxxxxxxxxx
www.genasys.com
----------------------------------------------


Date: Fri, 17 Oct 2008 20:06:41 -0400
From: "Stephen Kilburn" <subscribe1@xxxxxxxxxxxx>
Subject: [udig-devel] How to circumvent map/project serialization?
To: "'User-friendly Desktop Internet GIS'"
	<udig-devel@xxxxxxxxxxxxxxxxxxxxx>
Message-ID: <008001c930b5$663df4c0$32b9de40$@ca>
Content-Type: text/plain;	charset="us-ascii"

I want to start up my uDig application each time with a blank (empty) default project with no contained maps (and then populate a new

project programmatically). However, uDig saves its state on shutdown and restores it on startup. How can I circumvent this functionality

and have uDig start up "clean" every time?

_____________________________________________________________
Stephen Kilburn
GeoPraxis Inc.




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



Back to the top