Community
Participate
Working Groups
3.1 I have an ShowViewAction class that tracks whether the view it shows is already showing (it's a toggle action). It has a listener like: private IPartListener partListener = new IPartListener() { public void partOpened(IWorkbenchPart part) { if (part instanceof IViewPart) { updateSelection(); } } public void partDeactivated(IWorkbenchPart part) { } public void partClosed(IWorkbenchPart part) { if (part instanceof IViewPart) { updateSelection(); } } public void partBroughtToTop(IWorkbenchPart part) { } public void partActivated(IWorkbenchPart part) { } }; where updateSelection() is: private void updateSelection() { boolean viewFound = false; IWorkbenchPage page = window.getActivePage(); if (page != null) { IViewReference ref = page.findViewReference(desc.getId()); if (ref != null) { viewFound = true; } } setChecked(viewFound); } This is not working correctly because when partOpened is fired, the view is not found by findViewReference. It should be the case that by the time partOpened is sent, the part can be found in the list (the notification is past tense). Should investigate whether this is a regression from previous releases.
This was during start up, when opening the first window. The lifecycle may be different once the workbench is fully up, but it shouldn't be.
I think this should be given higher priority since it's likely a regression.
Is this still a problem in 3.3? PW
Changes requested on bug 193523
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.