Enhance modularity
[gpl/argeo-suite.git] / org.argeo.suite.workbench.rap / src / org / argeo / suite / workbench / DashboardPerspective.java
1 package org.argeo.suite.workbench;
2
3 import org.argeo.connect.documents.workbench.parts.MyFilesView;
4 import org.argeo.connect.people.workbench.rap.views.MyTodoListView;
5 import org.argeo.connect.people.workbench.rap.views.QuickSearchView;
6 import org.eclipse.ui.IFolderLayout;
7 import org.eclipse.ui.IPageLayout;
8 import org.eclipse.ui.IPerspectiveFactory;
9
10 /** Default Argeo Suite Dashboard perspective */
11 public class DashboardPerspective implements IPerspectiveFactory {
12
13         public void createInitialLayout(IPageLayout layout) {
14                 String editorArea = layout.getEditorArea();
15                 layout.setEditorAreaVisible(true);
16                 layout.setFixed(false);
17                 IFolderLayout left = layout.createFolder("left", IPageLayout.LEFT, 0.25f, editorArea);
18                 left.addView(MyFilesView.ID);
19                 left.addView(QuickSearchView.ID);
20                 left.addView(MyTodoListView.ID);
21         }
22 }