Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/toolsmiths/org.eclipse.papyrus.mwe2.utils/src/org/eclipse/papyrus/mwe2/utils/XtendWorkflow.java')
-rw-r--r--plugins/toolsmiths/org.eclipse.papyrus.mwe2.utils/src/org/eclipse/papyrus/mwe2/utils/XtendWorkflow.java38
1 files changed, 38 insertions, 0 deletions
diff --git a/plugins/toolsmiths/org.eclipse.papyrus.mwe2.utils/src/org/eclipse/papyrus/mwe2/utils/XtendWorkflow.java b/plugins/toolsmiths/org.eclipse.papyrus.mwe2.utils/src/org/eclipse/papyrus/mwe2/utils/XtendWorkflow.java
new file mode 100644
index 00000000000..66276e05b71
--- /dev/null
+++ b/plugins/toolsmiths/org.eclipse.papyrus.mwe2.utils/src/org/eclipse/papyrus/mwe2/utils/XtendWorkflow.java
@@ -0,0 +1,38 @@
+/*******************************************************************************
+ * Copyright (c) 2014, 2015 CEA LIST, Christian W. Damus, 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:
+ * CEA LIST - Initial API and implementation
+ * Christian W. Damus - bug 464647
+ *
+ ******************************************************************************/
+package org.eclipse.papyrus.mwe2.utils;
+
+import java.util.List;
+
+import org.eclipse.emf.mwe2.runtime.workflow.IWorkflowComponent;
+import org.eclipse.emf.mwe2.runtime.workflow.Workflow;
+
+import com.google.common.collect.Lists;
+
+
+/**
+ * A workflow for Xtend transformations. Primarily, it provides Xtend-compatible access to
+ * the collections manipulated by the inherited {@link Workflow#addBean(Object)} and
+ * {@link Workflow#addComponent(IWorkflowComponent)} APIs.
+ */
+public class XtendWorkflow extends Workflow {
+
+ protected List<Object> getBeans() {
+ return Lists.newArrayList();
+ }
+
+ protected List<IWorkflowComponent> getComponents() {
+ return getChildren();
+ }
+
+} \ No newline at end of file

Back to the top