Do something after the view was opened. [message #327618] |
Sat, 26 April 2008 09:54 ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: schlamp.medihack.org
Hello! I want to execute a little job after a specific view was opened.
ViewPart#init doesn't work as the view must be really open and the
WorkbenchPart#createPartControl must already have been called.
So I am looking for something like an open method of a view.
Any suggestions?
Kai
|
|
|
|
Re: Do something after the view was opened. [message #327622 is a reply to message #327620] |
Sat, 26 April 2008 13:08 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: schlamp.medihack.org
Nice tip, but in my case it seems, that it doesn't solve the problem.
I give you a bit more explanations on my problem.
I want to execute an IRunnableWithProgress (executed by my ViewPart)
directly after my rcp application has started (and any user interface is
visible).
The problem with IPartListener is, that those methods are called, when the
startup splash screen is visible (and not the user interface of the
application).
Any ideas? Listen to another interface?
Wayne Beaton wrote:
> Maybe look at the IPartListener and IPartListener2 interfaces. You can
> add your own implementation of the interface as a listener on a
> workbench page and use it to be notified when your view is
> opened/closed/activated/deactivated etc.
> HTH,
> Wayne
> On Sat, 2008-04-26 at 09:54 +0000, Kai Schlamp wrote:
>> Hello! I want to execute a little job after a specific view was opened.
>> ViewPart#init doesn't work as the view must be really open and the
>> WorkbenchPart#createPartControl must already have been called.
>> So I am looking for something like an open method of a view.
>>
>> Any suggestions?
>>
>> Kai
>>
|
|
|
|
Powered by
FUDForum. Page generated in 0.04315 seconds