Bug 549860 - [Workbench] [Compatibility][api] IWorkbenchPage's showEditor(*) and hideEditor(*) methods are buggy
Summary: [Workbench] [Compatibility][api] IWorkbenchPage's showEditor(*) and hideEdito...
Status: REOPENED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.8   Edit
Hardware: PC All
: P3 normal with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2019-08-07 15:51 EDT by Rolf Theunissen CLA
Modified: 2021-07-30 02:34 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rolf Theunissen CLA 2019-08-07 15:51:04 EDT
A first implementation of the showEditor/hideEditor methods are implemented in Bug 374132.

However, the corresponding tests are not enabled and many of them fail due to incorrect implementation of the methods. See the @Ignore TestOpen* testcases in IWorkbenchPageTest.
Some of the test seem trivial to fix, however probably EPartService and/or PartRenderingEngine need to be extended to correctly implement the full behavior.


Furthermore, from Bug 374132 comment 24:
The new implementation of these methods is incomplete and buggy. I've tried to use this instead of our current workaround and I've run into numerous issues:

1) Hidden editors are still returned in IWorkbenchPage.getEditorReferences(). According to the javadoc on IWorkbenchPage.hideEditors() they should not be returned in that list.

2) If there are multiple editor stacks in the editor area and all editors are hidden then the editor area is set to invisible and new editors will not be shown. When editors are hidden the CleanupAddon goes up the parents and sets both the part stacks  and the editor area to be invisible and opening a new editor won't change visibility so the editor is opened in an invisible stack and the user can't see it. When there is only one editor stack the CleanupAddon does not change the visibility of the stack.

3) Some parts of the UI still behave as though the editors are visible, for example if multiple editors are open and all are hidden except one then the context menu for the editor tab will show options like "Close tabs to the left", even though there is only a single tab visible.
Comment 1 Eclipse Genie CLA 2021-07-28 12:32: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.
Comment 2 Rolf Theunissen CLA 2021-07-30 02:34:54 EDT
No progress here, so still an issue.