blob: 534d1f235ac6e50077f7467fa77211bde3922f0f [file] [log] [blame]
/**
* <copyright>
*
* Copyright (c) 2014 itemis 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:
* itemis - Initial API and implementation
*
* </copyright>
*/
package org.eclipse.sphinx.examples.workflows.simple.xtend
import org.eclipse.emf.mwe.core.WorkflowContext
import org.eclipse.emf.mwe.core.issues.Issues
import org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent2
import org.eclipse.emf.mwe.core.monitor.ProgressMonitor
import org.eclipse.sphinx.examples.workflows.lib.ExampleWorkflowHelper
class SimpleXtendWorkflowComponent extends AbstractWorkflowComponent2 {
override protected invokeInternal(WorkflowContext ctx, ProgressMonitor monitor, Issues issues) {
println("Executing simple Xtend-based workflow component")
println("Using some class from another project: " + ExampleWorkflowHelper)
val helper = new ExampleWorkflowHelper()
helper.doSomething
println("Done!")
}
}