1 package net.sourceforge.phpeclipse.news;
3 import net.sourceforge.phpeclipse.webbrowser.views.BrowserView;
5 import org.eclipse.ui.IFolderLayout;
6 import org.eclipse.ui.IPageLayout;
7 import org.eclipse.ui.IPerspectiveFactory;
9 //import org.eclipse.update.internal.ui.UpdatePerspective;
11 * @author Laurent Fourrier, Jérôme Nègre
14 public class Perspective implements IPerspectiveFactory {
16 * @see org.eclipse.ui.IPerspectiveFactory#createInitialLayout(IPageLayout)
18 public void createInitialLayout(IPageLayout layout) {
19 String editorArea = layout.getEditorArea();
20 layout.setEditorAreaVisible(false);
21 // IFolderLayout bottom = layout.createFolder("bottom",
22 // IPageLayout.BOTTOM, 0.70f, editorArea);
23 // bottom.addView("net.sourceforge.phpeclipse.news.view.headline");
24 IFolderLayout bottom = layout.createFolder("bottom", IPageLayout.BOTTOM, 0.50f, editorArea);
25 bottom.addView(BrowserView.ID_BROWSER);
26 IFolderLayout left = layout.createFolder("left", IPageLayout.LEFT, 0.30f, editorArea);
27 left.addView("net.sourceforge.phpeclipse.news.view.explorer");
28 IFolderLayout right = layout.createFolder("right", IPageLayout.RIGHT, 0.70f, editorArea);
29 right.addView("net.sourceforge.phpeclipse.news.view.headline");