Feature Requests item #884029, was opened at 2004-01-25 07:13
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=438938&aid=884029&group_id=44253
Category: Interactions
Group: None
Status: Open
Priority: 5
Submitted By: Charles Reis (csreis)
Assigned to: Nobody/Anonymous (nobody)
Summary: Change Current Dir of Interactions Pane
Initial Comment:
Story:
User wishes to run a program in the Interactions Pane which
will try to load a file from the program's "current directory".
He right-clicks on the Interactions Pane and chooses "Change
Current Directory...". A confirmation dialog is displayed,
informing the user that changing the current working
directory requires resetting the Interactions Pane. The user
confirms and is presented with a file dialog to select the new
directory. The Interactions Pane resets and the user
successfully runs the program.
Notes:
The working directory of a JVM cannot be changed once it is
running. However, it can be changed on startup. It would be
nonsensical to set the directory to the path of the current
file, which changes much too frequently. However, the
current behavior (the directory from which DrJava was
started) is far too limiting. This technique should meet the
needs of most users (given the limitations of the JVM).
I'm still not sure what the best way to change the directory
on startup is, but I'm certain it could be done. ExecJVM
might be able to do it, or we could test whether
System.setProperty("user.dir", ...) works if it is called before
any file interactions. (I seem to recall that it does.)
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=438938&aid=884029&group_id=44253
|