Community
Participate
Working Groups
Build Identifier: Version: 4.2.0 Build id: I20120315-1300 After I opened new perspective by using the "open perspective" button IPerspectiveListener3.perspectiveOpened was not called.Same for IPerspectiveListener3.perspectiveClosed if closing the perspective.These worked fine for older eclipse versions such as 3.7. Reproducible: Always Steps to Reproduce: I have the following simple code fragment: IWorkbenchWindow workbechWindow = PlatformUI.getWorkbench().getActiveWorkbenchWindow(); workbechWindow.addPerspectiveListener(new IPerspectiveListener3(){ ... public void perspectiveOpened(IWorkbenchPage page, IPerspectiveDescriptor perspective) { System.out.println("Inside perspective open"); } ... });
We have the same problem upon clode, open works fine.
Created attachment 229163 [details] Fire events for legacy window
http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=91b8a59e7fd7e5ca6bfbd2d6336d311afcf85972 Committed Jens' code (one slight mod, I put the perspOpened call inside the 'persp != null' check since if it is null we shouldn't fire the event) Thanks Jens ! I've given you the 'author' attribution for this one !
Marking as FIXED...
Verified in 4.3.0.I20130430-0031.