protected static class DebugAction.DebugStarter
extends java.lang.Object
implements org.eclipse.jface.operation.IRunnableWithProgress
Modifier and Type | Field and Description |
---|---|
protected org.eclipse.emf.ecore.EObject |
contextObject |
protected EnvironmentFactoryInternal |
environmentFactory |
protected java.lang.String |
expression |
protected org.eclipse.swt.widgets.Shell |
shell |
Constructor and Description |
---|
DebugStarter(org.eclipse.swt.widgets.Shell shell,
EnvironmentFactory environmentFactory,
org.eclipse.emf.ecore.EObject contextObject,
java.lang.String expression) |
Modifier and Type | Method and Description |
---|---|
protected org.eclipse.emf.common.util.URI |
createDocument(org.eclipse.core.runtime.IProgressMonitor monitor)
Create a test Complete OCL document that wraps the required OCL text up as the body of a test operation.
|
org.eclipse.debug.core.ILaunch |
getLaunch() |
protected org.eclipse.debug.core.ILaunch |
launchDebugger(org.eclipse.core.runtime.IProgressMonitor monitor,
org.eclipse.emf.ecore.EObject contextObject,
ExpressionInOCL expressionInOCL)
Create and launch an internal launch configuration to debug expressionInOCL applied to contextObject.
|
protected BaseCSResource |
loadDocument(org.eclipse.core.runtime.IProgressMonitor monitor,
org.eclipse.emf.common.util.URI documentURI)
Load and parse the test document.
|
protected void |
openError(java.lang.String message) |
protected void |
openError(java.lang.String message,
java.lang.Exception e) |
void |
run(org.eclipse.core.runtime.IProgressMonitor monitor) |
@NonNull protected final org.eclipse.swt.widgets.Shell shell
@NonNull protected final EnvironmentFactoryInternal environmentFactory
@Nullable protected final org.eclipse.emf.ecore.EObject contextObject
@NonNull protected final java.lang.String expression
public DebugStarter(@NonNull org.eclipse.swt.widgets.Shell shell, @NonNull EnvironmentFactory environmentFactory, @Nullable org.eclipse.emf.ecore.EObject contextObject, @NonNull java.lang.String expression)
@NonNull protected org.eclipse.emf.common.util.URI createDocument(org.eclipse.core.runtime.IProgressMonitor monitor) throws java.io.IOException, org.eclipse.core.runtime.CoreException
java.io.IOException
org.eclipse.core.runtime.CoreException
public org.eclipse.debug.core.ILaunch getLaunch()
protected org.eclipse.debug.core.ILaunch launchDebugger(org.eclipse.core.runtime.IProgressMonitor monitor, @Nullable org.eclipse.emf.ecore.EObject contextObject, @NonNull ExpressionInOCL expressionInOCL) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
@Nullable protected BaseCSResource loadDocument(org.eclipse.core.runtime.IProgressMonitor monitor, @NonNull org.eclipse.emf.common.util.URI documentURI) throws java.lang.Exception
java.io.IOException
java.lang.Exception
protected void openError(java.lang.String message)
protected void openError(java.lang.String message, @NonNull java.lang.Exception e)
public void run(org.eclipse.core.runtime.IProgressMonitor monitor)
run
in interface org.eclipse.jface.operation.IRunnableWithProgress