Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » How to get the eclipse running workspace?
How to get the eclipse running workspace? [message #288557] Tue, 19 July 2005 17:45 Go to next message
Eclipse UserFriend
Originally posted by: jsk_lam.hotmail.com

Hi,

I need to programmatically get the running Workspace and the project
directory, can someone please show me how to get it?

Thanks
SL
Re: How to get the eclipse running workspace? [message #288620 is a reply to message #288557] Wed, 20 July 2005 12:05 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

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


Re: How to get the eclipse running workspace? [message #288634 is a reply to message #288620] Wed, 20 July 2005 14:40 Go to previous message
Sandrine Soudant is currently offline Sandrine SoudantFriend
Messages: 14
Registered: July 2009
Junior Member
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
Previous Topic:Starting plugin1 before plugin2
Next Topic:Adding my own tutorial
Goto Forum:
  


Current Time: Sat Oct 19 22:41:13 GMT 2024

Powered by FUDForum. Page generated in 0.04135 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top