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

Bug 314205

Summary: [WorkbenchParts] IWorkbenchPage.isPartVisible returns wrong information during perspective switch
Product: [Eclipse Project] Platform Reporter: Holger Grote <holger>
Component: UIAssignee: Platform UI Triaged <platform-ui-triaged>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: remy.suen
Version: 3.5.2   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard: stalebug

Description Holger Grote CLA 2010-05-25 03:35:20 EDT
Build Identifier: 20100218-1602

The function IWorkbenchPage.isPartVisible returns true for parts which are visible in one perspective but not in another during the switch to that perspective.
So if you have a selectionListener the listener gets fired for the new selection in the new perspective. If there is a part in the old perspective listening the listener gets fired and still gets the information that its part is visible even if it is not in the new perspecive.

The problem is that during WorkbenchPart.updateVisiblity first updateActivePart() is called and after that the old parts are set invisible.

Reproducible: Always

Steps to Reproduce:
You can reproduce this with Eclipse out of the box and any view which listens to selection events (eg. History)

1. Open any perspective
2. Open the history view (leave it as active part)
3. Open another perspective
4. Open the Navigator and select a file
5. switch back to the first perspective
6. The history view shows the properties of the file from the navigator
(take care that the history view is again active in the first perspective. I had sometimes problems that during perspective switch the activePart gets changed if you have the same parts in 2 perspectives. This seems to be another bug or feature?)
Comment 1 Eclipse Webmaster CLA 2019-09-06 15:32:09 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 2 Eclipse Genie CLA 2021-11-05 19:14:30 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.