[kepler-users] File | Open Initial Directory

Kenneth Evans evans at aps.anl.gov
Thu Nov 8 10:12:28 PST 2007


Matt,

I fixed it in ptolemy.gui.Top by adding these lines to the CTOR:

        // Set initial directory for File|Open
        String directory = System.getProperty("kepler.initial.dir");
        if(directory != null) {
            _directory = new File(directory);
        }

If you then specify -Dkepler.initial.dir="C:\Documents and Settings\evans\My
Documents\Kepler" (in my case), then File|Open starts in that directory.

Currently Top sets it to user.dir.  I tried using -Duser.dir=... and that
worked OK in the Eclipse launcher, but not in the BAT file.  It is not a
good idea if Kepler is somewhere assuming user.dir is the directory where
Kepler is started.  It seems better to have an independent property.

There are some comments about Windows in Top.java.  I note that if it isn't
set (or _directory is null), then it comes up in "My Documents" on Windows.

        -Ken

-----Original Message-----
From: Matthew Jones [mailto:jones at nceas.ucsb.edu] 
Sent: Friday, November 02, 2007 10:53 AM
To: Kenneth Evans
Cc: Kepler Mailing List
Subject: Re: [kepler-users] File | Open Initial Directory

It is undoubtedly possible.  I opened a feature request on the issue.

http://bugzilla.ecoinformatics.org/show_bug.cgi?id=2990

Matt

Kenneth Evans wrote:
> Hi,
> 
>  
> 
> Is there an easy way to fix Kepler so the initial directory you get with 
> File | Open is where your workflows are, rather than where Kepler is.  
> Just starting Kepler in that directory doesn't seem to work.
> 
>  
> 
> Thanks,
> 
>  
> 
>         -Ken
> 
>  
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Kepler-users mailing list
> Kepler-users at ecoinformatics.org
> http://mercury.nceas.ucsb.edu/ecoinformatics/mailman/listinfo/kepler-users

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Matthew B. Jones
Director of Informatics Research and Development
National Center for Ecological Analysis and Synthesis (NCEAS)
UC Santa Barbara
jones at nceas.ucsb.edu                       Ph: 1-907-523-1960
http://www.nceas.ucsb.edu/ecoinfo
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



More information about the Kepler-users mailing list