Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Getting the projects in the current workspace
Getting the projects in the current workspace [message #204182] Tue, 10 April 2007 09:59 Go to next message
zakir Hussain is currently offline zakir HussainFriend
Messages: 76
Registered: July 2009
Member
Hi friends,

Is there any way to get the projects which are present in the current
workspace.


-----------------------------------

For getting the projects in the runtime workspace

ResourcesPlugin.getWorkspace().getRoot().getProjects()

will work....

But for me i want to get the projects which are in my current workspace
not in the runtime workspace....


Can any one suggest me regarding this...

Regards,

Zakir
Re: Getting the projects in the current workspace [message #204194 is a reply to message #204182] Tue, 10 April 2007 13:40 Go to previous message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Zakir,

In any given running Eclipse instance there is only one workspace
instance accessed as you show below.. So it's not clear what you mean
by "current" verses "runtime". You could certainly make a runtime
eclipse instance reuse any existing workspace, but only one running
process can use any particular workspace at a time. A workspace will
appear looked (in-use) if any other processes tries to make it its own
current workspace. So if you want to do something with the workspace of
the currently running eclipse process, you'd need to invoke code that is
running within that process rather than launching a new process.


zakir wrote:
> Hi friends,
>
> Is there any way to get the projects which are present in the current
> workspace.
>
>
> -----------------------------------
>
> For getting the projects in the runtime workspace
> ResourcesPlugin.getWorkspace().getRoot().getProjects()
> will work....
>
> But for me i want to get the projects which are in my current
> workspace not in the runtime workspace....
>
>
> Can any one suggest me regarding this...
>
> Regards,
>
> Zakir
>
Previous Topic:eclipse error when exiting / checking out resources
Next Topic:CDT - attach/use profiling tools
Goto Forum:
  


Current Time: Fri Apr 26 18:29:06 GMT 2024

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

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

Back to the top