|Remembering the last directory from which a user opened a file [message #555143]
||Wed, 25 August 2010 15:10
| Jon Svede
Registered: July 2009
I have an RCP app that is using the org.eclipse.ui.edit.text.openLocalFile command id to open a file. I need to be able to remember the last location from which a user opened a file.|
This command maps to
In looking at the source it doesn't appear there is an easy way to tell this action which directory to start in. It looks like it wants to use the user's home directory.
So this is actually a two part question now:
1. is there another command id that accepts a parameter that is the location to open? Or is it easier to just write my own command? I was told to use this over writing my own by the lead of the project. I think if I were to write my own I could use the preference store to store the last location, right?
2. If this is the right way to do it, how do I tell the command where to start from?
Powered by FUDForum
. Page generated in 0.28324 seconds