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

Bug 93784

Summary: [WorkbenchParts] View not yet added to perspective when partOpened sent
Product: [Eclipse Project] Platform Reporter: Nick Edgar <n.a.edgar>
Component: UIAssignee: Platform UI Triaged <platform-ui-triaged>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3    
Version: 3.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows 2000   
Whiteboard: stalebug

Description Nick Edgar CLA 2005-05-05 10:42:52 EDT
build N20050505

In bug 84406, Matt reports:

> I'm seeing this when the part is first opened.  The call to perspective.getViews
does not return the view that was just opened when called from
SaveAllAction.partOpened.

I've verified that it worked the same way in 3.0 as well.  During partOpened
triggered by a showView, findView, getViewReferences() and getViews() do not
find the view.
Comment 1 Nick Edgar CLA 2005-05-05 10:55:01 EDT
Works OK for editors.
Comment 2 Nick Edgar CLA 2005-05-05 10:58:43 EDT
I've added testViewFoundWhenOpened() and testEditorFoundWhenOpened() to
IPartServiceTest. testViewFoundWhenOpened() is currently commented out, but
should be uncommented once this is fixed.
Comment 3 Nick Edgar CLA 2005-05-05 11:24:05 EDT
When this is fixed, should remove the workaround in SaveAllAction.  See bug 84406.
Comment 4 Stefan Xenos CLA 2005-05-05 11:39:42 EDT
Actually, not for 3.1.

Although this change makes sense, I don't want to mess with event ordering this
late in the game unless it fixes specific bugs.
Comment 5 Paul Webster CLA 2006-09-28 14:07:36 EDT
Is this still a problem in 3.3?

PW
Comment 6 Nick Edgar CLA 2006-10-10 13:04:36 EDT
See comment 2 for a test.
Comment 7 Paul Webster CLA 2006-10-10 13:20:56 EDT
Investigate
PW
Comment 8 Eclipse Webmaster CLA 2019-09-06 16:16:50 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 9 Eclipse Genie CLA 2022-01-31 14:05:58 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.