[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
| Re: [udig-devel] uDig project files | 
I'm still not completely sure of all your requirements.  There are a  
few extension points that I might suggest:
1.  Startup extension.  It is an eclipse extension and basically it  
is just a code block that is run when the application is started.  
This would allow you to add the connection information into the  
application
2.  MapInterceptor.  This allows you to intercept when a map is  
created or openned which would allow you to add some default layers  
to the map if you wish
3.  LayerInterceptor: This allows you to intercept the creationof a  
layer and set a style on the layer when it is created.
I feel like I didn't answer your question.  The umap files still  
exist in Documents and Settings/uDig.  there is also a .localCatalog  
file that has connection information...
Jesse
On Oct 22, 2007, at 1:08 PM, David Adler wrote:
Hi Jesse,
The files certainly are buried.  I've scanned my whole system  
looking for these files and can't find them.
Is 'plugin_customizations.ini' a text file that I should find in  
"Documents and Settings" or in the uDig install directory on Windows?
I don't want to turn off opening maps on startup.
I want to be able to provide a file that contains the datasource  
connection information, layers and styles to be applied with a  
standard uDig installation.
In an earlier version of uDig, I found an XML file with an  
extension of .umap which seemed to include the layer information.
Or do I need to code my own custom application with uDig in the  
Eclipse development environment?
Regards,
David
Jesse Eichar wrote:
Hi David,
The files are nicely buried.  The class StartupOpenMaps controls  
this behaviour.  If you want to disable this behaviour, it is  
controlled by a Project.UI preference.  There are a few ways to  
modify the preferences by using by: ProjectUIPlugin.getDefault 
().getPreferenceStore().setValue 
(PreferenceConstants.P_OPEN_MAPS_ON_STARTUP, false).
A second way to modify the preference if  you are creating a  
custom application, is to specify a properties file with the  
preferences you want to specify.  If you look at the  
net.refractions.udig plugin there is a file in the root called  
plugin_customizations.ini.  This file specifies some of the  
preferences we want to use in the uDig application.  You could  
copy that and add:
net.refractions.udig.project.ui/openMapsOnStartup = false
to the file.
There are probably more ways by changing environment variables and  
so on.  But you'll have to check the eclipse help for that.
Jesse
On Oct 22, 2007, at 4:28 AM, David Adler wrote:
Where in Windows does uDig keep the files that control what  
projects/maps/layers are displayed when it starts up?  I've  
looked all over in "Documents and Settings" and "My Documents"  
and can't find anything.
I'm trying to port a 2002-vintage ArcExplorer .axl application to  
uDig and need some file to control uDig startup.
The uDig File menu has an "Open Project" selection - what is it  
looking for?
_______________________________________________
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
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel