Community
Participate
Working Groups
There is no public API avilable to close the perspective programatically. You have to use internal classes something like ClosePerspectiveAction as follows: ClosePerspectiveAction action = new ClosePerspectiveAction (activeWorkbenchPage); action.run(); action.dispose();
You can also close the perspective using the ActionFactory class, which I believe is public API.
Yes, you can obtain this action via ActionFactory.CLOSE_PERSPECTIVE. However, there should be more explicit API for managing perspectives. For example, enough for an app to write its own perspective bar. This includes: - opening, closing and switching between perspectives - querying all open perspectives - getting notified about perspective changes (some of these are already available)
*** Bug 78465 has been marked as a duplicate of this bug. ***
This was fixed for M4. *** This bug has been marked as a duplicate of 71078 ***