Bug 74012 - [RCP] [Perspectives] Public API needed for listing, closing perspective
Summary: [RCP] [Perspectives] Public API needed for listing, closing perspective
Status: RESOLVED DUPLICATE of bug 71078
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.0   Edit
Hardware: All Windows XP
: P3 enhancement (vote)
Target Milestone: 3.1   Edit
Assignee: Nick Edgar CLA
QA Contact:
URL:
Whiteboard:
Keywords: api
Depends on:
Blocks:
 
Reported: 2004-09-15 15:53 EDT by S Dix CLA
Modified: 2004-12-21 16:19 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description S Dix CLA 2004-09-15 15:53:48 EDT
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();
Comment 1 Ines Khelifi CLA 2004-09-15 17:17:22 EDT
You can also close the perspective using the ActionFactory class, which I
believe is public API.
Comment 2 Nick Edgar CLA 2004-09-16 11:13:36 EDT
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)
Comment 3 Nick Edgar CLA 2004-11-12 12:06:55 EST
*** Bug 78465 has been marked as a duplicate of this bug. ***
Comment 4 Nick Edgar CLA 2004-12-21 16:19:48 EST
This was fixed for M4.

*** This bug has been marked as a duplicate of 71078 ***