| org.eclipse.ui.IPerspectiveRegistry
All known Subclasses: org.eclipse.ui.internal.registry.PerspectiveRegistry,
IPerspectiveRegistry | public interface IPerspectiveRegistry (Code) | | 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.
See Also: IWorkbench.getPerspectiveRegistry |
deletePerspective | public void deletePerspective(IPerspectiveDescriptor persp)(Code) | | Deletes a perspective. Has no effect if the perspective is defined in an
extension.
Parameters: persp - the perspective to delete since: 3.2 |
getDefaultPerspective | public String getDefaultPerspective()(Code) | | Returns the id of the default perspective for the workbench. This identifies one
perspective extension within the workbench's perspective registry.
Returns null if there is no default perspective.
the default perspective id, or null |
getPerspectives | public IPerspectiveDescriptor[] getPerspectives()(Code) | | Returns a list of the perspectives known to the workbench.
a list of perspectives |
revertPerspective | public void revertPerspective(IPerspectiveDescriptor perspToRevert)(Code) | | Reverts a perspective back to its original definition
as specified in the plug-in manifest.
Parameters: perspToRevert - the perspective to revert since: 3.0 |
setDefaultPerspective | public void setDefaultPerspective(String id)(Code) | | Sets the default perspective for the workbench to the given perspective id.
If non-null , the id must correspond to a perspective extension
within the workbench's perspective registry.
A null id indicates no default perspective.
Parameters: id - a perspective id, or null |
|
|