1 /*
2 * This file is a part of CAST project.
3 * (c) Copyright 2007, AGH University of Science & Technology
4 * https://caribou.iisg.agh.edu.pl/trac/cast
5 *
6 * Licensed under the Eclipse Public License, Version 1.0 (the "License").
7 * You may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
9 * http://www.eclipse.org/legal/epl-v10.html
10 */
11 /*
12 * File: DefaultPerspective.java
13 * Created: 2007-00-00
14 * Author: cast
15 * $Id: DefaultPerspective.java 3266 2009-08-27 15:28:45Z tmilos $
16 */
17
18 package pl.edu.agh.cast.ui;
19
20 import org.eclipse.ui.IPageLayout;
21 import org.eclipse.ui.IPerspectiveFactory;
22
23 import pl.edu.agh.cast.navigator.ui.NavigatorTreeView;
24 import pl.edu.agh.cast.ui.outline.OutlineMiniatureView;
25
26 /**
27 * Default CAST application UI perspective.
28 *
29 * @author AGH CAST Team
30 */
31 public class DefaultPerspective implements IPerspectiveFactory {
32
33 /**
34 * ID of the perspective.
35 */
36 public static final String ID = "pl.edu.agh.cast.perspective.default"; //$NON-NLS-1$
37
38 /**
39 * {@inheritDoc}
40 *
41 * @see org.eclipse.ui.IPerspectiveFactory#createInitialLayout(org.eclipse.ui.IPageLayout)
42 */
43 public void createInitialLayout(IPageLayout layout) {
44 String editorArea = layout.getEditorArea();
45 layout.addStandaloneView(NavigatorTreeView.ID, false, IPageLayout.LEFT, 0.25f, editorArea);
46 // layout.addView(OutlineTreeView.ID, IPageLayout.BOTTOM, 0.5f, NavigatorTreeView.ID);
47 layout.addView(OutlineMiniatureView.ID, IPageLayout.BOTTOM, 0.5f, NavigatorTreeView.ID);
48 }
49 }