Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 0a73cfea3231af68dedddbdbe295416c94c1d63d (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, 2008 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 Main FOR GenStandardPreferencePage-
EXPAND xpt::Common::copyright FOR getDiagram().editorGen-
package getDiagram().preferencesPackageName;

public class getClassName()EXPAND extendsListEXPAND implementsList {

	EXPAND xpt::Common::generatedMemberComment
	public getClassName()() {
		setPreferenceStore(getDiagram().editorGen.plugin.getActivatorQualifiedClassName().getInstance().getPreferenceStore());
	}
}
ENDDEFINE

DEFINE extendsList FOR GenStandardPreferencePage-
IF gmfgen::StandardPreferencePages::General == kind-
 extends org.eclipse.gmf.runtime.diagram.ui.preferences.DiagramsPreferencePage-
ELSEIF gmfgen::StandardPreferencePages::Appearance == kind-
 extends org.eclipse.gmf.runtime.diagram.ui.preferences.AppearancePreferencePage-
ELSEIF gmfgen::StandardPreferencePages::Connections == kind-
 extends org.eclipse.gmf.runtime.diagram.ui.preferences.ConnectionsPreferencePage-
ELSEIF gmfgen::StandardPreferencePages::Printing == kind-
 extends org.eclipse.gmf.runtime.diagram.ui.preferences.PrintingPreferencePage-
ELSEIF gmfgen::StandardPreferencePages::RulersAndGrid == kind-
 extends org.eclipse.gmf.runtime.diagram.ui.preferences.RulerGridPreferencePage-
ENDIF-
ENDDEFINE

DEFINE implementsList FOR GenStandardPreferencePageREMno-opENDREMENDDEFINE

DEFINE call_initDefaults(String storeVarName) FOR GenStandardPreferencePageIF kind != StandardPreferencePages::PathmapsgetQualifiedClassName().initDefaults(storeVarName);ENDIFENDDEFINE

Back to the top