diff -r 631a44165bcf -r 033392511bf7 carbidecpp22devenv/plugins/org.eclipse.gmf.templates.legacy_1.0.0.v20090614-0839/codegen.lite.templates/xpt/diagram/preferences/Common.xpt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/carbidecpp22devenv/plugins/org.eclipse.gmf.templates.legacy_1.0.0.v20090614-0839/codegen.lite.templates/xpt/diagram/preferences/Common.xpt Fri Dec 04 11:06:59 2009 -0600 @@ -0,0 +1,24 @@ +/* + * Copyright (c) 2007 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: + * bblajer (Borland) - initial API and implementation + */ + +«IMPORT "http://www.eclipse.org/gmf/2008/GenModel"» +«IMPORT "http://www.eclipse.org/emf/2002/Ecore"» +«IMPORT "http://www.eclipse.org/emf/2002/GenModel"» +«EXTENSION xpt::GenModelUtils» + +«DEFINE doGetPreferenencePage FOR gmfgen::GenDiagram-» +«EXPAND xpt::Common::generatedMemberComment» +protected org.eclipse.jface.preference.IPreferenceStore doGetPreferenceStore() { + return «editorGen.plugin.getActivatorQualifiedClassName()».getInstance().getPreferenceStore(); +} +«ENDDEFINE» +