Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 91633

Summary: [Intro] cant listen to IIntroPart life cycle events
Product: [Eclipse Project] Platform Reporter: Mazen Faraj <mfaraj>
Component: UIAssignee: Platform UI Triaged <platform-ui-triaged>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P5 Keywords: helpwanted
Version: 3.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard: stalebug

Description Mazen Faraj CLA 2005-04-15 21:54:08 EDT
(Trying to work around bug 63568, I tried adding an IPartListener to listen to 
IntroPart life cycle events, only to find out that standbyStateChanged is 
called before the close event. Which meant that I can't listen to events, set 
flags, and then handle standbyStateChanged.)

Issues discovered while using a IPartListener:
* You cant listen to IIntroPart events because the part returned is internal 
ViewIntroAdapterPart. 
*  When opening or closing an IIntroPart, many partDeactivated events are 
fired when Intro view is coming up or closing? Can you please check? could I 
be doing something wrong? I simply added a basic listener to the workbench 
window:

PlatformUI.getWorkbench().getActiveWorkbenchWindow().getPartService()
            .addPartListener(new CustomizableIntroPartListener());

where CustomizableIntroPartListener() simply prints out info.
Comment 1 Mazen Faraj CLA 2005-04-15 21:54:51 EDT
oops!  I opened it against myself ! :-)
Comment 2 Mazen Faraj CLA 2005-04-17 21:11:16 EDT
looking into this a bit more, the TaskView takes an activated/deactivated 
cycle on start up and shutdown. Meaning, when you open Intro, you get intro 
activated, deactivated, Task view activated, deactivated, then Intro view 
activated again. 
Does this make sense? is this what the apis are expected to do?
Comment 3 Kim Horne CLA 2005-04-18 08:48:27 EDT
Probably not, but likely the case for 3.1...
Comment 4 Eddie Galvez CLA 2005-06-13 16:12:03 EDT
is this related? I used to (in an RCP app on 3.0.2) have a property listener 
listening in to the zoom property. Unfortunately, 3.1 took away 
addPropertyChangeListener from PartPane, and seems to be disallowing my use of 
the internal PartPane and friends...

What's a good way then to achieve the following?
 Detect when the user closes/standby-s the welcome page, in order to launch a 
new wizard? (this is to avoid the user staring at a blank perspective...)
Comment 5 Kim Horne CLA 2005-06-13 16:16:39 EDT
Your best bet at this point would be to listen to part close events and after each one check to see if the 
intro is available via the standard Intro API.
Comment 6 Susan McCourt CLA 2009-07-09 19:09:32 EDT
As per http://wiki.eclipse.org/Platform_UI/Bug_Triage_Change_2009
Comment 7 Eclipse Webmaster CLA 2019-09-06 16:09:52 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.
Comment 8 Eclipse Genie CLA 2021-12-27 18:26:11 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.