|
|
Re: Anticipating a workbench view [message #520588 is a reply to message #520369] |
Fri, 12 March 2010 23:07 |
Marian Schedenig Messages: 25 Registered: July 2009 |
Junior Member |
|
|
Prakash G.R. wrote:
> On 12/03/10 6:08 AM, Marian Schedenig wrote:
>> My idea would be to register a listener somewhere on the workbench which
>> is notified when the console view first opens, so that it can immediately
>> modify (or, in this case, simply create) my desired action.
>
> Check IPerspectiveListener.perspectiveChanged()
Thanks.
I just tried it, looking through the various versions of
IPerspectiveListener. It doesn't seem to help my problem, though: I can use
the IStartup interface and extension to fetch the workbench window when it's
created and attach a perspective listener. I then get events in the listener
whenever the *user* changes the perspective, e.g. by switching between
views.
However, more often than not, the view I'm interested in is already shown
when the workbench starts. And I don't seem to get any events for the
initial views shown after the workbench has opened.
Cheers,
Marian.
|
|
|
|
Powered by
FUDForum. Page generated in 0.03108 seconds