https://projects.ecoinformatics.org/ecoinfo/https://projects.ecoinformatics.org/ecoinfo/ecoinfo/favicon.ico?14691340362012-06-15T22:30:55ZEcoinformatics RedmineKepler - Bug #5052: default file open directory of Kepler 2.0https://projects.ecoinformatics.org/ecoinfo/issues/5052?journal_id=174952012-06-15T22:30:55Zjianwu jianwujianwu@sdsc.edu
<ul></ul><p>As discussed today, it would be good idea if we can have demo workflows in Kepler actor repository at the left part of canvas. If so, we do not need default open directory set to be demo directories.</p> Kepler - Bug #5052: default file open directory of Kepler 2.0https://projects.ecoinformatics.org/ecoinfo/issues/5052?journal_id=174962012-06-16T03:27:47ZChristopher Brookscxh@eecs.berkeley.edu
<ul></ul><p>I'm reopening this because there is some confusion about what directory<br />Kepler opens with File->Open.</p>
<p>The initial discussion was about the demos, but this bug is really about<br />File->Open</p>
<p>There is a bug here because the configuration.xml file defines<br />_alternateDefaultOpenDirectory<br />which does not work.</p>
<p>I'm marking this for consideration for 2.4.0.</p>
<p>BTW, I'm not that happy with the default file open directory<br />being $HOME/KeplerData/Workflows/MyWorkflows.</p>
<p>It smacks of the lame way that Windows used to put things in <br />C:\Documents and Settings\cxh\My Documents<br />or what ever it was.</p>
<p>The problem here is that if I open a workflow with:<br />ant run -Dworkflow=/Users/cxh/Downloads/cachedmethod-leak.xml</p>
<p>Then I would expect that File->Open would open a File Browser in the<br />same directory as the model or in the current directory, not in<br />some application-specific fold that will only be a good idea for a brand-new<br />user who does not know how to manage files.</p>
<p>Anyway, back to the bug.</p>
<p>There was this 2/9/2012 email to Kepler-dev<br />--start--<br />We are trying to change the default open directory for kepler: the only <br />parameter we found is _alternateDefaultOpenDirectory<br />in common/configs/ptolemy/configs/kepler/configuration.xml, but changing <br />it did not have any effect. Are we doing something wrong?<br />--end--</p>
<p>common/configs/ptolemy/configs/kepler/configuration.xml<br />says: <!-- <br /> Specify an alternative default directory to open when File|Open is <br /> first called; It is assumed that this directory is inside the $KEPLER <br /> directory called in the ptolemy/gui/Top class.<br /> We now default to DotKeplerManager.getPersistentDir (~/KeplerData) if this<br /> is not set (currently what we want). See KeplerInitializer. <del>derik 3.23.2010 <br /> <property name="_alternateDefaultOpenDirectory" value="" <br /> class="ptolemy.kernel.util.StringAttribute" /><br />-</del>></p>
<p>However, setting the value to say "ptolemy" does not cause the $KEPLER/ptolemy<br />to be the default directory that will be opened,</p>
<p>build-area/src/org/kepler/util/DotKeplerManager.java<br />sets<br />private static String _persistentUserWorkflowsDirName = "MyWorkflows";</p>
<p>It looks like DotKeplerManager ignores _alternateDefaultOpenDirectory?</p>
<p>To close this bug, either:<br />1) Fix DotKeplerManager so that it uses _alternateDefaultOpenDirectory<br />or<br />2) Remove all references of _alternateDefaultOpenDirectory.</p>
<p>BTW - perhaps if _alternateDefaultOpenDirectory was an absolute path that<br />began with a /, then it could be used as the directory in which to<br />open?</p> Kepler - Bug #5052: default file open directory of Kepler 2.0https://projects.ecoinformatics.org/ecoinfo/issues/5052?journal_id=174972012-06-27T16:37:36ZDaniel Crawldanielcrawl@gmail.com
<ul></ul><p>The default open/save dialogs now use _alternateDefaultOpenDirectory if it is set. If the path is absolute, it uses it unchanged; otherwise it's assumed to be in kepler.modules.</p>
<p>I'm passing this back to Christopher to test and close.</p> Kepler - Bug #5052: default file open directory of Kepler 2.0https://projects.ecoinformatics.org/ecoinfo/issues/5052?journal_id=174982012-06-27T17:20:16ZChristopher Brookscxh@eecs.berkeley.edu
<ul></ul><p>Fixed! Thanks, Dan!</p> Kepler - Bug #5052: default file open directory of Kepler 2.0https://projects.ecoinformatics.org/ecoinfo/issues/5052?journal_id=174992013-03-27T21:29:03ZRedmine Admin
<ul></ul><p>Original Bugzilla ID was 5052</p>