Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 3bdcfff58ea30dec2d436ae271f7dd6044d2dee6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/*
 * Copyright (c) 2006 Borland Software Corporation
 * 
 * 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:
 *    Dmitry Stadnik (Borland) - initial API and implementation
 */

«IMPORT 'http://www.eclipse.org/gmf/2008/GenModel'»
«IMPORT 'http://www.eclipse.org/emf/2002/Ecore'»

«DEFINE Perspective FOR gmfgen::GenApplication-»
«EXPAND xpt::Common::copyright FOR editorGen-»
package «packageName»;

«EXPAND xpt::Common::generatedClassComment»
public class «perspectiveClassName» implements org.eclipse.ui.IPerspectiveFactory {
	«EXPAND createInitialLayout-»
	«EXPAND additions-»
«ENDDEFINE»
«DEFINE createInitialLayout FOR gmfgen::GenApplication-»
	«EXPAND xpt::Common::generatedMemberComment»
	public void createInitialLayout(org.eclipse.ui.IPageLayout layout) {
		layout.setEditorAreaVisible(true);
		layout.addPerspectiveShortcut(«getWorkbenchAdvisorQualifiedClassName()».PERSPECTIVE_ID);
		org.eclipse.ui.IFolderLayout right = layout.createFolder(
			"right", org.eclipse.ui.IPageLayout.RIGHT, 0.6f, layout.getEditorArea()); «EXPAND xpt::Common::nonNLS»
		right.addView(org.eclipse.ui.IPageLayout.ID_OUTLINE);
		org.eclipse.ui.IFolderLayout bottomRight = layout.createFolder(
			"bottomRight", org.eclipse.ui.IPageLayout.BOTTOM, 0.6f, "right"); «EXPAND xpt::Common::nonNLS»	«EXPAND xpt::Common::nonNLS(2)»
		bottomRight.addView(org.eclipse.ui.IPageLayout.ID_PROP_SHEET);
		«EXPAND layoutAdditions-»
	}
}
«ENDDEFINE»

«DEFINE layoutAdditions FOR gmfgen::GenApplication-»
«ENDDEFINE»

«DEFINE additions FOR gmfgen::GenApplication-»
«ENDDEFINE»

Back to the top