org.eclipse.ercp.eworkbench
Class DefaultPerspective

java.lang.Object
  extended by org.eclipse.ercp.eworkbench.DefaultPerspective
All Implemented Interfaces:
IPerspectiveFactory

public class DefaultPerspective
extends java.lang.Object
implements IPerspectiveFactory

Default perspective defines how eRCP apps get displayed


Field Summary
static java.lang.String ID_PERSPECTIVE
           
 
Constructor Summary
DefaultPerspective()
           
 
Method Summary
 void addView(java.lang.String viewId)
           
 void createInitialLayout(IPageLayout layout)
          Creates the initial layout for a page.
static DefaultPerspective getDefault()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ID_PERSPECTIVE

public static final java.lang.String ID_PERSPECTIVE
See Also:
Constant Field Values
Constructor Detail

DefaultPerspective

public DefaultPerspective()
Method Detail

addView

public void addView(java.lang.String viewId)

getDefault

public static DefaultPerspective getDefault()

createInitialLayout

public void createInitialLayout(IPageLayout layout)
Description copied from interface: IPerspectiveFactory
Creates the initial layout for a page.

Implementors of this method may add additional views to a perspective. The perspective already contains an editor folder identified by the result of IPageLayout.getEditorArea(). Additional views should be added to the layout using this value as the initial point of reference.

Specified by:
createInitialLayout in interface IPerspectiveFactory
Parameters:
layout - the page layout