carbidecpp22devenv/plugins/org.eclipse.gmf.templates.legacy_1.0.0.v20090614-0839/codegen.lite.templates/xpt/providers/extensions.xpt
changeset 422 033392511bf7
--- /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/providers/extensions.xpt	Fri Dec 04 11:06:59 2009 -0600
@@ -0,0 +1,84 @@
+/*
+ * 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"»
+«EXTENSION xpt::providers::ValidationUtils»
+
+«DEFINE extensions FOR gmfgen::GenEditorGenerator-»
+«EXPAND markers-»
+«EXPAND metrics FOR metrics-»
+«EXPAND shortcutProviders-»
+«ENDDEFINE»
+
+«DEFINE i18n FOR gmfgen::GenEditorGenerator-»
+«EXPAND markersi18n-»
+«EXPAND metricsi18n FOR metrics-»
+«ENDDEFINE»
+
+«DEFINE markers FOR gmfgen::GenEditorGenerator-»
+«IF null == application && diagram.validationNeeded()-»
+   <extension
+         id="diagnostic"
+         name="%_UI_Diagnostic_marker"
+         point="org.eclipse.core.resources.markers">
+      «EXPAND xpt::Common::xmlGeneratedTag»
+      <super
+            type="org.eclipse.emf.validation.problem">
+      </super>
+      <persistent
+            value="false">
+      </persistent>
+      <attribute
+            name="message"/>
+      <attribute
+            name="location"/>
+      <attribute
+            name="severity"/>
+   </extension>
+«ENDIF-»
+«ENDDEFINE»
+
+«DEFINE metrics FOR gmfgen::GenMetricContainer-»
+«IF metrics.size() > 0-»
+	<extension point="org.eclipse.ui.views">
+	    «EXPAND xpt::Common::xmlGeneratedTag»
+   		<view class="«editorGen.diagram.getMetricProviderQualifiedClassName()»$ResultView"
+			id="«editorGen.diagram.getMetricViewID()»"
+			name="%UI_Metrics_View_name"/>
+	</extension>
+«ENDIF-»
+«ENDDEFINE»
+
+«DEFINE shortcutProviders FOR gmfgen::GenEditorGenerator-»
+«IF diagram.generateShortcutIcon()-»
+<extension point="org.eclipse.gmf.runtime.lite.shortcutProviders">
+	«EXPAND xpt::Common::xmlGeneratedTag»
+	<shortcutProvider
+		class="«EXPAND xpt::providers::ShortcutProvider::qualifiedClassName FOR diagram»"
+	    modelID="«modelID»">
+	</shortcutProvider>
+</extension>
+«ENDIF-»
+«ENDDEFINE»
+
+«DEFINE markersi18n FOR gmfgen::GenEditorGenerator-»
+«IF null == application && diagram.validationNeeded()-»
+_UI_Diagnostic_marker=«modelID» Diagnostics Markers
+«ENDIF-»
+«ENDDEFINE»
+
+«DEFINE metricsi18n FOR gmfgen::GenMetricContainer-»
+«IF metrics.size() > 0-»
+UI_Metrics_View_name=«editorGen.modelID» Diagram Metrics
+«ENDIF-»
+«ENDDEFINE»