Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Open resource in Project Explorer
Open resource in Project Explorer [message #343234] Tue, 28 July 2009 06:09 Go to next message
Vasily Lukichev is currently offline Vasily LukichevFriend
Messages: 32
Registered: July 2009
Member
Hello,

I am trying to open a spicific resource in Project Explorer View. It is
necessary for user convinience to quickly navigate to desired folder/file
from a search view. As an input I have project and relative resource
location in this project. Using PlatformUI I can get the whole list of
views in workbench and I can get view id, but how such data can be used to
get access to Project Explorer (org.eclipse.ui.navigator.ProjectExplorer)?
May be I follow the wrong way and there is more precise and better way to
do it?
I tried to find info in articles and forums but with no results. It is
enough to have a vision(article/forum ) what direction to dig.

Could someone suggest that? Or may be just share an expirience?

Thanks in advance,
Vasily.
Re: Open resource in Project Explorer [message #369126 is a reply to message #343234] Tue, 28 July 2009 18:02 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: runzhou.li.gmail.com

That view id is "org.eclipse.jdt.ui.ProjectsView", just use this to
associate with what you want to open.

"Vasily Lukichev" <luckich@inbox.ru> wrote in message
news:758400c699b2dca9689fc9b3c85fb0e9$1@www.eclipse.org...
> Hello,
>
> I am trying to open a spicific resource in Project Explorer View. It is
> necessary for user convinience to quickly navigate to desired folder/file
> from a search view. As an input I have project and relative resource
> location in this project. Using PlatformUI I can get the whole list of
> views in workbench and I can get view id, but how such data can be used to
> get access to Project Explorer (org.eclipse.ui.navigator.ProjectExplorer)?
> May be I follow the wrong way and there is more precise and better way to
> do it?
> I tried to find info in articles and forums but with no results. It is
> enough to have a vision(article/forum ) what direction to dig.
>
> Could someone suggest that? Or may be just share an expirience?
>
> Thanks in advance,
> Vasily.
>
Re: Open resource in Project Explorer [message #404597 is a reply to message #369126] Thu, 30 July 2009 05:55 Go to previous message
Vasily Lukichev is currently offline Vasily LukichevFriend
Messages: 32
Registered: July 2009
Member
Hello Runzhou,

Thanks for advice. It works well.


Vasily.
Previous Topic:Different version of ProjectionDocument or other idea
Next Topic:JFaceResources and button labels
Goto Forum:
  


Current Time: Thu Apr 25 02:07:52 GMT 2024

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

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

Back to the top