blob: 1c58dbcb833eeb379862146ed44b03d61c320368 [file] [log] [blame]
package org.eclipse.ui.tutorials.rcp.part3;
import org.eclipse.ui.IPageLayout;
import org.eclipse.ui.IPerspectiveFactory;
import org.eclipse.ui.tutorials.rcp.part3.views.SampleView;
public class RcpPerspective implements IPerspectiveFactory {
public static final String ID_PERSPECTIVE = "org.eclipse.ui.tutorials.rcp.part3.RcpPerspective"; //$NON-NLS-1$
public RcpPerspective() {
}
public void createInitialLayout(IPageLayout layout) {
layout.setEditorAreaVisible(false);
layout.addView(
SampleView.ID_VIEW,
IPageLayout.TOP,
IPageLayout.RATIO_MAX,
IPageLayout.ID_EDITOR_AREA);
layout.addPerspectiveShortcut(ID_PERSPECTIVE);
layout.addShowViewShortcut(SampleView.ID_VIEW);
}
}