| /******************************************************************************* |
| * Copyright (c) 2009, 2010 IBM Corporation 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: |
| * IBM Corporation - initial API and implementation |
| *******************************************************************************/ |
| package org.eclipse.actf.examples.scripteditor; |
| |
| import org.eclipse.actf.ai.ui.scripteditor.views.EditPanelView; |
| import org.eclipse.actf.ai.ui.scripteditor.views.ScriptListView; |
| import org.eclipse.actf.ai.ui.scripteditor.views.TimeLineView; |
| import org.eclipse.ui.IPageLayout; |
| import org.eclipse.ui.IPerspectiveFactory; |
| |
| public class Perspective implements IPerspectiveFactory { |
| |
| public void createInitialLayout(IPageLayout layout) { |
| String editorArea = layout.getEditorArea(); |
| layout.setEditorAreaVisible(false); |
| layout.setFixed(true); |
| |
| // Create each ViewPart |
| layout.addStandaloneView(EditPanelView.VIEW_ID, false, |
| IPageLayout.BOTTOM, 0.72f, editorArea); |
| layout.addStandaloneView(ScriptListView.VIEW_ID, true, |
| IPageLayout.RIGHT, 0.7f, editorArea); |
| layout.addStandaloneView(TimeLineView.VIEW_ID, true, |
| IPageLayout.BOTTOM, 0.7f, editorArea); |
| } |
| } |