[kepler-dev] [Bug 5052] default file open directory of Kepler 2.0
bugzilla-daemon at ecoinformatics.org
bugzilla-daemon at ecoinformatics.org
Fri Jun 15 20:27:47 PDT 2012
http://bugzilla.ecoinformatics.org/show_bug.cgi?id=5052
Christopher Brooks <cxh at eecs.berkeley.edu> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
CC| |cxh at eecs.berkeley.edu
Resolution|DUPLICATE |
Target Milestone|Unspecified |2.4.0
Severity|enhancement |minor
--- Comment #2 from Christopher Brooks <cxh at eecs.berkeley.edu> 2012-06-15 20:27:47 PDT ---
I'm reopening this because there is some confusion about what directory
Kepler opens with File->Open.
The initial discussion was about the demos, but this bug is really about
File->Open
There is a bug here because the configuration.xml file defines
_alternateDefaultOpenDirectory
which does not work.
I'm marking this for consideration for 2.4.0.
BTW, I'm not that happy with the default file open directory
being $HOME/KeplerData/Workflows/MyWorkflows.
It smacks of the lame way that Windows used to put things in
C:\Documents and Settings\cxh\My Documents
or what ever it was.
The problem here is that if I open a workflow with:
ant run -Dworkflow=/Users/cxh/Downloads/cachedmethod-leak.xml
Then I would expect that File->Open would open a File Browser in the
same directory as the model or in the current directory, not in
some application-specific fold that will only be a good idea for a brand-new
user who does not know how to manage files.
Anyway, back to the bug.
There was this 2/9/2012 email to Kepler-dev
--start--
We are trying to change the default open directory for kepler: the only
parameter we found is _alternateDefaultOpenDirectory
in common/configs/ptolemy/configs/kepler/configuration.xml, but changing
it did not have any effect. Are we doing something wrong?
--end--
common/configs/ptolemy/configs/kepler/configuration.xml
says: <!--
Specify an alternative default directory to open when File|Open is
first called; It is assumed that this directory is inside the $KEPLER
directory called in the ptolemy/gui/Top class.
We now default to DotKeplerManager.getPersistentDir (~/KeplerData) if
this
is not set (currently what we want). See KeplerInitializer. -derik
3.23.2010
<property name="_alternateDefaultOpenDirectory" value=""
class="ptolemy.kernel.util.StringAttribute" />
-->
However, setting the value to say "ptolemy" does not cause the $KEPLER/ptolemy
to be the default directory that will be opened,
build-area/src/org/kepler/util/DotKeplerManager.java
sets
private static String _persistentUserWorkflowsDirName = "MyWorkflows";
It looks like DotKeplerManager ignores _alternateDefaultOpenDirectory?
To close this bug, either:
1) Fix DotKeplerManager so that it uses _alternateDefaultOpenDirectory
or
2) Remove all references of _alternateDefaultOpenDirectory.
BTW - perhaps if _alternateDefaultOpenDirectory was an absolute path that
began with a /, then it could be used as the directory in which to
open?
--
Configure bugmail: http://bugzilla.ecoinformatics.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA Contact for the bug.
More information about the Kepler-dev
mailing list