Home
.. Links
.. Search
.. Plugins
.. Help
.. Irc Faq

Projects
.. Platform/Faq
.. JDT/Faq/Plan
.. PDE/Faq
.. SWT/Faq
.. RCP/Faq

Tools Projects
.. CDT/Faq
.. GEF/Faq
.. EMF/Faq

Wiki Tutorials

Hosted Projects
.. MTJ
.. Google Summer Of Code 2007
.. Update Manager 2.0
.. EasyEclipse
.. Stylebase for Eclipse

Archives

CreatePerspectiveWithoutEditor


package org.rdfx.rcp;

import org.eclipse.ui.IPageLayout;
import org.eclipse.ui.IPerspectiveFactory;

public class RcpPerspective implements IPerspectiveFactory {
public static final String ID_PERSPECTIVE =
"org.rdfx.rcp.RcpPerspective"; //$NON-NLS-1$

public RcpPerspective() {
}

public void createInitialLayout(IPageLayout layout) {
layout.setEditorAreaVisible(false);
layout.addView(
"org.rdfx.views.list",
IPageLayout.LEFT,
0.5f,
IPageLayout.ID_EDITOR_AREA);
layout.addView(
"org.rdfx.views.explorer",
IPageLayout.RIGHT,
0.5f,
IPageLayout.ID_EDITOR_AREA);
layout.addPerspectiveShortcut(ID_PERSPECTIVE);
layout.addShowViewShortcut("org.rdfx.views.list");
layout.addShowViewShortcut("org.rdfx.views.explorer");
}
}

Last Modified 6/21/06 10:22 AM

Hide Tools