Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Project Path in Eclipse
Project Path in Eclipse [message #267665] Wed, 18 August 2004 19:09 Go to next message
Eclipse UserFriend
Originally posted by: rpm.motorola.com

Hi,
I am creating a view and I need to access the current selected project.
How can I get the properties / object for the selected (current) Project
(in the Package explorer) in Eclipse?


I tried this..

ISelectionProvider selectionProvider = site.getSelectionProvider();
ISelection selection = selectionProvider.getSelection();

where site is IViewSite

Thanks
Rohit
Re: Project Path in Eclipse [message #267683 is a reply to message #267665] Wed, 18 August 2004 19:37 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Chris_Laffra.ca.ibm.com

FAQ 168 at http://eclipsefaq.org

Chris

"Rohit Mordani" <rpm@motorola.com> wrote in message
news:cg0nir$mt8$1@eclipse.org...
> Hi,
> I am creating a view and I need to access the current selected project.
> How can I get the properties / object for the selected (current) Project
> (in the Package explorer) in Eclipse?
>
>
> I tried this..
>
> ISelectionProvider selectionProvider = site.getSelectionProvider();
> ISelection selection = selectionProvider.getSelection();
>
> where site is IViewSite
>
> Thanks
> Rohit
>
>
Re: Project Path in Eclipse [message #267800 is a reply to message #267683] Thu, 19 August 2004 13:30 Go to previous message
Eclipse UserFriend
Originally posted by: rpm.motorola.com

Hey Chris...thanks a lot...that kinda helped me though I am not there
yet...just wanted to say that I think FAQ 305 (How do I access the active
project) was also helpful..

Rohit

Chris Laffra wrote:

> FAQ 168 at http://eclipsefaq.org

> Chris

> "Rohit Mordani" <rpm@motorola.com> wrote in message
> news:cg0nir$mt8$1@eclipse.org...
> > Hi,
> > I am creating a view and I need to access the current selected project.
> > How can I get the properties / object for the selected (current) Project
> > (in the Package explorer) in Eclipse?
> >
> >
> > I tried this..
> >
> > ISelectionProvider selectionProvider = site.getSelectionProvider();
> > ISelection selection = selectionProvider.getSelection();
> >
> > where site is IViewSite
> >
> > Thanks
> > Rohit
> >
> >
Previous Topic:Update Manger - Restart Parameters
Next Topic:excetion thrown using ole
Goto Forum:
  


Current Time: Mon Jul 21 22:12:59 EDT 2025

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

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

Back to the top