|
|
Re: How to get the eclipse running workspace? [message #288634 is a reply to message #288620] |
Wed, 20 July 2005 10:40  |
Eclipse User |
|
|
|
Hi,
I try to obtain files in the projects user in the runtime-workspace,
which code does that for windows and linux platforms ?
Paul Webster a écrit :
> sl wrote:
>
>> Hi,
>>
>> I need to programmatically get the running Workspace and the project
>> directory, can someone please show me how to get it?
>
>
> IWorkspace workspace = ResourcesPlugin.getWorkspace();
> IProject testProject = workspace.getRoot().getProject(
> "TestClosedDelete");
>
> That will get the IProject, which you can traverse to add, remove, and
> examine IFiles.
>
> Later,
> PW
|
|
|
Powered by
FUDForum. Page generated in 0.02207 seconds