|
1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 package com.symbian.smt.gui.perspective; |
|
17 |
|
18 import org.eclipse.ui.IFolderLayout; |
|
19 import org.eclipse.ui.IPageLayout; |
|
20 import org.eclipse.ui.IPerspectiveFactory; |
|
21 |
|
22 public class Perspective implements IPerspectiveFactory { |
|
23 |
|
24 public static final String ID = "com.symbian.smt.gui.perspective"; //$NON-NLS-1$ |
|
25 |
|
26 // Add fast views to the perspective |
|
27 private void addFastViews(IPageLayout layout) { |
|
28 } |
|
29 |
|
30 // Add perspective shortcuts to the perspective |
|
31 private void addPerspectiveShortcuts(IPageLayout layout) { |
|
32 } |
|
33 |
|
34 // Add view shortcuts to the perspective |
|
35 private void addViewShortcuts(IPageLayout layout) { |
|
36 } |
|
37 |
|
38 // Creates the initial layout for a page |
|
39 public void createInitialLayout(IPageLayout layout) { |
|
40 String editorArea = layout.getEditorArea(); |
|
41 addFastViews(layout); |
|
42 addViewShortcuts(layout); |
|
43 addPerspectiveShortcuts(layout); |
|
44 |
|
45 IFolderLayout topLeft = layout.createFolder("topLeft", |
|
46 IPageLayout.LEFT, 0.25f, editorArea); // $NON-NLS$ |
|
47 topLeft.addView("org.eclipse.ui.navigator.ProjectExplorer"); |
|
48 layout.addView(com.symbian.smt.gui.views.ConsoleOutput.ID, |
|
49 IPageLayout.BOTTOM, 0.80f, editorArea); |
|
50 } |
|
51 } |