Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: db12c6d418ceb95b0ec5d984e28a8b4b1ae27b1d (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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/*
 * Copyright (c) 2006, 2009 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/2009/GenModel'»
«IMPORT 'http://www.eclipse.org/emf/2002/Ecore'»

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

«EXPAND xpt::Common::generatedClassComment»
public class «workbenchAdvisorClassName» extends org.eclipse.ui.application.WorkbenchAdvisor {
«EXPAND perspectiveId-»

«EXPAND getInitialWindowPerspectiveId-»

«EXPAND initialize-»

«EXPAND createWorkbenchWindowAdvisor-»

«EXPAND additions-»
}
«ENDDEFINE»

«DEFINE perspectiveId FOR gmfgen::GenApplication-»
	«EXPAND xpt::Common::generatedMemberComment»
	public static final String PERSPECTIVE_ID = "«perspectiveId»"; «EXPAND xpt::Common::nonNLS»
«ENDDEFINE»

«DEFINE getInitialWindowPerspectiveId FOR gmfgen::GenApplication-»
	«EXPAND xpt::Common::generatedMemberComment»
	public String getInitialWindowPerspectiveId() {
		return PERSPECTIVE_ID;
	}
«ENDDEFINE»

«DEFINE initialize FOR gmfgen::GenApplication-»
	«EXPAND xpt::Common::generatedMemberComment»
	public void initialize(org.eclipse.ui.application.IWorkbenchConfigurer configurer) {
		super.initialize(configurer);
		configurer.setSaveAndRestore(true);
	}
«ENDDEFINE»

«DEFINE createWorkbenchWindowAdvisor FOR gmfgen::GenApplication-»
	«EXPAND xpt::Common::generatedMemberComment»
	public org.eclipse.ui.application.WorkbenchWindowAdvisor createWorkbenchWindowAdvisor(
			org.eclipse.ui.application.IWorkbenchWindowConfigurer configurer) {
		return new «getWorkbenchWindowAdvisorQualifiedClassName()»(configurer);
	}
«ENDDEFINE»

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

Back to the top