View | Details | Raw Unified | Return to bug 244643 | Differences between
and this patch

Collapse All | Expand All

(-)src/org/eclipse/ide4edu/javalite/infrastructure/JavaLitePerspective.java (-37 / +38 lines)
Lines 1-37 Link Here
1
/*******************************************************************************
1
/*******************************************************************************
2
 * Copyright (c) 2008 The Eclipse Foundation and others
2
 * Copyright (c) 2008 The Eclipse Foundation and others
3
 * All rights reserved. This program and the accompanying materials
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 *
7
 *
8
 * Contributors:
8
 * Contributors:
9
 *     Eclipse Foundation - initial API and implementation
9
 *     Eclipse Foundation - initial API and implementation
10
 *******************************************************************************/
10
 *******************************************************************************/
11
package org.eclipse.ide4edu.javalite.infrastructure;
11
package org.eclipse.ide4edu.javalite.infrastructure;
12
12
13
import org.eclipse.ide4edu.javalite.ui.view.LitePackageExplorer;
13
import org.eclipse.ide4edu.javalite.ui.view.LitePackageExplorer;
14
import org.eclipse.ui.IFolderLayout;
14
import org.eclipse.ui.IFolderLayout;
15
import org.eclipse.ui.IPageLayout;
15
import org.eclipse.ui.IPageLayout;
16
import org.eclipse.ui.IPerspectiveFactory;
16
import org.eclipse.ui.IPerspectiveFactory;
17
17
18
18
19
public class JavaLitePerspective implements IPerspectiveFactory {
19
public class JavaLitePerspective implements IPerspectiveFactory {
20
	
20
	
21
	public void createInitialLayout(IPageLayout layout){
21
	public void createInitialLayout(IPageLayout layout){
22
		String editorArea = layout.getEditorArea();
22
		String editorArea = layout.getEditorArea();
23
		
23
		
24
		//Create folder layout (left to editor) to hold views
24
		//Create folder layout (left to editor) to hold views
25
		IFolderLayout leftFolder = layout.createFolder("leftFolder",IPageLayout.LEFT, (float) 0.40, editorArea); 
25
		IFolderLayout leftFolder = layout.createFolder("leftFolder", IPageLayout.LEFT, (float) 0.40, editorArea); 
26
		leftFolder.addView(LitePackageExplorer.ID);
26
		leftFolder.addView(LitePackageExplorer.ID);
27
		
27
		//leftFolder.addView("org.eclipse.ui.views.ContentOutline");
28
		IFolderLayout bottomFolder = layout.createFolder("bottomFolder",IPageLayout.BOTTOM, (float) 0.70, editorArea); 
28
		
29
		bottomFolder.addView("org.eclipse.ui.console.ConsoleView");
29
		IFolderLayout bottomFolder = layout.createFolder("bottomFolder",IPageLayout.BOTTOM, (float) 0.70, editorArea); 
30
		
30
		bottomFolder.addView("org.eclipse.ui.console.ConsoleView");
31
		IFolderLayout rightFolder = layout.createFolder("rightFolder",IPageLayout.RIGHT, (float) 0.60, editorArea); 
31
		
32
		rightFolder.addView("org.eclipse.ui.views.ContentOutline");
32
		//IFolderLayout rightFolder = layout.createFolder("rightFolder",IPageLayout.RIGHT, (float) 0.60, editorArea); 
33
		
33
		//rightFolder.addView("org.eclipse.ui.views.ContentOutline");
34
		//layout.setEditorAreaVisible(false);
34
		
35
	} 
35
		//layout.setEditorAreaVisible(false);
36
36
	} 
37
}
37
38
}

Return to bug 244643