[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.rcp] Re: FIND A PROJECT PATH IN PACKAGE EXPLORER LIST

You pretty much have to have the workspace initialized properly using the normal data location (which you can set to anything prior to starting the Eclipse environment) and then use ResourcesPlugin.getWorkspace(). The resource API is very sophisticated and must have its environment properly initialized.

dansteu wrote:
Hi. I tried your answer in my code but the problem is that IWorkspaceRoot() is still not defined...I would not do ResourcesPlugin.getWorkspace.getRoot ....
Any other suggestions to obtain a generic IWorkspaceRoot in any file system location?

--Dan