org.eclipse.xtext.xtext.launcher
Class WorkflowLaunchUtils
java.lang.Object
org.eclipse.xtext.xtext.launcher.WorkflowLaunchUtils
public class WorkflowLaunchUtils
- extends java.lang.Object
- Author:
- Peter Friese - Initial contribution and API
Method Summary |
protected static org.eclipse.debug.ui.ILaunchShortcut |
findLaunchShortcut()
Find launch shortcut in the extension registry. |
static void |
runWorkflow(org.eclipse.core.resources.IResource workflowFile,
java.lang.String mode)
|
static boolean |
workflowFileAvailableFor(org.eclipse.ui.IEditorPart activeEditor)
|
static boolean |
workflowFileAvailableForGrammarFile(org.eclipse.core.resources.IResource resource)
|
static org.eclipse.core.resources.IResource |
workflowFileFor(org.eclipse.core.commands.ExecutionEvent event)
|
static org.eclipse.core.resources.IResource |
workflowFileFor(org.eclipse.ui.IEditorPart editor)
|
static org.eclipse.core.resources.IResource |
workflowFileFor(org.eclipse.core.resources.IResource resource)
|
static org.eclipse.core.resources.IResource |
workflowFileFor(org.eclipse.jface.viewers.ISelection selection)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MWE2_FILE_EXTENSION
protected static final java.lang.String MWE2_FILE_EXTENSION
- See Also:
- Constant Field Values
MWE2_LAUNCH_SHORCUT_ID
protected static final java.lang.String MWE2_LAUNCH_SHORCUT_ID
- See Also:
- Constant Field Values
logger
protected static final org.apache.log4j.Logger logger
WorkflowLaunchUtils
public WorkflowLaunchUtils()
workflowFileFor
public static org.eclipse.core.resources.IResource workflowFileFor(org.eclipse.core.commands.ExecutionEvent event)
workflowFileAvailableFor
public static boolean workflowFileAvailableFor(org.eclipse.ui.IEditorPart activeEditor)
workflowFileFor
public static org.eclipse.core.resources.IResource workflowFileFor(org.eclipse.ui.IEditorPart editor)
workflowFileFor
public static org.eclipse.core.resources.IResource workflowFileFor(org.eclipse.jface.viewers.ISelection selection)
workflowFileAvailableForGrammarFile
public static boolean workflowFileAvailableForGrammarFile(org.eclipse.core.resources.IResource resource)
workflowFileFor
public static org.eclipse.core.resources.IResource workflowFileFor(org.eclipse.core.resources.IResource resource)
findLaunchShortcut
protected static org.eclipse.debug.ui.ILaunchShortcut findLaunchShortcut()
throws org.eclipse.core.runtime.CoreException
- Find launch shortcut in the extension registry. Using this introspective approach to avoid an explicit
dependency to
org.eclipse.emf.mwe2.launch
bundle.
- Throws:
org.eclipse.core.runtime.CoreException
runWorkflow
public static void runWorkflow(org.eclipse.core.resources.IResource workflowFile,
java.lang.String mode)