Skip to main content



      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 13: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 08:05 Go to previous messageGo to next message
Eclipse UserFriend
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 10:40 Go to previous message
Eclipse UserFriend
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 May 03 03:35:40 EDT 2025

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

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

Back to the top