[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
20030508: question about adde image chooser
- Subject: 20030508: question about adde image chooser
- Date: Thu, 08 May 2003 16:49:15 -0600
To: address@hidden
cc: address@hidden
From: Tom Whittaker <address@hidden>
Subject: Re: question about adde image chooser
Organization: UCAR/Unidata
Keywords: 200305082152.h48LqN7U002107 IDV properties
re: Scott's "white rectangle" image
I've sent a note to Scott to get the info on his computer (I called him,
too...but he has no idea how to find out the XFree86 version and what
kind of graphics card...these are, after all, just "black boxes"...)
On his system, he could run:
rpm -q XFree86
and it should list back the version.
For the graphics card, have him look at:
/etc/X11/XF86Config
and look for a section titled:
Section "Device"
That section should list something about the type of card. Also,
under Section "Screen", it should say what video depth he
is running.
And here I was holding out for it to be a 7.0 problem...
Could be since the version of XFree86 is probably what came with
it.
What does tom.properties look like? What is in extrachoosers.xml?
What does your runIDV.bat look like after the mod? Send this all
along and I'll test it here.
tom.properties:
##This points to the xml document(s) that hold the data
##chooser specifications. Here we append the new file
## to the default.
##application.resource.choosers =
%IDVPATH%/choosers.xml;http://www.unidata.ucar
.edu/staff/donm/extrachoosers.xml
application.resource.choosers = %IDVPATH%/choosers.xml;./extrachoosers.xml
(extra line breaks are not in the file)
extrachoosers.xml:
<choosers>
<chooser title="ADDE Images"
class="ucar.unidata.idv.chooser.McidasImageChooser" />
</choosers>
runIDV.bat:
jre\bin\java -Xmx512m -jar idv.jar -properties tom.properties
With all these in the same directory, works like a champ...
If you want extrachoosers in your /c/documents and
settings/tomw/.metapps/DefaultIdv/ directory, then tom.properties
should be:
application.resource.choosers =
%IDVPATH%/choosers.xml;%USERPATH%/extrachoosers.xml
%IDVPATH% is the path to the IDV resources directory in the
JAR file (/ucar/unidata/idv/resources). %USERPATH% is the
path to the user directory (/c/documents and settings/tomw/.metapps/DefaultIdv/
in your case for the reference application). Here's a description:
########################################################################
## Resources
########################################################################
##
##All of the following application.resource.xxx properties are used to
##define where to find different resource files. The value of
##a resource property is a semicolon delimited list that may contain
##macros that allow for contextualization.
##The macros supported are:
## %USERPATH% The file system path of the user's .metapps/application
directory
## %SITEPATH% If defined (usually by the -sitepath argument) the directory
path
## or url of where to find site resources
## %IDVPATH% The internal (to the jars) /ucar/unidata/idv path
## %APPPATH% The value of the application.resourcepath property
##
##Note: For resource lists that hold "writable" resources (e.g., color tables)
##the first resource in the list is the "writable" resource
##
One other note, is that if you change the order of the entries in
tom.properties:
application.resource.choosers =
%USERPATH%/extrachoosers.xml;%IDVPATH%/choosers.xml
the extra chooser will be first the first tabbed pane (and the
first seen by default).
Guess, this should all be documented in a guide somewhere, eh?
Don
*************************************************************
Don Murray UCAR Unidata Program
address@hidden P.O. Box 3000
(303) 497-8628 Boulder, CO 80307
http://www.unidata.ucar.edu/staff/donm
*************************************************************