Create a new empty descriptor.
Parameters: id - the id of the new descriptor Parameters: label - the label of the new descriptor Parameters: originalDescriptor - the descriptor that this descriptor is based on
PerspectiveDescriptor
public PerspectiveDescriptor(String id, IConfigurationElement configElement) throws CoreException(Code)
Create a descriptor from a config element.
Parameters: id - the id of the element to create Parameters: configElement - the element to base this perspective on throws: CoreException - thrown if there are any missing attributes
Creates a factory for a predefined perspective. If the perspective is not
predefined return null.
the IPerspectiveFactory or null throws: CoreException - if the object could not be instantiated.
Returns the factory class name for this descriptor.
the factory class name for this descriptor since: 3.1
getConfigElement
public IConfigurationElement getConfigElement()(Code)
Return the configuration element used to create this perspective, if one
was used.
the configuration element used to create this perspective since: 3.0
Restore the state of a perspective from a memento.
Parameters: memento - the memento to restore from the IStatus of the operation See Also:org.eclipse.ui.IPersistableElement
Save the state of a perspective to a memento.
Parameters: memento - the memento to restore from the IStatus of the operation See Also:org.eclipse.ui.IPersistableElement