|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IPerspectiveRegistry
The workbench's global registry of perspectives.
This registry contains a descriptor for each perspectives in the workbench.
It is initially populated with stock perspectives from the workbench's
perspective extension point ("org.eclipse.ui.perspectives"
) and
with custom perspectives defined by the user.
This interface is not intended to be implemented by clients.
IWorkbench.getPerspectiveRegistry()
Method Summary | |
---|---|
IPerspectiveDescriptor |
clonePerspective(java.lang.String id,
java.lang.String label,
IPerspectiveDescriptor desc)
Clones an existing perspective. |
IPerspectiveDescriptor |
findPerspectiveWithId(java.lang.String perspectiveId)
Finds and returns the registered perspective with the given perspective id. |
IPerspectiveDescriptor |
findPerspectiveWithLabel(java.lang.String label)
Finds and returns the registered perspective with the given label. |
java.lang.String |
getDefaultPerspective()
Returns the id of the default perspective for the workbench. |
IPerspectiveDescriptor[] |
getPerspectives()
Returns a list of the perspectives known to the workbench. |
void |
revertPerspective(IPerspectiveDescriptor perspToRevert)
Reverts a perspective back to its original definition as specified in the plug-in manifest. |
void |
setDefaultPerspective(java.lang.String id)
Sets the default perspective for the workbench to the given perspective id. |
Method Detail |
---|
IPerspectiveDescriptor clonePerspective(java.lang.String id, java.lang.String label, IPerspectiveDescriptor desc) throws java.lang.IllegalArgumentException
id
- the id for the cloned perspective, which must not already be used by
any registered perspectivelabel
- the label assigned to the cloned perspectivedesc
- the perspective to clone
java.lang.IllegalArgumentException
IPerspectiveDescriptor findPerspectiveWithId(java.lang.String perspectiveId)
perspectiveId
- the perspective id
null
if noneIPerspectiveDescriptor.getId()
IPerspectiveDescriptor findPerspectiveWithLabel(java.lang.String label)
label
- the label
null
if noneIPerspectiveDescriptor.getLabel()
java.lang.String getDefaultPerspective()
Returns null
if there is no default perspective.
null
IPerspectiveDescriptor[] getPerspectives()
void setDefaultPerspective(java.lang.String id)
null
, the id must correspond to a perspective extension
within the workbench's perspective registry.
A null
id indicates no default perspective.
id
- a perspective id, or null
void revertPerspective(IPerspectiveDescriptor perspToRevert)
perspToRevert
- the perspective to revert
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |