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

Bug 63568

Summary: [Intro] IIntroPart.standbyStateChanged() is called at wrong time.
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 CC: dejan, michaelvanmeekeren
Version: 3.0Keywords: helpwanted
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard: stalebug
Bug Depends on:    
Bug Blocks: 65763    

Description Mazen Faraj CLA 2004-05-23 00:36:30 EDT
RC0 (M9) 

IIntroPart.standbyStateChanged() is called when intro view is closed and when 
the workbench is shutdown. Is this supposed to happen? the standby state 
reallt did *not* change. In one case we closed view, in the other, the 
workbench was shut down. 
IMOH, I think this event should not be fiered at these times. 
Plus, for performance, I try to create standby content only when the workbench 
calls the intro view with standby = true (ie: someone asked to see the standby 
part). But with the workbench calling this method at these times, I can not 
accomplish this.
Comment 1 Kim Horne CLA 2004-05-24 15:51:09 EDT
The event is fired on view zoom state changes.  When the maximzed view is
closed, it is first unzoomed.  The same thing happens on shutdown.  I might be
able to supress this behaviour...
Comment 2 Michael Van Meekeren CLA 2004-05-25 17:13:30 EDT
deferring, does not seem wise to change this at this time.
Comment 3 Mazen Faraj CLA 2004-05-25 18:30:54 EDT
Michael,
this one is important. Its not a feature. imoh, its a bug.
Its not just a matter of not wanting to get these events. But the API contract 
does not state that standbyStateChanged() is called when intro view is closed 
and when the workbench is shutdown. It doesnt even make sense to get notified 
during these events. You can not distinguish between a real standby change, 
and a close event. 
This is where the Intro plugin code tried (unsuccessfully now) to do some 
performnace code.

 
Comment 4 Dejan Glozic CLA 2004-05-25 18:36:32 EDT
I agree here. From the API point of view, we don't want to know that this is a 
view. We are contributing a class that implements IIntroPart and the contract 
for 'standbyStateChanged()' is limited to changes from active to standby mode. 
We expect to be notified of the part closing by being asked to dispose. 
Otherwise, all kinds of layout, loading and paint changes may be initiated 
only to fail half way because the part is immediately closed after that.
Comment 5 Kim Horne CLA 2004-05-26 07:41:10 EDT
Michael can't reply if he isn't on the CC list...
Comment 6 Mazen Faraj CLA 2005-04-15 20:49:56 EDT
pinging...
I forgot that I even opened this defect :-) 

Why is Intro being notified of a standby state changed on a close of the view? 
Can we please revisit this now? I just rehit it doing some performance tests. 
 

Comment 7 Mazen Faraj CLA 2005-04-18 03:44:25 EDT
another scenario:
try this: 
open intro view.
open  PDE Log view. Make both view maximuzed.
close Intro. (you get no standbyStateChanged event here. First issue)
open Intro. (you get two standbyStateChanged event here. Second issue)
Comment 8 Susan McCourt CLA 2009-07-09 19:09:15 EDT
As per http://wiki.eclipse.org/Platform_UI/Bug_Triage_Change_2009
Comment 9 Eclipse Webmaster CLA 2019-09-06 16:12:40 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 10 Eclipse Genie CLA 2021-09-08 03:54:28 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. 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.