Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » possible to open a view on file selection ?
possible to open a view on file selection ? [message #137866] Tue, 30 September 2003 10:08 Go to next message
Eclipse UserFriend
Hello,

Is it possible to "register" a view to show up when the user selects a
file (e.g. via double-click in the navigator view) from the workspace ?
With a editor this is quite easy, as I can register for a certain file
extension. But how's this done for a view ?

Any help would be greatly appreciated.

greetings
Florian
Re: possible to open a view on file selection ? [message #137934 is a reply to message #137866] Tue, 30 September 2003 10:56 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.NO--SPAM.us.ibm.com

That's not how views work. Only editors are opened on a specific file.
Views are opened either by the perspective factory/extension or
explicitly be users. Views then stay open and listen and respond to the
current selections and display their stuff depending upon the current
selection.

However, if the view is already open, it should be listening to the
IWorkbenchPage selection provider. Then when something is selected in
the navigator, the view will be notified and it can show the appropriate
stuff for the selection. However, be aware that the selection provider
is fired for selections in any view or editor on that workbench page
when that view or editor is active. So you would get selections
notifications from more than just the navigator and you will need to
handle against this,

Rich
Re: possible to open a view on file selection ? [message #138018 is a reply to message #137866] Tue, 30 September 2003 11:48 Go to previous message
Eclipse UserFriend
I have been asking this question already.
I thought of filing in bugilla, but have not yet..

If you have written to the bugilla,please let me know too, I will vote fot
it too..

Regards,
Jelda
"Florian Georg" <Florian.Georg@innovations.de> schrieb im Newsbeitrag
news:blc2pf$ejs$1@eclipse.org...
> Hello,
>
> Is it possible to "register" a view to show up when the user selects a
> file (e.g. via double-click in the navigator view) from the workspace ?
> With a editor this is quite easy, as I can register for a certain file
> extension. But how's this done for a view ?
>
> Any help would be greatly appreciated.
>
> greetings
> Florian
>
>
>
Previous Topic:property/preference pages launch independent progress dialogs
Next Topic:Code Assist
Goto Forum:
  


Current Time: Mon May 12 07:43:42 EDT 2025

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

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

Back to the top