Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.gmf.codegen/templates/xpt/application')
-rw-r--r--plugins/org.eclipse.gmf.codegen/templates/xpt/application/ActionBarAdvisor.xpt4
-rw-r--r--plugins/org.eclipse.gmf.codegen/templates/xpt/application/Application.xpt4
-rw-r--r--plugins/org.eclipse.gmf.codegen/templates/xpt/application/Perspective.xpt4
-rw-r--r--plugins/org.eclipse.gmf.codegen/templates/xpt/application/WizardNewFileCreationPage.xpt4
-rw-r--r--plugins/org.eclipse.gmf.codegen/templates/xpt/application/WorkbenchAdvisor.xpt4
-rw-r--r--plugins/org.eclipse.gmf.codegen/templates/xpt/application/WorkbenchWindowAdvisor.xpt4
-rw-r--r--plugins/org.eclipse.gmf.codegen/templates/xpt/application/extensions.xpt4
-rw-r--r--plugins/org.eclipse.gmf.codegen/templates/xpt/application/i18n.qvto45
8 files changed, 43 insertions, 30 deletions
diff --git a/plugins/org.eclipse.gmf.codegen/templates/xpt/application/ActionBarAdvisor.xpt b/plugins/org.eclipse.gmf.codegen/templates/xpt/application/ActionBarAdvisor.xpt
index afefe9c7e..62d2aa2f5 100644
--- a/plugins/org.eclipse.gmf.codegen/templates/xpt/application/ActionBarAdvisor.xpt
+++ b/plugins/org.eclipse.gmf.codegen/templates/xpt/application/ActionBarAdvisor.xpt
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006, 2008 Borland Software Corporation
+ * 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
@@ -10,7 +10,7 @@
* Dmitry Stadnik (Borland) - initial API and implementation
*/
-«IMPORT 'http://www.eclipse.org/gmf/2008/GenModel'»
+«IMPORT 'http://www.eclipse.org/gmf/2009/GenModel'»
«IMPORT 'http://www.eclipse.org/emf/2002/Ecore'»
«EXTENSION xpt::application::i18n»
diff --git a/plugins/org.eclipse.gmf.codegen/templates/xpt/application/Application.xpt b/plugins/org.eclipse.gmf.codegen/templates/xpt/application/Application.xpt
index 0543e7b46..72e6c7aeb 100644
--- a/plugins/org.eclipse.gmf.codegen/templates/xpt/application/Application.xpt
+++ b/plugins/org.eclipse.gmf.codegen/templates/xpt/application/Application.xpt
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006 Borland Software Corporation
+ * 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
@@ -10,7 +10,7 @@
* Dmitry Stadnik (Borland) - initial API and implementation
*/
-«IMPORT 'http://www.eclipse.org/gmf/2008/GenModel'»
+«IMPORT 'http://www.eclipse.org/gmf/2009/GenModel'»
«IMPORT 'http://www.eclipse.org/emf/2002/Ecore'»
«DEFINE Application FOR gmfgen::GenApplication-»
diff --git a/plugins/org.eclipse.gmf.codegen/templates/xpt/application/Perspective.xpt b/plugins/org.eclipse.gmf.codegen/templates/xpt/application/Perspective.xpt
index 3bdcfff58..91504c441 100644
--- a/plugins/org.eclipse.gmf.codegen/templates/xpt/application/Perspective.xpt
+++ b/plugins/org.eclipse.gmf.codegen/templates/xpt/application/Perspective.xpt
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006 Borland Software Corporation
+ * 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
@@ -10,7 +10,7 @@
* Dmitry Stadnik (Borland) - initial API and implementation
*/
-«IMPORT 'http://www.eclipse.org/gmf/2008/GenModel'»
+«IMPORT 'http://www.eclipse.org/gmf/2009/GenModel'»
«IMPORT 'http://www.eclipse.org/emf/2002/Ecore'»
«DEFINE Perspective FOR gmfgen::GenApplication-»
diff --git a/plugins/org.eclipse.gmf.codegen/templates/xpt/application/WizardNewFileCreationPage.xpt b/plugins/org.eclipse.gmf.codegen/templates/xpt/application/WizardNewFileCreationPage.xpt
index adec03972..18e424c40 100644
--- a/plugins/org.eclipse.gmf.codegen/templates/xpt/application/WizardNewFileCreationPage.xpt
+++ b/plugins/org.eclipse.gmf.codegen/templates/xpt/application/WizardNewFileCreationPage.xpt
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006 Borland Software Corporation
+ * 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
@@ -10,7 +10,7 @@
* Dmitry Stadnik (Borland) - initial API and implementation
*/
-«IMPORT 'http://www.eclipse.org/gmf/2008/GenModel'»
+«IMPORT 'http://www.eclipse.org/gmf/2009/GenModel'»
«IMPORT 'http://www.eclipse.org/emf/2002/Ecore'»
«EXTENSION xpt::application::i18n»
diff --git a/plugins/org.eclipse.gmf.codegen/templates/xpt/application/WorkbenchAdvisor.xpt b/plugins/org.eclipse.gmf.codegen/templates/xpt/application/WorkbenchAdvisor.xpt
index 925ca847a..db12c6d41 100644
--- a/plugins/org.eclipse.gmf.codegen/templates/xpt/application/WorkbenchAdvisor.xpt
+++ b/plugins/org.eclipse.gmf.codegen/templates/xpt/application/WorkbenchAdvisor.xpt
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006 Borland Software Corporation
+ * 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
@@ -10,7 +10,7 @@
* Dmitry Stadnik (Borland) - initial API and implementation
*/
-«IMPORT 'http://www.eclipse.org/gmf/2008/GenModel'»
+«IMPORT 'http://www.eclipse.org/gmf/2009/GenModel'»
«IMPORT 'http://www.eclipse.org/emf/2002/Ecore'»
«DEFINE WorkbenchAdvisor FOR gmfgen::GenApplication-»
diff --git a/plugins/org.eclipse.gmf.codegen/templates/xpt/application/WorkbenchWindowAdvisor.xpt b/plugins/org.eclipse.gmf.codegen/templates/xpt/application/WorkbenchWindowAdvisor.xpt
index 0d3c81408..164aeb308 100644
--- a/plugins/org.eclipse.gmf.codegen/templates/xpt/application/WorkbenchWindowAdvisor.xpt
+++ b/plugins/org.eclipse.gmf.codegen/templates/xpt/application/WorkbenchWindowAdvisor.xpt
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006 Borland Software Corporation
+ * 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
@@ -10,7 +10,7 @@
* Dmitry Stadnik (Borland) - initial API and implementation
*/
-«IMPORT 'http://www.eclipse.org/gmf/2008/GenModel'»
+«IMPORT 'http://www.eclipse.org/gmf/2009/GenModel'»
«IMPORT 'http://www.eclipse.org/emf/2002/Ecore'»
«EXTENSION xpt::application::i18n»
diff --git a/plugins/org.eclipse.gmf.codegen/templates/xpt/application/extensions.xpt b/plugins/org.eclipse.gmf.codegen/templates/xpt/application/extensions.xpt
index ddd2eb7e2..3b6969d40 100644
--- a/plugins/org.eclipse.gmf.codegen/templates/xpt/application/extensions.xpt
+++ b/plugins/org.eclipse.gmf.codegen/templates/xpt/application/extensions.xpt
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2007 Borland Software Corporation
+ * Copyright (c) 2007, 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
@@ -10,7 +10,7 @@
* Dmitry Stadnik (Borland) - initial API and implementation
*/
-«IMPORT 'http://www.eclipse.org/gmf/2008/GenModel'»
+«IMPORT 'http://www.eclipse.org/gmf/2009/GenModel'»
«IMPORT 'http://www.eclipse.org/emf/2002/Ecore'»
«DEFINE extensions FOR gmfgen::GenApplication-»
diff --git a/plugins/org.eclipse.gmf.codegen/templates/xpt/application/i18n.qvto b/plugins/org.eclipse.gmf.codegen/templates/xpt/application/i18n.qvto
index db283db08..7b186c4e5 100644
--- a/plugins/org.eclipse.gmf.codegen/templates/xpt/application/i18n.qvto
+++ b/plugins/org.eclipse.gmf.codegen/templates/xpt/application/i18n.qvto
@@ -1,20 +1,31 @@
-modeltype genModel uses "http://www.eclipse.org/gmf/2008/GenModel";
+/*
+ * Copyright (c) 2007, 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:
+ * Anna Karjakina (Borland) - initial API and implementation
+ */
+modeltype gmfgen uses "http://www.eclipse.org/gmf/2009/GenModel";
library i18n;
-helper i18nKeyForDefaultFileEditorErrorDialog(app : genModel::GenApplication) : String {
+helper i18nKeyForDefaultFileEditorErrorDialog(app : gmfgen::GenApplication) : String {
return app.actionBarAdvisorClassName + '.DefaultFileEditor'
}
-helper i18nKeyForDefaultEditorOpenErrorDialog(app : genModel::GenApplication) : String {
+helper i18nKeyForDefaultEditorOpenErrorDialog(app : gmfgen::GenApplication) : String {
return app.actionBarAdvisorClassName + '.DefaultEditorOpenError'
}
-helper i18nKeyForWindowTitle(app : genModel::GenApplication) : String {
+helper i18nKeyForWindowTitle(app : gmfgen::GenApplication) : String {
return app.workbenchWindowAdvisorClassName + '.Title'
}
-helper i18nKeyForAboutDialog(app : genModel::GenApplication) : String {
+helper i18nKeyForAboutDialog(app : gmfgen::GenApplication) : String {
return app.actionBarAdvisorClassName + '.AboutDialog'
}
@@ -26,38 +37,40 @@ helper messageKey(dialogKey : String) : String {
return dialogKey + 'Message'
}
-helper i18nKeyForMenu(menuManager : genModel::GenMenuManager) : String {
+helper i18nKeyForMenu(menuManager : gmfgen::GenMenuManager) : String {
return 'ApplicationMenuName.' + menuManager.name
}
-helper collectGenMenuManagers(allItems : Collection(genModel::GenContributionItem)) : Sequence(genModel::GenMenuManager) {
- return (collectAllContributionItems(allItems))[genModel::GenMenuManager]
+-- FIXME move out from i18n, has nothing to do with l10n
+helper collectGenMenuManagers(allItems : OrderedSet(gmfgen::GenContributionItem)) : Sequence(gmfgen::GenMenuManager) {
+ return collectAllContributionItems(allItems->asSequence())[gmfgen::GenMenuManager]
}
-helper collectAllContributionItems(allItems : Collection(genModel::GenContributionItem)) : Sequence(genModel::GenContributionManager) {
- return let managers = (allItems->collect(it | it))[genModel::GenContributionManager]->asSequence() in managers->union(managers->collect(item | collectAllContributionItems(item.items))->flatten())
+helper collectAllContributionItems(allItems : Sequence(gmfgen::GenContributionItem)) : Sequence(gmfgen::GenContributionManager) {
+ -- FIXME simplify the expression
+ return let managers = allItems[gmfgen::GenContributionManager] in managers->union(managers->collect(item | collectAllContributionItems(item.items->asSequence())))
}
-helper i18nKeyForNewFileWizardFileLabel(app : genModel::GenApplication) : String {
+helper i18nKeyForNewFileWizardFileLabel(app : gmfgen::GenApplication) : String {
return wizardNewFileCreationPageClassName(app) + '.FileLabel'
}
-helper i18nKeyForNewFileWizardBrowseButton(app : genModel::GenApplication) : String {
+helper i18nKeyForNewFileWizardBrowseButton(app : gmfgen::GenApplication) : String {
return wizardNewFileCreationPageClassName(app) + '.BrowseButton'
}
-helper i18nKeyForNewFileWizardSelectDialog(app : genModel::GenApplication) : String {
+helper i18nKeyForNewFileWizardSelectDialog(app : gmfgen::GenApplication) : String {
return wizardNewFileCreationPageClassName(app) + '.SelectNewFileDialog'
}
-helper i18nKeyForNewFileWizardEmpty(app : genModel::GenApplication) : String {
+helper i18nKeyForNewFileWizardEmpty(app : gmfgen::GenApplication) : String {
return wizardNewFileCreationPageClassName(app) + '.EmptyFileNameError'
}
-helper i18nKeyForNewFileWizardInvalid(app : genModel::GenApplication) : String {
+helper i18nKeyForNewFileWizardInvalid(app : gmfgen::GenApplication) : String {
return wizardNewFileCreationPageClassName(app) + '.InvalidFileNameError'
}
-helper wizardNewFileCreationPageClassName(app : genModel::GenApplication) : String {
+helper wizardNewFileCreationPageClassName(app : gmfgen::GenApplication) : String {
return 'WizardNewFileCreationPage'
}

Back to the top