summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkthoms2009-12-11 13:32:35 (EST)
committer kthoms2009-12-11 13:32:35 (EST)
commit2a290a0bc299e72be21a09cf4349d73d8deb775a (patch)
treedd560a140cce4cdd7eb205c4900cff138e40f215
parent2cc17ad842cb884dbafecae100fb511520a7d626 (diff)
downloadorg.eclipse.mwe-2a290a0bc299e72be21a09cf4349d73d8deb775a.zip
org.eclipse.mwe-2a290a0bc299e72be21a09cf4349d73d8deb775a.tar.gz
org.eclipse.mwe-2a290a0bc299e72be21a09cf4349d73d8deb775a.tar.bz2
NEW - bug 297610: IApplication wrapper for WorkflowRunnerHelios_M4
https://bugs.eclipse.org/bugs/show_bug.cgi?id=297610
-rw-r--r--plugins/org.eclipse.emf.mwe.core/plugin.xml17
-rw-r--r--plugins/org.eclipse.emf.mwe.core/src/org/eclipse/emf/mwe/core/WorkflowRunnerApplication.java35
2 files changed, 52 insertions, 0 deletions
diff --git a/plugins/org.eclipse.emf.mwe.core/plugin.xml b/plugins/org.eclipse.emf.mwe.core/plugin.xml
new file mode 100644
index 0000000..fb5c14c
--- /dev/null
+++ b/plugins/org.eclipse.emf.mwe.core/plugin.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse version="3.4"?>
+<plugin>
+ <extension
+ id="WorkflowRunner"
+ point="org.eclipse.core.runtime.applications">
+ <application
+ cardinality="singleton-global"
+ thread="main"
+ visible="true">
+ <run
+ class="org.eclipse.emf.mwe.core.WorkflowRunnerApplication">
+ </run>
+ </application>
+ </extension>
+
+</plugin>
diff --git a/plugins/org.eclipse.emf.mwe.core/src/org/eclipse/emf/mwe/core/WorkflowRunnerApplication.java b/plugins/org.eclipse.emf.mwe.core/src/org/eclipse/emf/mwe/core/WorkflowRunnerApplication.java
new file mode 100644
index 0000000..ede7477
--- /dev/null
+++ b/plugins/org.eclipse.emf.mwe.core/src/org/eclipse/emf/mwe/core/WorkflowRunnerApplication.java
@@ -0,0 +1,35 @@
+/*******************************************************************************
+ * Copyright (c) 2005 - 2009 committers of openArchitectureWare 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:
+ * committers of openArchitectureWare - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.emf.mwe.core;
+
+import org.eclipse.equinox.app.IApplication;
+import org.eclipse.equinox.app.IApplicationContext;
+
+/**
+ * Eclipse Application wrapper for MWE {@link WorkflowRunner}. Application arguments are passed as-is
+ * to the workflow engine.
+ *
+ * @author Karsten Thoms - Initial contribution and API
+ * @since 0.8.0-M4
+ */
+public class WorkflowRunnerApplication implements IApplication {
+ public static final String KEY_APPL_ARGS = "application.args";
+
+ public Object start(IApplicationContext context) throws Exception {
+ String[] args = (String[]) context.getArguments().get(KEY_APPL_ARGS);
+ org.eclipse.emf.mwe.core.WorkflowRunner.main(args);
+ return null;
+ }
+
+ public void stop() {
+ }
+
+}