summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Pielmann2012-02-01 09:06:04 (EST)
committer Stephan Born2012-04-24 04:30:10 (EDT)
commitaa07ea945b24bc2c695f59eb561ec71dde9a5346 (patch)
tree744a369ddc182453f703651a4ca17207223e0297
parentb2506ca4f1414a81e19e05d35b28911635d5f942 (diff)
downloadorg.eclipse.stardust.ide-aa07ea945b24bc2c695f59eb561ec71dde9a5346.zip
org.eclipse.stardust.ide-aa07ea945b24bc2c695f59eb561ec71dde9a5346.tar.gz
org.eclipse.stardust.ide-aa07ea945b24bc2c695f59eb561ec71dde9a5346.tar.bz2
Jira-ID: CRNT-22383 Merge changes done on b_dev_6_0_x after 6.0.2.GA (6.0.2.2-r49368) through 6.0.3.GA (6.0.3.6-r50668) and beyond (6.0.x HEAD) to 7.0 (trunk) - moonglow / simulation / tate / tds (org.eclipse.stardust.modeling.templates)
git-svn-id: http://emeafrazerg/svn/ipp/product/trunk/stardust/ide@53307 8100b5e0-4d52-466c-ae9c-bdeccbdeaf6b
-rw-r--r--modeling/org.eclipse.stardust.modeling.templates/META-INF/MANIFEST.MF3
-rw-r--r--modeling/org.eclipse.stardust.modeling.templates/plugin.properties24
-rw-r--r--modeling/org.eclipse.stardust.modeling.templates/plugin.xml8
-rw-r--r--modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/Templates_Messages.java57
-rw-r--r--modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/adapters/TemplateContentAdapter.java12
-rw-r--r--modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/adapters/TreeEditPartAdapterFactory.java3
-rw-r--r--modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/defaulttemplate/ClasspathUriConverter.java10
-rw-r--r--modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/defaulttemplate/TemplateAdapter.java14
-rw-r--r--modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/defaulttemplate/TemplateFactory.java10
-rw-r--r--modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/defaulttemplate/TemplateHelper.java59
-rw-r--r--modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/defaulttemplate/TemplateParameterWizard.java7
-rw-r--r--modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/defaulttemplate/TemplateParameterWizardPage.java5
-rw-r--r--modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/emf/template/FeatureStyleType.java4
-rw-r--r--modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/emf/template/ScopeType.java4
-rw-r--r--modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/emf/template/StyleType.java4
-rw-r--r--modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/emf/template/TemplatePackage.java6
-rw-r--r--modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/emf/template/impl/DocumentationTypeImpl.java4
-rw-r--r--modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/emf/template/impl/FeatureTypeImpl.java8
-rw-r--r--modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/emf/template/impl/TemplateFactoryImpl.java20
-rw-r--r--modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/emf/template/impl/TemplateLibraryTypeImpl.java4
-rw-r--r--modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/emf/template/impl/TemplatePackageImpl.java362
-rw-r--r--modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/emf/template/impl/TemplateTypeImpl.java10
-rw-r--r--modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/spi/ITemplate.java2
-rw-r--r--modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/templates-messages.properties29
-rw-r--r--modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/views/Category.java2
-rw-r--r--modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/views/ExtendedImageView.java2
-rw-r--r--modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/views/ExtendedViewFactory.java2
-rw-r--r--modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/views/PatternsContentProvider.java10
-rw-r--r--modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/views/PatternsLabelProvider.java4
-rw-r--r--modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/views/PatternsView.java6
30 files changed, 415 insertions, 280 deletions
diff --git a/modeling/org.eclipse.stardust.modeling.templates/META-INF/MANIFEST.MF b/modeling/org.eclipse.stardust.modeling.templates/META-INF/MANIFEST.MF
index bc1b545..40261d0 100644
--- a/modeling/org.eclipse.stardust.modeling.templates/META-INF/MANIFEST.MF
+++ b/modeling/org.eclipse.stardust.modeling.templates/META-INF/MANIFEST.MF
@@ -20,7 +20,8 @@ Require-Bundle: org.eclipse.core.resources,
org.eclipse.stardust.modeling.common.ui,
org.eclipse.stardust.modeling.core
Eclipse-LazyStart: true
-Export-Package: org.eclipse.stardust.modeling.templates.adapters,
+Export-Package: org.eclipse.stardust.modeling.templates,
+ org.eclipse.stardust.modeling.templates.adapters,
org.eclipse.stardust.modeling.templates.defaulttemplate,
org.eclipse.stardust.modeling.templates.defaulttemplate.resources,
org.eclipse.stardust.modeling.templates.editor,
diff --git a/modeling/org.eclipse.stardust.modeling.templates/plugin.properties b/modeling/org.eclipse.stardust.modeling.templates/plugin.properties
index 03a598b..664a27a 100644
--- a/modeling/org.eclipse.stardust.modeling.templates/plugin.properties
+++ b/modeling/org.eclipse.stardust.modeling.templates/plugin.properties
@@ -8,23 +8,7 @@
# Contributors:
# SunGard CSA LLC - initial API and implementation and/or initial documentation
###############################################################################
-
-# <copyright>
-# </copyright>
-#
-# $Id$
-
-# ====================================================================
-# To code developer:
-# Do NOT change the properties between this line and the
-# "%%% END OF TRANSLATED PROPERTIES %%%" line.
-# Make a new property name, append to the end of the file and change
-# the code to use the new property.
-# ====================================================================
-
-# ====================================================================
-# %%% END OF TRANSLATED PROPERTIES %%%
-# ====================================================================
-
-pluginName = Template Model
-providerName = SunGard CSA LLC
+pluginName=Template Model
+providerName=SunGard CSA LLC
+templateView=Patterns View
+infinityCategory=Infinity
diff --git a/modeling/org.eclipse.stardust.modeling.templates/plugin.xml b/modeling/org.eclipse.stardust.modeling.templates/plugin.xml
index 914ddb3..9f94815 100644
--- a/modeling/org.eclipse.stardust.modeling.templates/plugin.xml
+++ b/modeling/org.eclipse.stardust.modeling.templates/plugin.xml
@@ -26,17 +26,17 @@
</factory>
</extension>
<extension
- name="Property View"
point="org.eclipse.ui.views">
+ <category
+ id="org.eclipse.stardust.modeling.core.viewcategory"
+ name="%infinityCategory"/>
<view
allowMultiple="false"
category="org.eclipse.stardust.modeling.core.viewcategory"
class="org.eclipse.stardust.modeling.templates.views.PatternsView"
icon="icons/diagram.gif"
id="org.eclipse.stardust.modeling.templates.patternsView"
- name="Patterns View"/>
+ name="%templateView"/>
</extension>
-
-
</plugin>
diff --git a/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/Templates_Messages.java b/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/Templates_Messages.java
new file mode 100644
index 0000000..544d62e
--- /dev/null
+++ b/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/Templates_Messages.java
@@ -0,0 +1,57 @@
+/*******************************************************************************
+ * Copyright (c) 2011 SunGard CSA LLC and others.
+ * 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:
+ * SunGard CSA LLC - initial API and implementation and/or initial documentation
+ *******************************************************************************/
+package org.eclipse.stardust.modeling.templates;
+
+import org.eclipse.osgi.util.NLS;
+
+public class Templates_Messages extends NLS
+{
+ private static final String BUNDLE_NAME = "org.eclipse.stardust.modeling.templates.templates-messages"; //$NON-NLS-1$
+
+ public static String CSL_CONTAINMENT_FEATURE_NOT_FOUND_FOR;
+
+ public static String CSL_INCOMPATIBLE_CONTAINER;
+
+ public static String ERROR_PROVIDE_A_NUMBER_OF_ACTIVITIES;
+
+ public static String EXC_NOT_SUPPORTED;
+
+ public static String TITLE_APPLY;
+
+ public static String TXT_COPY_OF;
+
+ public static String TXT_TEMPLATE_LIBRARY;
+
+ public static String Could_not_find_resource;
+
+ public static String LB_VersionRepository_Refresh;
+
+ public static String The_class_is_not_a_valid_classifier;
+
+ public static String The_datatype_is_not_a_valid_classifier;
+
+ public static String The_value_is_not_a_valid_enumerator_of;
+
+ public static String MANUAL_ACTIVITY;
+
+ public static String APPLICATION_ACTIVITY;
+
+ public static String ROUTE_ACTIVITY;
+
+ static
+ {
+ // initialize resource bundle
+ NLS.initializeMessages(BUNDLE_NAME, Templates_Messages.class);
+ }
+
+ private Templates_Messages()
+ {}
+}
diff --git a/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/adapters/TemplateContentAdapter.java b/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/adapters/TemplateContentAdapter.java
index d5c745b..20b636d 100644
--- a/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/adapters/TemplateContentAdapter.java
+++ b/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/adapters/TemplateContentAdapter.java
@@ -10,6 +10,7 @@
*******************************************************************************/
package org.eclipse.stardust.modeling.templates.adapters;
+import java.text.MessageFormat;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
@@ -45,6 +46,7 @@ import org.eclipse.stardust.modeling.core.Diagram_Messages;
import org.eclipse.stardust.modeling.core.editors.cap.NameIdDialog;
import org.eclipse.stardust.modeling.core.editors.parts.diagram.commands.CommandUtils;
import org.eclipse.stardust.modeling.repository.common.ImportCancelledException;
+import org.eclipse.stardust.modeling.templates.Templates_Messages;
import org.eclipse.stardust.modeling.templates.spi.ITemplate;
@@ -65,7 +67,7 @@ public class TemplateContentAdapter extends EContentAdapter
super();
this.targetModel = targetModel;
- templateID = template.getId() + "-" + ModelUtils.getMaxUsedOid(targetModel);
+ templateID = template.getId() + "-" + ModelUtils.getMaxUsedOid(targetModel); //$NON-NLS-1$
collectTargetData(this.targetModel);
}
@@ -150,15 +152,15 @@ public class TemplateContentAdapter extends EContentAdapter
if (element instanceof TypeDeclarationType)
{
String orgName = ((TypeDeclarationType)element).getName();
- ((TypeDeclarationType)element).setName("CopyOf" + orgName);
- ((TypeDeclarationType)element).setId("CopyOf" + orgName);
+ ((TypeDeclarationType)element).setName(MessageFormat.format(Templates_Messages.TXT_COPY_OF, new Object[]{orgName}));
+ ((TypeDeclarationType)element).setId(MessageFormat.format(Templates_Messages.TXT_COPY_OF, new Object[]{orgName}));
dataRefCache.put(orgName, ((TypeDeclarationType)element).getName());
} else {
openDialog(container, element);
if (element instanceof DataType) {
- String type = AttributeUtil.getAttributeValue((DataType) element, "carnot:engine:dataType");
+ String type = AttributeUtil.getAttributeValue((DataType) element, "carnot:engine:dataType"); //$NON-NLS-1$
String newType = (String) dataRefCache.get(type);
- AttributeUtil.setAttribute((IExtensibleElement)element, "carnot:engine:dataType", newType);
+ AttributeUtil.setAttribute((IExtensibleElement)element, "carnot:engine:dataType", newType); //$NON-NLS-1$
}
}
}
diff --git a/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/adapters/TreeEditPartAdapterFactory.java b/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/adapters/TreeEditPartAdapterFactory.java
index 3c83931..1291b25 100644
--- a/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/adapters/TreeEditPartAdapterFactory.java
+++ b/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/adapters/TreeEditPartAdapterFactory.java
@@ -18,6 +18,7 @@ import org.eclipse.gef.EditPolicy;
import org.eclipse.gef.TreeEditPart;
import org.eclipse.gef.editparts.AbstractTreeEditPart;
import org.eclipse.gef.editpolicies.RootComponentEditPolicy;
+import org.eclipse.stardust.modeling.templates.Templates_Messages;
import org.eclipse.stardust.modeling.templates.emf.template.TemplateLibraryType;
@@ -52,7 +53,7 @@ public class TreeEditPartAdapterFactory implements IAdapterFactory
}
if (text == null)
{
- text = "TemplateLibrary";
+ text = Templates_Messages.TXT_TEMPLATE_LIBRARY;
}
return text;
}
diff --git a/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/defaulttemplate/ClasspathUriConverter.java b/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/defaulttemplate/ClasspathUriConverter.java
index d24d523..e13e756 100644
--- a/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/defaulttemplate/ClasspathUriConverter.java
+++ b/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/defaulttemplate/ClasspathUriConverter.java
@@ -14,6 +14,7 @@ import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.URL;
+import java.text.MessageFormat;
import java.util.Map;
import org.eclipse.emf.common.util.EList;
@@ -21,13 +22,14 @@ import org.eclipse.emf.common.util.URI;
import org.eclipse.emf.ecore.resource.URIConverter;
import org.eclipse.emf.ecore.resource.URIHandler;
import org.eclipse.stardust.common.error.PublicException;
+import org.eclipse.stardust.modeling.templates.Templates_Messages;
/**
* Supports URLs with scheme "classpath:/". Searches for resources in CLASSPATH
*/
public class ClasspathUriConverter implements URIConverter
{
- public static final String CLASSPATH_SCHEME = "classpath";
+ public static final String CLASSPATH_SCHEME = "classpath"; //$NON-NLS-1$
public InputStream createInputStream(URI uri) throws IOException
@@ -35,14 +37,14 @@ public class ClasspathUriConverter implements URIConverter
URL resourceUrl = this.getClass().getResource(uri.path());
if (resourceUrl == null)
{
- throw new PublicException("Could not find resource '" + uri.path() + "'.");
+ throw new PublicException(MessageFormat.format(Templates_Messages.Could_not_find_resource, new Object[]{uri.path()}));
}
return resourceUrl.openStream();
}
public OutputStream createOutputStream(URI uri) throws IOException
{
- throw new RuntimeException("Not supported.");
+ throw new RuntimeException(Templates_Messages.EXC_NOT_SUPPORTED);
}
public Map getURIMap()
@@ -65,7 +67,7 @@ public InputStream createInputStream(URI uri, Map arg1) throws IOException {
URL resourceUrl = this.getClass().getResource(uri.path());
if (resourceUrl == null)
{
- throw new PublicException("Could not find resource '" + uri.path() + "'.");
+ throw new PublicException(MessageFormat.format(Templates_Messages.Could_not_find_resource, new Object[]{uri.path()}));
}
return resourceUrl.openStream();
}
diff --git a/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/defaulttemplate/TemplateAdapter.java b/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/defaulttemplate/TemplateAdapter.java
index 2a216a4..bf3eac9 100644
--- a/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/defaulttemplate/TemplateAdapter.java
+++ b/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/defaulttemplate/TemplateAdapter.java
@@ -10,6 +10,7 @@
*******************************************************************************/
package org.eclipse.stardust.modeling.templates.defaulttemplate;
+import java.text.MessageFormat;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
@@ -48,6 +49,7 @@ import org.eclipse.stardust.model.xpdl.carnot.util.ModelUtils;
import org.eclipse.stardust.model.xpdl.xpdl2.TypeDeclarationType;
import org.eclipse.stardust.modeling.core.editors.WorkflowModelEditor;
import org.eclipse.stardust.modeling.repository.common.ImportCancelledException;
+import org.eclipse.stardust.modeling.templates.Templates_Messages;
import org.eclipse.stardust.modeling.templates.emf.template.DocumentationType;
import org.eclipse.stardust.modeling.templates.emf.template.ReferenceType;
import org.eclipse.stardust.modeling.templates.emf.template.RootsType;
@@ -86,6 +88,11 @@ public class TemplateAdapter implements ITemplate
{
return template.getName();
}
+
+ public void setName(String name)
+ {
+ template.setName(name);
+ }
public String getDescription()
{
@@ -302,7 +309,7 @@ public class TemplateAdapter implements ITemplate
}
else
{
- System.err.println("Incompatible container.");
+ System.err.println(Templates_Messages.CSL_INCOMPATIBLE_CONTAINER);
}
}
@@ -383,8 +390,9 @@ public class TemplateAdapter implements ITemplate
}
}
else
- {
- System.err.println("Containment feature not found for: " + object);
+ {
+
+ System.err.println(MessageFormat.format(Templates_Messages.CSL_CONTAINMENT_FEATURE_NOT_FOUND_FOR, new Object[] {object}));
}
}
diff --git a/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/defaulttemplate/TemplateFactory.java b/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/defaulttemplate/TemplateFactory.java
index edbc393..bb741d5 100644
--- a/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/defaulttemplate/TemplateFactory.java
+++ b/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/defaulttemplate/TemplateFactory.java
@@ -29,7 +29,7 @@ import org.eclipse.stardust.modeling.templates.spi.ITemplateFactory;
public class TemplateFactory implements ITemplateFactory
{
- private static final String XPDL_PARAMETER = "xpdl";
+ private static final String XPDL_PARAMETER = "xpdl"; //$NON-NLS-1$
private static final ClasspathUriConverter CLASSPATH_URI_CONVERTER = new ClasspathUriConverter();
@@ -48,11 +48,11 @@ public class TemplateFactory implements ITemplateFactory
if (uri.scheme() == null)
{
loadingFromClasspath = true;
- if(location.startsWith("/"))
+ if(location.startsWith("/")) //$NON-NLS-1$
{
location = location.substring(1);
}
- uri = URI.createURI(ClasspathUriConverter.CLASSPATH_SCHEME + ":/" + location);
+ uri = URI.createURI(ClasspathUriConverter.CLASSPATH_SCHEME + ":/" + location); //$NON-NLS-1$
}
else
{
@@ -135,7 +135,7 @@ public class TemplateFactory implements ITemplateFactory
{
TemplateFactory factory = new TemplateFactory();
Map parameters = new HashMap();
- parameters.put(XPDL_PARAMETER, "/com/infinity/bpm/modeling/templates/poc/resources/template.cwmt");
+ parameters.put(XPDL_PARAMETER, "/com/infinity/bpm/modeling/templates/poc/resources/template.cwmt"); //$NON-NLS-1$
factory.initialize(parameters);
System.out.println(factory.getId());
System.out.println(factory.getName());
@@ -143,7 +143,7 @@ public class TemplateFactory implements ITemplateFactory
ITemplate[] templates = factory.getTemplates();
for (int i = 0; i < templates.length; i++)
{
- System.out.println("-----------");
+ System.out.println("-----------"); //$NON-NLS-1$
System.out.println(templates[i].getId());
System.out.println(templates[i].getName());
System.out.println(templates[i].getDescription());
diff --git a/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/defaulttemplate/TemplateHelper.java b/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/defaulttemplate/TemplateHelper.java
index 99f07f3..54f823c 100644
--- a/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/defaulttemplate/TemplateHelper.java
+++ b/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/defaulttemplate/TemplateHelper.java
@@ -10,9 +10,11 @@
*******************************************************************************/
package org.eclipse.stardust.modeling.templates.defaulttemplate;
+import java.io.IOException;
import java.io.InputStream;
import java.util.List;
+import org.eclipse.core.runtime.Platform;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EObject;
@@ -40,7 +42,9 @@ import org.eclipse.stardust.model.xpdl.carnot.util.ModelUtils;
import org.eclipse.stardust.modeling.common.ui.IdFactory;
import org.eclipse.stardust.modeling.core.Diagram_Messages;
import org.eclipse.stardust.modeling.core.editors.parts.diagram.commands.CommandUtils;
+import org.eclipse.stardust.modeling.templates.Templates_Messages;
import org.eclipse.stardust.modeling.templates.spi.ITemplateFactory;
+import org.osgi.framework.Bundle;
@@ -76,19 +80,18 @@ public class TemplateHelper
public ActivityType createActivity(String name, String kind)
{
IdFactory idFactory = null;
- ActivityImplementationType implType = null;
- //Quick and dirty ;-)
- if (kind.startsWith("Rou")) {
+ ActivityImplementationType implType = null;
+ if (kind.equals(Templates_Messages.ROUTE_ACTIVITY)) {
implType = ActivityImplementationType.ROUTE_LITERAL;
}
- if (kind.startsWith("App")) {
+ if (kind.equals(Templates_Messages.APPLICATION_ACTIVITY)) {
implType = ActivityImplementationType.APPLICATION_LITERAL;
}
- if (kind.startsWith("Man")) {
+ if (kind.equals(Templates_Messages.MANUAL_ACTIVITY)) {
implType = ActivityImplementationType.MANUAL_LITERAL;
}
idFactory = new IdFactory(Diagram_Messages.ID_Activity,
- implType + Diagram_Messages.BASENAME_Activity);
+ ModelUtils.getActivityImplementationTypeText(implType) + Diagram_Messages.BASENAME_Activity);
EClass eClass = PKG.getActivityType();
ActivityType activity = (ActivityType) createModelElement(idFactory, eClass, process);
activity.setImplementation(implType);
@@ -192,13 +195,49 @@ public class TemplateHelper
symbolContainment.add(symbol);
}
- public static String readResourceToString (String path, ITemplateFactory templateFactory) throws Throwable {
+ public static String readDescriptionFromBundle(String nlBundleID, String htmlFileName,
+ ITemplateFactory templateFactory)
+ {
+ try
+ {
+ String nl = Platform.getNL();
+ Bundle bundle = Platform.getBundle(nlBundleID);
+ if (bundle != null)
+ {
+ String path = "/html/" + nl + "/" + htmlFileName; //$NON-NLS-1$ //$NON-NLS-2$
+ if (bundle.getEntry(path) != null)
+ {
+ InputStream in = bundle.getEntry(path).openStream();
+ if (in != null)
+ {
+ return TemplateHelper.streamToText(in);
+ }
+ }
+ }
+ return TemplateHelper.readResourceToString(
+ "/html/" + htmlFileName, templateFactory); //$NON-NLS-1$
+ }
+ catch (Throwable t)
+ {
+ }
+ return "No description provided."; //$NON-NLS-1$
+ }
+
+ public static String readResourceToString(String path, ITemplateFactory templateFactory)
+ throws Throwable
+ {
InputStream in = (InputStream) templateFactory.getClass().getResourceAsStream(path);
+ return streamToText(in);
+ }
+
+ public static String streamToText(InputStream in) throws IOException
+ {
StringBuffer out = new StringBuffer();
byte[] b = new byte[4096];
- for (int n; (n = in.read(b)) != -1;) {
- out.append(new String(b, 0, n));
+ for (int n; (n = in.read(b)) != -1;)
+ {
+ out.append(new String(b, 0, n));
}
return out.toString();
- }
+ }
} \ No newline at end of file
diff --git a/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/defaulttemplate/TemplateParameterWizard.java b/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/defaulttemplate/TemplateParameterWizard.java
index 46109df..bcc85e4 100644
--- a/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/defaulttemplate/TemplateParameterWizard.java
+++ b/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/defaulttemplate/TemplateParameterWizard.java
@@ -10,10 +10,12 @@
*******************************************************************************/
package org.eclipse.stardust.modeling.templates.defaulttemplate;
+import java.text.MessageFormat;
import java.util.Map;
import org.eclipse.jface.wizard.Wizard;
import org.eclipse.stardust.model.xpdl.carnot.ModelType;
+import org.eclipse.stardust.modeling.templates.Templates_Messages;
import org.eclipse.stardust.modeling.templates.emf.template.TemplateType;
@@ -25,8 +27,9 @@ public class TemplateParameterWizard extends Wizard
public TemplateParameterWizard(ModelType model, TemplateType template, Map mapping)
{
newTemplateParameterPage = new TemplateParameterWizardPage(model, template, mapping, null);
- this.setWindowTitle("Apply \"" + template.getName() + "\"");
- }
+
+ this.setWindowTitle(MessageFormat.format(Templates_Messages.TITLE_APPLY, new Object[]{template.getName()}));
+ }
public void addPages()
{
diff --git a/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/defaulttemplate/TemplateParameterWizardPage.java b/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/defaulttemplate/TemplateParameterWizardPage.java
index d90fc4f..5da970b 100644
--- a/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/defaulttemplate/TemplateParameterWizardPage.java
+++ b/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/defaulttemplate/TemplateParameterWizardPage.java
@@ -32,6 +32,7 @@ import org.eclipse.jface.viewers.StructuredViewer;
import org.eclipse.jface.wizard.WizardPage;
import org.eclipse.stardust.model.xpdl.carnot.IIdentifiableElement;
import org.eclipse.stardust.model.xpdl.carnot.ModelType;
+import org.eclipse.stardust.modeling.templates.Templates_Messages;
import org.eclipse.stardust.modeling.templates.emf.template.FeatureStyleType;
import org.eclipse.stardust.modeling.templates.emf.template.FeatureType;
import org.eclipse.stardust.modeling.templates.emf.template.ParameterType;
@@ -104,7 +105,7 @@ public class TemplateParameterWizardPage extends WizardPage
Label kind = new Label(group, SWT.NONE);
label = feature.getLabel();
- kind.setText(label == null ? feature.getName()+ ":" : label + ":");
+ kind.setText(label == null ? feature.getName()+ ":" : label + ":"); //$NON-NLS-1$ //$NON-NLS-2$
if (FeatureStyleType.SELECTION == feature.getType())
{
Combo combo = new Combo(group, SWT.READ_ONLY);
@@ -179,7 +180,7 @@ public class TemplateParameterWizardPage extends WizardPage
{
if (false)
{
- setErrorMessage("Please provide a number of activities.");
+ setErrorMessage(Templates_Messages.ERROR_PROVIDE_A_NUMBER_OF_ACTIVITIES);
setPageComplete(false);
return;
}
diff --git a/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/emf/template/FeatureStyleType.java b/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/emf/template/FeatureStyleType.java
index 0b05ebe..887d35b 100644
--- a/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/emf/template/FeatureStyleType.java
+++ b/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/emf/template/FeatureStyleType.java
@@ -35,7 +35,7 @@ public enum FeatureStyleType implements Enumerator
* @generated
* @ordered
*/
- TEXT(0, "text", "text"),
+ TEXT(0, "text", "text"), //$NON-NLS-1$ //$NON-NLS-2$
/**
* The '<em><b>Selection</b></em>' literal object.
* <!-- begin-user-doc -->
@@ -44,7 +44,7 @@ public enum FeatureStyleType implements Enumerator
* @generated
* @ordered
*/
- SELECTION(1, "selection", "selection");
+ SELECTION(1, "selection", "selection"); //$NON-NLS-1$ //$NON-NLS-2$
/**
* The '<em><b>Text</b></em>' literal value.
* <!-- begin-user-doc -->
diff --git a/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/emf/template/ScopeType.java b/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/emf/template/ScopeType.java
index 15535b4..3c3398a 100644
--- a/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/emf/template/ScopeType.java
+++ b/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/emf/template/ScopeType.java
@@ -35,7 +35,7 @@ public enum ScopeType implements Enumerator
* @generated
* @ordered
*/
- MODEL(0, "model", "model"),
+ MODEL(0, "model", "model"), //$NON-NLS-1$ //$NON-NLS-2$
/**
* The '<em><b>Process</b></em>' literal object.
* <!-- begin-user-doc -->
@@ -44,7 +44,7 @@ public enum ScopeType implements Enumerator
* @generated
* @ordered
*/
- PROCESS(1, "process", "process");
+ PROCESS(1, "process", "process"); //$NON-NLS-1$ //$NON-NLS-2$
/**
* The '<em><b>Model</b></em>' literal value.
* <!-- begin-user-doc -->
diff --git a/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/emf/template/StyleType.java b/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/emf/template/StyleType.java
index e2b2533..5da1443 100644
--- a/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/emf/template/StyleType.java
+++ b/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/emf/template/StyleType.java
@@ -35,7 +35,7 @@ public enum StyleType implements Enumerator
* @generated
* @ordered
*/
- STANDALONE(0, "standalone", "standalone"),
+ STANDALONE(0, "standalone", "standalone"), //$NON-NLS-1$ //$NON-NLS-2$
/**
* The '<em><b>Embedded</b></em>' literal object.
* <!-- begin-user-doc -->
@@ -44,7 +44,7 @@ public enum StyleType implements Enumerator
* @generated
* @ordered
*/
- EMBEDDED(1, "embedded", "embedded");
+ EMBEDDED(1, "embedded", "embedded"); //$NON-NLS-1$ //$NON-NLS-2$
/**
* The '<em><b>Standalone</b></em>' literal value.
* <!-- begin-user-doc -->
diff --git a/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/emf/template/TemplatePackage.java b/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/emf/template/TemplatePackage.java
index f9644e4..b9d68b5 100644
--- a/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/emf/template/TemplatePackage.java
+++ b/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/emf/template/TemplatePackage.java
@@ -38,7 +38,7 @@ public interface TemplatePackage extends EPackage {
* <!-- end-user-doc -->
* @generated
*/
- String eNAME = "template";
+ String eNAME = "template"; //$NON-NLS-1$
/**
* The package namespace URI.
@@ -46,7 +46,7 @@ public interface TemplatePackage extends EPackage {
* <!-- end-user-doc -->
* @generated
*/
- String eNS_URI = "http://www.carnot.ag/workflowmodel/templates";
+ String eNS_URI = "http://www.carnot.ag/workflowmodel/templates"; //$NON-NLS-1$
/**
* The package namespace name.
@@ -54,7 +54,7 @@ public interface TemplatePackage extends EPackage {
* <!-- end-user-doc -->
* @generated
*/
- String eNS_PREFIX = "tmplt";
+ String eNS_PREFIX = "tmplt"; //$NON-NLS-1$
/**
* The singleton instance of the package.
diff --git a/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/emf/template/impl/DocumentationTypeImpl.java b/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/emf/template/impl/DocumentationTypeImpl.java
index 1f822bb..4ffe630 100644
--- a/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/emf/template/impl/DocumentationTypeImpl.java
+++ b/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/emf/template/impl/DocumentationTypeImpl.java
@@ -213,7 +213,7 @@ public class DocumentationTypeImpl extends EObjectImpl implements DocumentationT
if (eIsProxy()) return super.toString();
StringBuffer result = new StringBuffer(super.toString());
- result.append(" (mixed: ");
+ result.append(" (mixed: "); //$NON-NLS-1$
result.append(mixed);
result.append(')');
return result.toString();
@@ -276,7 +276,7 @@ public class DocumentationTypeImpl extends EObjectImpl implements DocumentationT
sb.append(' ');
sb.append(feature.getName());
sb.append('=');
- String stringValue = value == null ? "" : value.toString();
+ String stringValue = value == null ? "" : value.toString(); //$NON-NLS-1$
char c = '\"';
int x = stringValue.indexOf('\"');
if (x >= 0)
diff --git a/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/emf/template/impl/FeatureTypeImpl.java b/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/emf/template/impl/FeatureTypeImpl.java
index 07ed906..eb50702 100644
--- a/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/emf/template/impl/FeatureTypeImpl.java
+++ b/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/emf/template/impl/FeatureTypeImpl.java
@@ -322,13 +322,13 @@ public class FeatureTypeImpl extends EObjectImpl implements FeatureType {
if (eIsProxy()) return super.toString();
StringBuffer result = new StringBuffer(super.toString());
- result.append(" (label: ");
+ result.append(" (label: "); //$NON-NLS-1$
result.append(label);
- result.append(", name: ");
+ result.append(", name: "); //$NON-NLS-1$
result.append(name);
- result.append(", type: ");
+ result.append(", type: "); //$NON-NLS-1$
result.append(type);
- result.append(", scope: ");
+ result.append(", scope: "); //$NON-NLS-1$
result.append(scope);
result.append(')');
return result.toString();
diff --git a/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/emf/template/impl/TemplateFactoryImpl.java b/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/emf/template/impl/TemplateFactoryImpl.java
index 6ce68ab..a4747a0 100644
--- a/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/emf/template/impl/TemplateFactoryImpl.java
+++ b/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/emf/template/impl/TemplateFactoryImpl.java
@@ -11,12 +11,15 @@
package org.eclipse.stardust.modeling.templates.emf.template.impl;
+import java.text.MessageFormat;
+
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EDataType;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.impl.EFactoryImpl;
import org.eclipse.emf.ecore.plugin.EcorePlugin;
+import org.eclipse.stardust.modeling.templates.Templates_Messages;
import org.eclipse.stardust.modeling.templates.emf.template.DocumentationType;
import org.eclipse.stardust.modeling.templates.emf.template.FeatureStyleType;
import org.eclipse.stardust.modeling.templates.emf.template.FeatureType;
@@ -47,7 +50,7 @@ public class TemplateFactoryImpl extends EFactoryImpl implements TemplateFactory
public static TemplateFactory init() {
try
{
- TemplateFactory theTemplateFactory = (TemplateFactory)EPackage.Registry.INSTANCE.getEFactory("http://www.carnot.ag/workflowmodel/templates");
+ TemplateFactory theTemplateFactory = (TemplateFactory)EPackage.Registry.INSTANCE.getEFactory("http://www.carnot.ag/workflowmodel/templates"); //$NON-NLS-1$
if (theTemplateFactory != null)
{
return theTemplateFactory;
@@ -88,7 +91,7 @@ public class TemplateFactoryImpl extends EFactoryImpl implements TemplateFactory
case TemplatePackage.TEMPLATES_TYPE: return createTemplatesType();
case TemplatePackage.TEMPLATE_LIBRARY_TYPE: return createTemplateLibraryType();
default:
- throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
+ throw new IllegalArgumentException(MessageFormat.format(Templates_Messages.The_class_is_not_a_valid_classifier,new Object[]{eClass.getName()}));
}
}
@@ -108,7 +111,7 @@ public class TemplateFactoryImpl extends EFactoryImpl implements TemplateFactory
case TemplatePackage.STYLE_TYPE:
return createStyleTypeFromString(eDataType, initialValue);
default:
- throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
+ throw new IllegalArgumentException(MessageFormat.format(Templates_Messages.The_datatype_is_not_a_valid_classifier, new Object[]{eDataType.getName()}));
}
}
@@ -128,7 +131,7 @@ public class TemplateFactoryImpl extends EFactoryImpl implements TemplateFactory
case TemplatePackage.STYLE_TYPE:
return convertStyleTypeToString(eDataType, instanceValue);
default:
- throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
+ throw new IllegalArgumentException(MessageFormat.format(Templates_Messages.The_datatype_is_not_a_valid_classifier, new Object[]{eDataType.getName()}));
}
}
@@ -219,7 +222,8 @@ public class TemplateFactoryImpl extends EFactoryImpl implements TemplateFactory
*/
public FeatureStyleType createFeatureStyleTypeFromString(EDataType eDataType, String initialValue) {
FeatureStyleType result = FeatureStyleType.get(initialValue);
- if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
+ if (result == null) throw new IllegalArgumentException(MessageFormat.format(Templates_Messages.The_value_is_not_a_valid_enumerator_of,
+ new Object[]{initialValue,eDataType.getName()}));
return result;
}
@@ -239,7 +243,8 @@ public class TemplateFactoryImpl extends EFactoryImpl implements TemplateFactory
*/
public ScopeType createScopeTypeFromString(EDataType eDataType, String initialValue) {
ScopeType result = ScopeType.get(initialValue);
- if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
+ if (result == null) throw new IllegalArgumentException(MessageFormat.format(Templates_Messages.The_value_is_not_a_valid_enumerator_of,
+ new Object[]{initialValue,eDataType.getName()}));
return result;
}
@@ -259,7 +264,8 @@ public class TemplateFactoryImpl extends EFactoryImpl implements TemplateFactory
*/
public StyleType createStyleTypeFromString(EDataType eDataType, String initialValue) {
StyleType result = StyleType.get(initialValue);
- if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
+ if (result == null) throw new IllegalArgumentException(MessageFormat.format(Templates_Messages.The_value_is_not_a_valid_enumerator_of,
+ new Object[]{initialValue,eDataType.getName()}));
return result;
}
diff --git a/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/emf/template/impl/TemplateLibraryTypeImpl.java b/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/emf/template/impl/TemplateLibraryTypeImpl.java
index 1cc7b69..767d467 100644
--- a/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/emf/template/impl/TemplateLibraryTypeImpl.java
+++ b/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/emf/template/impl/TemplateLibraryTypeImpl.java
@@ -439,9 +439,9 @@ public class TemplateLibraryTypeImpl extends EObjectImpl implements TemplateLibr
if (eIsProxy()) return super.toString();
StringBuffer result = new StringBuffer(super.toString());
- result.append(" (id: ");
+ result.append(" (id: "); //$NON-NLS-1$
result.append(id);
- result.append(", name: ");
+ result.append(", name: "); //$NON-NLS-1$
result.append(name);
result.append(')');
return result.toString();
diff --git a/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/emf/template/impl/TemplatePackageImpl.java b/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/emf/template/impl/TemplatePackageImpl.java
index a0752ff..dad1381 100644
--- a/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/emf/template/impl/TemplatePackageImpl.java
+++ b/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/emf/template/impl/TemplatePackageImpl.java
@@ -731,76 +731,76 @@ public class TemplatePackageImpl extends EPackageImpl implements TemplatePackage
parameterTypeEClass.getESuperTypes().add(this.getReferenceType());
// Initialize classes and features; add operations and parameters
- initEClass(documentationTypeEClass, DocumentationType.class, "DocumentationType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getDocumentationType_Mixed(), ecorePackage.getEFeatureMapEntry(), "mixed", null, 0, -1, DocumentationType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getDocumentationType_Group(), ecorePackage.getEFeatureMapEntry(), "group", null, 0, -1, DocumentationType.class, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, IS_DERIVED, IS_ORDERED);
- initEAttribute(getDocumentationType_Any(), ecorePackage.getEFeatureMapEntry(), "any", null, 0, -1, DocumentationType.class, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, IS_DERIVED, IS_ORDERED);
-
- initEClass(featureTypeEClass, FeatureType.class, "FeatureType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getFeatureType_Label(), theXMLTypePackage.getString(), "label", null, 0, 1, FeatureType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getFeatureType_Name(), theXMLTypePackage.getString(), "name", null, 1, 1, FeatureType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getFeatureType_Type(), this.getFeatureStyleType(), "type", null, 0, 1, FeatureType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getFeatureType_Scope(), this.getScopeType(), "scope", null, 0, 1, FeatureType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(parameterTypeEClass, ParameterType.class, "ParameterType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getParameterType_Activity(), theCarnotWorkflowModelPackage.getActivityType(), null, "activity", null, 0, 1, ParameterType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getParameterType_Features(), this.getFeatureType(), null, "features", null, 0, -1, ParameterType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(referenceTypeEClass, ReferenceType.class, "ReferenceType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getReferenceType_ApplicationType(), theCarnotWorkflowModelPackage.getApplicationTypeType(), null, "applicationType", null, 0, 1, ReferenceType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getReferenceType_ApplicationContextType(), theCarnotWorkflowModelPackage.getApplicationContextTypeType(), null, "applicationContextType", null, 0, 1, ReferenceType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getReferenceType_DataType(), theCarnotWorkflowModelPackage.getDataTypeType(), null, "dataType", null, 0, 1, ReferenceType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getReferenceType_EventActionType(), theCarnotWorkflowModelPackage.getEventActionTypeType(), null, "eventActionType", null, 0, 1, ReferenceType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getReferenceType_EventConditionType(), theCarnotWorkflowModelPackage.getEventConditionTypeType(), null, "eventConditionType", null, 0, 1, ReferenceType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getReferenceType_TriggerType(), theCarnotWorkflowModelPackage.getTriggerTypeType(), null, "triggerType", null, 0, 1, ReferenceType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getReferenceType_Application(), theCarnotWorkflowModelPackage.getApplicationType(), null, "application", null, 0, 1, ReferenceType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getReferenceType_Data(), theCarnotWorkflowModelPackage.getDataType(), null, "data", null, 0, 1, ReferenceType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getReferenceType_ConditionalPerformer(), theCarnotWorkflowModelPackage.getConditionalPerformerType(), null, "conditionalPerformer", null, 0, 1, ReferenceType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getReferenceType_Organization(), theCarnotWorkflowModelPackage.getOrganizationType(), null, "organization", null, 0, 1, ReferenceType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getReferenceType_Role(), theCarnotWorkflowModelPackage.getRoleType(), null, "role", null, 0, 1, ReferenceType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getReferenceType_ProcessDefinition(), theCarnotWorkflowModelPackage.getProcessDefinitionType(), null, "processDefinition", null, 0, 1, ReferenceType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getReferenceType_TypeDeclaration(), theXpdlPackage.getTypeDeclarationType(), null, "typeDeclaration", null, 0, 1, ReferenceType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getReferenceType_Parameters(), this.getParameterType(), null, "parameters", null, 0, -1, ReferenceType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- addEOperation(referenceTypeEClass, ecorePackage.getEObject(), "getReference", 0, 1, IS_UNIQUE, IS_ORDERED);
-
- EOperation op = addEOperation(referenceTypeEClass, null, "setReference", 0, 1, IS_UNIQUE, IS_ORDERED);
- addEParameter(op, ecorePackage.getEObject(), "reference", 0, 1, IS_UNIQUE, IS_ORDERED);
-
- initEClass(rootsTypeEClass, RootsType.class, "RootsType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getRootsType_Root(), this.getReferenceType(), null, "root", null, 0, -1, RootsType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(templateTypeEClass, TemplateType.class, "TemplateType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getTemplateType_Id(), theXMLTypePackage.getID(), "id", null, 1, 1, TemplateType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getTemplateType_Name(), theXMLTypePackage.getString(), "name", null, 0, 1, TemplateType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getTemplateType_Documentation(), this.getDocumentationType(), null, "documentation", null, 0, 1, TemplateType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getTemplateType_Roots(), this.getRootsType(), null, "roots", null, 0, 1, TemplateType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getTemplateType_Style(), this.getStyleType(), "style", null, 0, 1, TemplateType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getTemplateType_Category(), theXMLTypePackage.getString(), "category", null, 0, 1, TemplateType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(templatesTypeEClass, TemplatesType.class, "TemplatesType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getTemplatesType_Template(), this.getTemplateType(), null, "template", null, 0, -1, TemplatesType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- op = addEOperation(templatesTypeEClass, this.getTemplateType(), "getTemplate", 0, 1, IS_UNIQUE, IS_ORDERED);
- addEParameter(op, theXMLTypePackage.getString(), "templateId", 0, 1, IS_UNIQUE, IS_ORDERED);
-
- initEClass(templateLibraryTypeEClass, TemplateLibraryType.class, "TemplateLibraryType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getTemplateLibraryType_Id(), theXMLTypePackage.getID(), "id", null, 1, 1, TemplateLibraryType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getTemplateLibraryType_Name(), theXMLTypePackage.getString(), "name", null, 0, 1, TemplateLibraryType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getTemplateLibraryType_Documentation(), this.getDocumentationType(), null, "documentation", null, 0, 1, TemplateLibraryType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getTemplateLibraryType_Templates(), this.getTemplatesType(), null, "templates", null, 0, 1, TemplateLibraryType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getTemplateLibraryType_Model(), theCarnotWorkflowModelPackage.getModelType(), null, "model", null, 0, 1, TemplateLibraryType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEClass(documentationTypeEClass, DocumentationType.class, "DocumentationType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$
+ initEAttribute(getDocumentationType_Mixed(), ecorePackage.getEFeatureMapEntry(), "mixed", null, 0, -1, DocumentationType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
+ initEAttribute(getDocumentationType_Group(), ecorePackage.getEFeatureMapEntry(), "group", null, 0, -1, DocumentationType.class, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
+ initEAttribute(getDocumentationType_Any(), ecorePackage.getEFeatureMapEntry(), "any", null, 0, -1, DocumentationType.class, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
+
+ initEClass(featureTypeEClass, FeatureType.class, "FeatureType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$
+ initEAttribute(getFeatureType_Label(), theXMLTypePackage.getString(), "label", null, 0, 1, FeatureType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
+ initEAttribute(getFeatureType_Name(), theXMLTypePackage.getString(), "name", null, 1, 1, FeatureType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
+ initEAttribute(getFeatureType_Type(), this.getFeatureStyleType(), "type", null, 0, 1, FeatureType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
+ initEAttribute(getFeatureType_Scope(), this.getScopeType(), "scope", null, 0, 1, FeatureType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
+
+ initEClass(parameterTypeEClass, ParameterType.class, "ParameterType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$
+ initEReference(getParameterType_Activity(), theCarnotWorkflowModelPackage.getActivityType(), null, "activity", null, 0, 1, ParameterType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
+ initEReference(getParameterType_Features(), this.getFeatureType(), null, "features", null, 0, -1, ParameterType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
+
+ initEClass(referenceTypeEClass, ReferenceType.class, "ReferenceType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$
+ initEReference(getReferenceType_ApplicationType(), theCarnotWorkflowModelPackage.getApplicationTypeType(), null, "applicationType", null, 0, 1, ReferenceType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
+ initEReference(getReferenceType_ApplicationContextType(), theCarnotWorkflowModelPackage.getApplicationContextTypeType(), null, "applicationContextType", null, 0, 1, ReferenceType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
+ initEReference(getReferenceType_DataType(), theCarnotWorkflowModelPackage.getDataTypeType(), null, "dataType", null, 0, 1, ReferenceType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
+ initEReference(getReferenceType_EventActionType(), theCarnotWorkflowModelPackage.getEventActionTypeType(), null, "eventActionType", null, 0, 1, ReferenceType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
+ initEReference(getReferenceType_EventConditionType(), theCarnotWorkflowModelPackage.getEventConditionTypeType(), null, "eventConditionType", null, 0, 1, ReferenceType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
+ initEReference(getReferenceType_TriggerType(), theCarnotWorkflowModelPackage.getTriggerTypeType(), null, "triggerType", null, 0, 1, ReferenceType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
+ initEReference(getReferenceType_Application(), theCarnotWorkflowModelPackage.getApplicationType(), null, "application", null, 0, 1, ReferenceType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
+ initEReference(getReferenceType_Data(), theCarnotWorkflowModelPackage.getDataType(), null, "data", null, 0, 1, ReferenceType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
+ initEReference(getReferenceType_ConditionalPerformer(), theCarnotWorkflowModelPackage.getConditionalPerformerType(), null, "conditionalPerformer", null, 0, 1, ReferenceType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
+ initEReference(getReferenceType_Organization(), theCarnotWorkflowModelPackage.getOrganizationType(), null, "organization", null, 0, 1, ReferenceType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
+ initEReference(getReferenceType_Role(), theCarnotWorkflowModelPackage.getRoleType(), null, "role", null, 0, 1, ReferenceType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
+ initEReference(getReferenceType_ProcessDefinition(), theCarnotWorkflowModelPackage.getProcessDefinitionType(), null, "processDefinition", null, 0, 1, ReferenceType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
+ initEReference(getReferenceType_TypeDeclaration(), theXpdlPackage.getTypeDeclarationType(), null, "typeDeclaration", null, 0, 1, ReferenceType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
+ initEReference(getReferenceType_Parameters(), this.getParameterType(), null, "parameters", null, 0, -1, ReferenceType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
+
+ addEOperation(referenceTypeEClass, ecorePackage.getEObject(), "getReference", 0, 1, IS_UNIQUE, IS_ORDERED); //$NON-NLS-1$
+
+ EOperation op = addEOperation(referenceTypeEClass, null, "setReference", 0, 1, IS_UNIQUE, IS_ORDERED); //$NON-NLS-1$
+ addEParameter(op, ecorePackage.getEObject(), "reference", 0, 1, IS_UNIQUE, IS_ORDERED); //$NON-NLS-1$
+
+ initEClass(rootsTypeEClass, RootsType.class, "RootsType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$
+ initEReference(getRootsType_Root(), this.getReferenceType(), null, "root", null, 0, -1, RootsType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
+
+ initEClass(templateTypeEClass, TemplateType.class, "TemplateType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$
+ initEAttribute(getTemplateType_Id(), theXMLTypePackage.getID(), "id", null, 1, 1, TemplateType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
+ initEAttribute(getTemplateType_Name(), theXMLTypePackage.getString(), "name", null, 0, 1, TemplateType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
+ initEReference(getTemplateType_Documentation(), this.getDocumentationType(), null, "documentation", null, 0, 1, TemplateType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
+ initEReference(getTemplateType_Roots(), this.getRootsType(), null, "roots", null, 0, 1, TemplateType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
+ initEAttribute(getTemplateType_Style(), this.getStyleType(), "style", null, 0, 1, TemplateType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
+ initEAttribute(getTemplateType_Category(), theXMLTypePackage.getString(), "category", null, 0, 1, TemplateType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
+
+ initEClass(templatesTypeEClass, TemplatesType.class, "TemplatesType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$
+ initEReference(getTemplatesType_Template(), this.getTemplateType(), null, "template", null, 0, -1, TemplatesType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
+
+ op = addEOperation(templatesTypeEClass, this.getTemplateType(), "getTemplate", 0, 1, IS_UNIQUE, IS_ORDERED); //$NON-NLS-1$
+ addEParameter(op, theXMLTypePackage.getString(), "templateId", 0, 1, IS_UNIQUE, IS_ORDERED); //$NON-NLS-1$
+
+ initEClass(templateLibraryTypeEClass, TemplateLibraryType.class, "TemplateLibraryType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); //$NON-NLS-1$
+ initEAttribute(getTemplateLibraryType_Id(), theXMLTypePackage.getID(), "id", null, 1, 1, TemplateLibraryType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
+ initEAttribute(getTemplateLibraryType_Name(), theXMLTypePackage.getString(), "name", null, 0, 1, TemplateLibraryType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
+ initEReference(getTemplateLibraryType_Documentation(), this.getDocumentationType(), null, "documentation", null, 0, 1, TemplateLibraryType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
+ initEReference(getTemplateLibraryType_Templates(), this.getTemplatesType(), null, "templates", null, 0, 1, TemplateLibraryType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
+ initEReference(getTemplateLibraryType_Model(), theCarnotWorkflowModelPackage.getModelType(), null, "model", null, 0, 1, TemplateLibraryType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); //$NON-NLS-1$
// Initialize enums and add enum literals
- initEEnum(featureStyleTypeEEnum, FeatureStyleType.class, "FeatureStyleType");
+ initEEnum(featureStyleTypeEEnum, FeatureStyleType.class, "FeatureStyleType"); //$NON-NLS-1$
addEEnumLiteral(featureStyleTypeEEnum, FeatureStyleType.TEXT);
addEEnumLiteral(featureStyleTypeEEnum, FeatureStyleType.SELECTION);
- initEEnum(scopeTypeEEnum, ScopeType.class, "ScopeType");
+ initEEnum(scopeTypeEEnum, ScopeType.class, "ScopeType"); //$NON-NLS-1$
addEEnumLiteral(scopeTypeEEnum, ScopeType.MODEL);
addEEnumLiteral(scopeTypeEEnum, ScopeType.PROCESS);
- initEEnum(styleTypeEEnum, StyleType.class, "StyleType");
+ initEEnum(styleTypeEEnum, StyleType.class, "StyleType"); //$NON-NLS-1$
addEEnumLiteral(styleTypeEEnum, StyleType.STANDALONE);
addEEnumLiteral(styleTypeEEnum, StyleType.EMBEDDED);
@@ -821,391 +821,391 @@ public class TemplatePackageImpl extends EPackageImpl implements TemplatePackage
* @generated
*/
protected void createExtendedMetaDataAnnotations() {
- String source = "http:///org/eclipse/emf/ecore/util/ExtendedMetaData";
+ String source = "http:///org/eclipse/emf/ecore/util/ExtendedMetaData"; //$NON-NLS-1$
addAnnotation
(documentationTypeEClass,
source,
new String[]
{
- "name", "documentation",
- "kind", "mixed"
+ "name", "documentation", //$NON-NLS-1$ //$NON-NLS-2$
+ "kind", "mixed" //$NON-NLS-1$ //$NON-NLS-2$
});
addAnnotation
(getDocumentationType_Mixed(),
source,
new String[]
{
- "kind", "elementWildcard",
- "name", ":mixed"
+ "kind", "elementWildcard", //$NON-NLS-1$ //$NON-NLS-2$
+ "name", ":mixed" //$NON-NLS-1$ //$NON-NLS-2$
});
addAnnotation
(getDocumentationType_Group(),
source,
new String[]
{
- "kind", "group",
- "name", "group:1"
+ "kind", "group", //$NON-NLS-1$ //$NON-NLS-2$
+ "name", "group:1" //$NON-NLS-1$ //$NON-NLS-2$
});
addAnnotation
(getDocumentationType_Any(),
source,
new String[]
{
- "kind", "elementWildcard",
- "wildcards", "##any",
- "name", ":2",
- "processing", "lax",
- "group", "#group:1"
+ "kind", "elementWildcard", //$NON-NLS-1$ //$NON-NLS-2$
+ "wildcards", "##any", //$NON-NLS-1$ //$NON-NLS-2$
+ "name", ":2", //$NON-NLS-1$ //$NON-NLS-2$
+ "processing", "lax", //$NON-NLS-1$ //$NON-NLS-2$
+ "group", "#group:1" //$NON-NLS-1$ //$NON-NLS-2$
});
addAnnotation
(featureTypeEClass,
source,
new String[]
{
- "name", "feature",
- "kind", "elementOnly"
+ "name", "feature", //$NON-NLS-1$ //$NON-NLS-2$
+ "kind", "elementOnly" //$NON-NLS-1$ //$NON-NLS-2$
});
addAnnotation
(getFeatureType_Label(),
source,
new String[]
{
- "kind", "attribute",
- "name", "label"
+ "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$
+ "name", "label" //$NON-NLS-1$ //$NON-NLS-2$
});
addAnnotation
(getFeatureType_Name(),
source,
new String[]
{
- "kind", "attribute",
- "name", "name"
+ "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$
+ "name", "name" //$NON-NLS-1$ //$NON-NLS-2$
});
addAnnotation
(getFeatureType_Type(),
source,
new String[]
{
- "kind", "attribute",
- "name", "type"
+ "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$
+ "name", "type" //$NON-NLS-1$ //$NON-NLS-2$
});
addAnnotation
(getFeatureType_Scope(),
source,
new String[]
{
- "kind", "attribute",
- "name", "scope"
+ "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$
+ "name", "scope" //$NON-NLS-1$ //$NON-NLS-2$
});
addAnnotation
(parameterTypeEClass,
source,
new String[]
{
- "name", "parameter",
- "kind", "elementOnly"
+ "name", "parameter", //$NON-NLS-1$ //$NON-NLS-2$
+ "kind", "elementOnly" //$NON-NLS-1$ //$NON-NLS-2$
});
addAnnotation
(getParameterType_Activity(),
source,
new String[]
{
- "kind", "attribute",
- "name", "activity"
+ "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$
+ "name", "activity" //$NON-NLS-1$ //$NON-NLS-2$
});
addAnnotation
(getParameterType_Features(),
source,
new String[]
{
- "kind", "element",
- "name", "feature",
- "namespace", "##targetNamespace"
+ "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$
+ "name", "feature", //$NON-NLS-1$ //$NON-NLS-2$
+ "namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$
});
addAnnotation
(referenceTypeEClass,
source,
new String[]
{
- "name", "reference",
- "kind", "elementOnly"
+ "name", "reference", //$NON-NLS-1$ //$NON-NLS-2$
+ "kind", "elementOnly" //$NON-NLS-1$ //$NON-NLS-2$
});
addAnnotation
(getReferenceType_ApplicationType(),
source,
new String[]
{
- "kind", "attribute",
- "name", "applicationType"
+ "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$
+ "name", "applicationType" //$NON-NLS-1$ //$NON-NLS-2$
});
addAnnotation
(getReferenceType_ApplicationContextType(),
source,
new String[]
{
- "kind", "attribute",
- "name", "applicationContextType"
+ "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$
+ "name", "applicationContextType" //$NON-NLS-1$ //$NON-NLS-2$
});
addAnnotation
(getReferenceType_DataType(),
source,
new String[]
{
- "kind", "attribute",
- "name", "dataType"
+ "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$
+ "name", "dataType" //$NON-NLS-1$ //$NON-NLS-2$
});
addAnnotation
(getReferenceType_EventActionType(),
source,
new String[]
{
- "kind", "attribute",
- "name", "eventActionType"
+ "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$
+ "name", "eventActionType" //$NON-NLS-1$ //$NON-NLS-2$
});
addAnnotation
(getReferenceType_EventConditionType(),
source,
new String[]
{
- "kind", "attribute",
- "name", "eventConditionType"
+ "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$
+ "name", "eventConditionType" //$NON-NLS-1$ //$NON-NLS-2$
});
addAnnotation
(getReferenceType_TriggerType(),
source,
new String[]
{
- "kind", "attribute",
- "name", "triggerType"
+ "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$
+ "name", "triggerType" //$NON-NLS-1$ //$NON-NLS-2$
});
addAnnotation
(getReferenceType_Application(),
source,
new String[]
{
- "kind", "attribute",
- "name", "application"
+ "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$
+ "name", "application" //$NON-NLS-1$ //$NON-NLS-2$
});
addAnnotation
(getReferenceType_Data(),
source,
new String[]
{
- "kind", "attribute",
- "name", "data"
+ "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$
+ "name", "data" //$NON-NLS-1$ //$NON-NLS-2$
});
addAnnotation
(getReferenceType_ConditionalPerformer(),
source,
new String[]
{
- "kind", "attribute",
- "name", "conditionalPerformer"
+ "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$
+ "name", "conditionalPerformer" //$NON-NLS-1$ //$NON-NLS-2$
});
addAnnotation
(getReferenceType_Organization(),
source,
new String[]
{
- "kind", "attribute",
- "name", "organization"
+ "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$
+ "name", "organization" //$NON-NLS-1$ //$NON-NLS-2$
});
addAnnotation
(getReferenceType_Role(),
source,
new String[]
{
- "kind", "attribute",
- "name", "role"
+ "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$
+ "name", "role" //$NON-NLS-1$ //$NON-NLS-2$
});
addAnnotation
(getReferenceType_ProcessDefinition(),
source,
new String[]
{
- "kind", "attribute",
- "name", "process"
+ "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$
+ "name", "process" //$NON-NLS-1$ //$NON-NLS-2$
});
addAnnotation
(getReferenceType_TypeDeclaration(),
source,
new String[]
{
- "kind", "attribute",
- "name", "typeDeclaration"
+ "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$
+ "name", "typeDeclaration" //$NON-NLS-1$ //$NON-NLS-2$
});
addAnnotation
(getReferenceType_Parameters(),
source,
new String[]
{
- "kind", "element",
- "name", "parameter",
- "namespace", "##targetNamespace"
+ "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$
+ "name", "parameter", //$NON-NLS-1$ //$NON-NLS-2$
+ "namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$
});
addAnnotation
(rootsTypeEClass,
source,
new String[]
{
- "name", "roots",
- "kind", "elementOnly"
+ "name", "roots", //$NON-NLS-1$ //$NON-NLS-2$
+ "kind", "elementOnly" //$NON-NLS-1$ //$NON-NLS-2$
});
addAnnotation
(getRootsType_Root(),
source,
new String[]
{
- "kind", "element",
- "name", "root",
- "namespace", "##targetNamespace"
+ "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$
+ "name", "root", //$NON-NLS-1$ //$NON-NLS-2$
+ "namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$
});
addAnnotation
(templateTypeEClass,
source,
new String[]
{
- "name", "template",
- "kind", "elementOnly"
+ "name", "template", //$NON-NLS-1$ //$NON-NLS-2$
+ "kind", "elementOnly" //$NON-NLS-1$ //$NON-NLS-2$
});
addAnnotation
(getTemplateType_Id(),
source,
new String[]
{
- "kind", "attribute",
- "name", "id"
+ "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$
+ "name", "id" //$NON-NLS-1$ //$NON-NLS-2$
});
addAnnotation
(getTemplateType_Name(),
source,
new String[]
{
- "kind", "attribute",
- "name", "name"
+ "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$
+ "name", "name" //$NON-NLS-1$ //$NON-NLS-2$
});
addAnnotation
(getTemplateType_Documentation(),
source,
new String[]
{
- "kind", "element",
- "name", "documentation",
- "namespace", "##targetNamespace"
+ "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$
+ "name", "documentation", //$NON-NLS-1$ //$NON-NLS-2$
+ "namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$
});
addAnnotation
(getTemplateType_Roots(),
source,
new String[]
{
- "kind", "element",
- "name", "roots",
- "namespace", "##targetNamespace"
+ "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$
+ "name", "roots", //$NON-NLS-1$ //$NON-NLS-2$
+ "namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$
});
addAnnotation
(getTemplateType_Style(),
source,
new String[]
{
- "kind", "attribute",
- "name", "style"
+ "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$
+ "name", "style" //$NON-NLS-1$ //$NON-NLS-2$
});
addAnnotation
(getTemplateType_Category(),
source,
new String[]
{
- "kind", "attribute",
- "name", "category"
+ "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$
+ "name", "category" //$NON-NLS-1$ //$NON-NLS-2$
});
addAnnotation
(templatesTypeEClass,
source,
new String[]
{
- "name", "templates",
- "kind", "elementOnly"
+ "name", "templates", //$NON-NLS-1$ //$NON-NLS-2$
+ "kind", "elementOnly" //$NON-NLS-1$ //$NON-NLS-2$
});
addAnnotation
(getTemplatesType_Template(),
source,
new String[]
{
- "kind", "element",
- "name", "template",
- "namespace", "##targetNamespace"
+ "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$
+ "name", "template", //$NON-NLS-1$ //$NON-NLS-2$
+ "namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$
});
addAnnotation
(templateLibraryTypeEClass,
source,
new String[]
{
- "kind", "elementOnly",
- "name", "TemplateLibrary"
+ "kind", "elementOnly", //$NON-NLS-1$ //$NON-NLS-2$
+ "name", "TemplateLibrary" //$NON-NLS-1$ //$NON-NLS-2$
});
addAnnotation
(getTemplateLibraryType_Id(),
source,
new String[]
{
- "kind", "attribute",
- "name", "id"
+ "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$
+ "name", "id" //$NON-NLS-1$ //$NON-NLS-2$
});
addAnnotation
(getTemplateLibraryType_Name(),
source,
new String[]
{
- "kind", "attribute",
- "name", "name"
+ "kind", "attribute", //$NON-NLS-1$ //$NON-NLS-2$
+ "name", "name" //$NON-NLS-1$ //$NON-NLS-2$
});
addAnnotation
(getTemplateLibraryType_Documentation(),
source,
new String[]
{
- "kind", "element",
- "name", "documentation",
- "namespace", "##targetNamespace"
+ "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$
+ "name", "documentation", //$NON-NLS-1$ //$NON-NLS-2$
+ "namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$
});
addAnnotation
(getTemplateLibraryType_Templates(),
source,
new String[]
{
- "kind", "element",
- "name", "templates",
- "namespace", "##targetNamespace"
+ "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$
+ "name", "templates", //$NON-NLS-1$ //$NON-NLS-2$
+ "namespace", "##targetNamespace" //$NON-NLS-1$ //$NON-NLS-2$
});
addAnnotation
(getTemplateLibraryType_Model(),
source,
new String[]
{
- "kind", "element",
- "name", "model",
- "namespace", "http://www.carnot.ag/workflowmodel/3.1"
+ "kind", "element", //$NON-NLS-1$ //$NON-NLS-2$
+ "name", "model", //$NON-NLS-1$ //$NON-NLS-2$
+ "namespace", "http://www.carnot.ag/workflowmodel/3.1" //$NON-NLS-1$ //$NON-NLS-2$
});
addAnnotation
(featureStyleTypeEEnum,
source,
new String[]
{
- "name", "type"
+ "name", "type" //$NON-NLS-1$ //$NON-NLS-2$
});
addAnnotation
(scopeTypeEEnum,
source,
new String[]
{
- "name", "type"
+ "name", "type" //$NON-NLS-1$ //$NON-NLS-2$
});
addAnnotation
(styleTypeEEnum,
source,
new String[]
{
- "name", "style"
+ "name", "style" //$NON-NLS-1$ //$NON-NLS-2$
});
}
@@ -1216,104 +1216,104 @@ public class TemplatePackageImpl extends EPackageImpl implements TemplatePackage
* @generated
*/
protected void createElementIdRefAnnotations() {
- String source = "http://www.carnot.ag/workflow/model/ElementIdRef";
+ String source = "http://www.carnot.ag/workflow/model/ElementIdRef"; //$NON-NLS-1$
addAnnotation
(getParameterType_Activity(),
source,
new String[]
{
- "scope", "process"
+ "scope", "process" //$NON-NLS-1$ //$NON-NLS-2$
});
addAnnotation
(getReferenceType_ApplicationType(),
source,
new String[]
{
- "scope", "model"
+ "scope", "model" //$NON-NLS-1$ //$NON-NLS-2$
});
addAnnotation
(getReferenceType_ApplicationContextType(),
source,
new String[]
{
- "scope", "model"
+ "scope", "model" //$NON-NLS-1$ //$NON-NLS-2$
});
addAnnotation
(getReferenceType_DataType(),
source,
new String[]
{
- "scope", "model"
+ "scope", "model" //$NON-NLS-1$ //$NON-NLS-2$
});
addAnnotation
(getReferenceType_EventActionType(),
source,
new String[]
{
- "scope", "model"
+ "scope", "model" //$NON-NLS-1$ //$NON-NLS-2$
});
addAnnotation
(getReferenceType_EventConditionType(),
source,
new String[]
{
- "scope", "model"
+ "scope", "model" //$NON-NLS-1$ //$NON-NLS-2$
});
addAnnotation
(getReferenceType_TriggerType(),
source,
new String[]
{
- "scope", "model"
+ "scope", "model" //$NON-NLS-1$ //$NON-NLS-2$
});
addAnnotation
(getReferenceType_Application(),
source,
new String[]
{
- "scope", "model"
+ "scope", "model" //$NON-NLS-1$ //$NON-NLS-2$
});
addAnnotation
(getReferenceType_Data(),
source,
new String[]
{
- "scope", "model"
+ "scope", "model" //$NON-NLS-1$ //$NON-NLS-2$
});
addAnnotation
(getReferenceType_ConditionalPerformer(),
source,
new String[]
{
- "scope", "model"
+ "scope", "model" //$NON-NLS-1$ //$NON-NLS-2$
});
addAnnotation
(getReferenceType_Organization(),
source,
new String[]
{
- "scope", "model"
+ "scope", "model" //$NON-NLS-1$ //$NON-NLS-2$
});
addAnnotation
(getReferenceType_Role(),
source,
new String[]
{
- "scope", "model"
+ "scope", "model" //$NON-NLS-1$ //$NON-NLS-2$
});
addAnnotation
(getReferenceType_ProcessDefinition(),
source,
new String[]
{
- "scope", "model"
+ "scope", "model" //$NON-NLS-1$ //$NON-NLS-2$
});
addAnnotation
(getReferenceType_TypeDeclaration(),
source,
new String[]
{
- "scope", "model"
+ "scope", "model" //$NON-NLS-1$ //$NON-NLS-2$
});
}
diff --git a/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/emf/template/impl/TemplateTypeImpl.java b/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/emf/template/impl/TemplateTypeImpl.java
index 1ae7cf6..5094ef7 100644
--- a/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/emf/template/impl/TemplateTypeImpl.java
+++ b/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/emf/template/impl/TemplateTypeImpl.java
@@ -474,15 +474,15 @@ public class TemplateTypeImpl extends EObjectImpl implements TemplateType {
if (eIsProxy()) return super.toString();
StringBuffer result = new StringBuffer(super.toString());
- result.append(" (id: ");
+ result.append(" (id: "); //$NON-NLS-1$
result.append(id);
- result.append(", name: ");
+ result.append(", name: "); //$NON-NLS-1$
result.append(name);
- result.append(", style: ");
+ result.append(", style: "); //$NON-NLS-1$
result.append(style);
- result.append(", category: ");
+ result.append(", category: "); //$NON-NLS-1$
result.append(category);
- result.append(')');
+ result.append(')'); //$NON-NLS-1$
return result.toString();
}
diff --git a/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/spi/ITemplate.java b/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/spi/ITemplate.java
index 2e5935a..63b48f7 100644
--- a/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/spi/ITemplate.java
+++ b/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/spi/ITemplate.java
@@ -21,6 +21,8 @@ public interface ITemplate
String getId();
String getName();
+
+ void setName(String name);
String getDescription();
diff --git a/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/templates-messages.properties b/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/templates-messages.properties
new file mode 100644
index 0000000..73d465f
--- /dev/null
+++ b/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/templates-messages.properties
@@ -0,0 +1,29 @@
+###############################################################################
+# Copyright (c) 2011 SunGard CSA LLC and others.
+# 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:
+# SunGard CSA LLC - initial API and implementation and/or initial documentation
+###############################################################################
+CSL_CONTAINMENT_FEATURE_NOT_FOUND_FOR=Containment feature not found for: {0}
+CSL_INCOMPATIBLE_CONTAINER=Incompatible container.
+ERROR_PROVIDE_A_NUMBER_OF_ACTIVITIES=Please provide a number of activities.
+EXC_NOT_SUPPORTED=Not supported.
+TITLE_APPLY=Apply \" {0} \"
+TXT_COPY_OF=CopyOf {0}
+TXT_TEMPLATE_LIBRARY=TemplateLibrary
+Could_not_find_resource=Could not find resource {0} .
+LB_VersionRepository_Refresh=Refresh
+The_class_is_not_a_valid_classifier=The class {0} is not a valid classifier
+The_datatype_is_not_a_valid_classifier=The datatype {0} is not a valid classifier
+The_value_is_not_a_valid_enumerator_of=The value {0} is not a valid enumerator of '{1}'
+MANUAL_ACTIVITY=Manual Activity
+ROUTE_ACTIVITY=Route Activity
+APPLICATION_ACTIVITY=Application Activity
+
+
+
+
diff --git a/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/views/Category.java b/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/views/Category.java
index 77f70ae..29e20e5 100644
--- a/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/views/Category.java
+++ b/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/views/Category.java
@@ -70,7 +70,7 @@ public class Category
{
if (name == null)
{
- return id == null ? "" : id;
+ return id == null ? "" : id; //$NON-NLS-1$
}
return name;
}
diff --git a/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/views/ExtendedImageView.java b/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/views/ExtendedImageView.java
index 27f23f9..b5dfed98 100644
--- a/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/views/ExtendedImageView.java
+++ b/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/views/ExtendedImageView.java
@@ -39,7 +39,7 @@ public class ExtendedImageView extends ImageView
{
super(elem);
String fullPath = (String)getElement().getAttributes().getAttribute(HTML.Attribute.SRC);
- String imageLocation = fullPath.substring(fullPath.indexOf("/"), fullPath.length());
+ String imageLocation = fullPath.substring(fullPath.indexOf("/"), fullPath.length()); //$NON-NLS-1$
//Really?
url = template.getParentFactory().getClass().getResource(imageLocation);
ImageDescriptor image = ImageDescriptor.createFromURL(url);
diff --git a/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/views/ExtendedViewFactory.java b/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/views/ExtendedViewFactory.java
index 69a4af3..65f5ce0 100644
--- a/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/views/ExtendedViewFactory.java
+++ b/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/views/ExtendedViewFactory.java
@@ -32,7 +32,7 @@ public class ExtendedViewFactory extends HTMLFactory implements ViewFactory
public View create(Element element)
{
HTML.Tag kind = (HTML.Tag) (element.getAttributes().getAttribute(javax.swing.text.StyleConstants.NameAttribute));
- if (kind.toString().equalsIgnoreCase("img")) {
+ if (kind.toString().equalsIgnoreCase("img")) { //$NON-NLS-1$
ImageView imageView = new ExtendedImageView(template, element);
return imageView;
}
diff --git a/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/views/PatternsContentProvider.java b/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/views/PatternsContentProvider.java
index 4005f33..1d1d2b0 100644
--- a/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/views/PatternsContentProvider.java
+++ b/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/views/PatternsContentProvider.java
@@ -77,15 +77,15 @@ public class PatternsContentProvider implements ITreeContentProvider
try
{
String name = cfg.getName();
- if ("factory".equals(name))
+ if ("factory".equals(name)) //$NON-NLS-1$
{
- ITemplateFactory factory = (ITemplateFactory) cfg.createExecutableExtension("class");
+ ITemplateFactory factory = (ITemplateFactory) cfg.createExecutableExtension("class"); //$NON-NLS-1$
Map parameters = new HashMap();
- IConfigurationElement[] children = extensions[i].getChildren("parameter");
+ IConfigurationElement[] children = extensions[i].getChildren("parameter"); //$NON-NLS-1$
for (int j = 0; j < children.length; j++)
{
- String cname = children[j].getAttribute("name");
- String value = children[j].getAttribute("value");
+ String cname = children[j].getAttribute("name"); //$NON-NLS-1$
+ String value = children[j].getAttribute("value"); //$NON-NLS-1$
parameters.put(cname, value);
}
factory.initialize(parameters);
diff --git a/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/views/PatternsLabelProvider.java b/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/views/PatternsLabelProvider.java
index 05de650..1fe6a30 100644
--- a/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/views/PatternsLabelProvider.java
+++ b/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/views/PatternsLabelProvider.java
@@ -24,11 +24,11 @@ public class PatternsLabelProvider extends LabelProvider
public Image getImage(Object element)
{
if (element instanceof Category) {
- URL url = Platform.getBundle("org.eclipse.stardust.modeling.templates").getResource("icons/folder.gif");
+ URL url = Platform.getBundle("org.eclipse.stardust.modeling.templates").getResource("icons/folder.gif"); //$NON-NLS-1$ //$NON-NLS-2$
ImageDescriptor image = ImageDescriptor.createFromURL(url);
return image.createImage();
} else {
- URL url = Platform.getBundle("org.eclipse.stardust.modeling.templates").getResource("icons/diagram.gif");
+ URL url = Platform.getBundle("org.eclipse.stardust.modeling.templates").getResource("icons/diagram.gif"); //$NON-NLS-1$ //$NON-NLS-2$
ImageDescriptor image = ImageDescriptor.createFromURL(url);
return image.createImage();
}
diff --git a/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/views/PatternsView.java b/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/views/PatternsView.java
index b1c8094..23e8048 100644
--- a/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/views/PatternsView.java
+++ b/modeling/org.eclipse.stardust.modeling.templates/src/org/eclipse/stardust/modeling/templates/views/PatternsView.java
@@ -78,9 +78,9 @@ public class PatternsView extends ViewPart
textPane = new JTextPane();
JScrollPane scrollPane = new JScrollPane(textPane);
locationFrame.add(scrollPane);
- textPane.setContentType("text/html");
+ textPane.setContentType("text/html"); //$NON-NLS-1$
StyleSheet css = ((HTMLEditorKit)textPane.getEditorKit()).getStyleSheet();
- URL url = this.getClass().getResource("/html/carnot.css");
+ URL url = this.getClass().getResource("/html/carnot.css"); //$NON-NLS-1$
css.importStyleSheet(url);
textPane.setEditable(false);
sashForm.setWeights(new int[] { 1, 2});
@@ -136,7 +136,7 @@ public class PatternsView extends ViewPart
{
public void run()
{
- viewer.setInput("org.eclipse.stardust.modeling.templates.templateProvider");
+ viewer.setInput("org.eclipse.stardust.modeling.templates.templateProvider"); //$NON-NLS-1$
}
};
tbm.add(refreshAction);