Unused class.
[phpeclipse.git] / archive / net.sourceforge.phpeclipse.news / src / net / sourceforge / phpeclipse / news / Perspective.java
1 package net.sourceforge.phpeclipse.news;
2
3 import net.sourceforge.phpeclipse.webbrowser.views.BrowserView;
4
5 import org.eclipse.ui.IFolderLayout;
6 import org.eclipse.ui.IPageLayout;
7 import org.eclipse.ui.IPerspectiveFactory;
8
9 //import org.eclipse.update.internal.ui.UpdatePerspective;
10 /**
11  * @author Laurent Fourrier, Jérôme Nègre
12  *  
13  */
14 public class Perspective implements IPerspectiveFactory {
15   /**
16    * @see org.eclipse.ui.IPerspectiveFactory#createInitialLayout(IPageLayout)
17    */
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");
30   }
31 }