Adapt after connect refactoring
[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.people.workbench.rap.views.MyTasksView;
4 import org.argeo.connect.people.workbench.rap.views.PeopleDefaultView;
5 import org.eclipse.ui.IFolderLayout;
6 import org.eclipse.ui.IPageLayout;
7 import org.eclipse.ui.IPerspectiveFactory;
8
9 /** Default office perspective */
10 public class DashboardPerspective implements IPerspectiveFactory {
11
12 public void createInitialLayout(IPageLayout layout) {
13 String editorArea = layout.getEditorArea();
14 layout.setEditorAreaVisible(true);
15 layout.setFixed(false);
16
17 IFolderLayout left = layout.createFolder("left", IPageLayout.LEFT, 0.25f, editorArea);
18 left.addView(MyTasksView.ID);
19 // Only show contacts to coworkers
20 // if (CurrentUser.isInRole(AoRole.coworker.dn()))
21 left.addView(PeopleDefaultView.ID);
22 }
23 }