Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.gastro.rcp.department/src/org/gastro/rcp/internal/department/DepartmentPerspective.java')
-rw-r--r--plugins/org.gastro.rcp.department/src/org/gastro/rcp/internal/department/DepartmentPerspective.java29
1 files changed, 29 insertions, 0 deletions
diff --git a/plugins/org.gastro.rcp.department/src/org/gastro/rcp/internal/department/DepartmentPerspective.java b/plugins/org.gastro.rcp.department/src/org/gastro/rcp/internal/department/DepartmentPerspective.java
new file mode 100644
index 0000000000..2c2da12978
--- /dev/null
+++ b/plugins/org.gastro.rcp.department/src/org/gastro/rcp/internal/department/DepartmentPerspective.java
@@ -0,0 +1,29 @@
+/**
+ * Copyright (c) 2009 Eike Stepper (Berlin, Germany) and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Eike Stepper - initial API and implementation
+ *
+ * Initial Publication:
+ * Eclipse Magazin - http://www.eclipse-magazin.de
+ */
+package org.gastro.rcp.internal.department;
+
+import org.eclipse.ui.IPageLayout;
+import org.eclipse.ui.IPerspectiveFactory;
+
+public class DepartmentPerspective implements IPerspectiveFactory
+{
+ public void createInitialLayout(IPageLayout layout)
+ {
+ String editorArea = layout.getEditorArea();
+ layout.setEditorAreaVisible(false);
+ layout.setFixed(true);
+ layout.addStandaloneView(EmployeesView.ID, false, IPageLayout.LEFT, 0.13f, editorArea);
+ layout.addStandaloneView(OrdersView.ID, false, IPageLayout.RIGHT, 1.0f, editorArea);
+ }
+}

Back to the top