org.eclipse.ocl.examples.validity.locator
Class PivotUIConstraintLocator.DebugStarter

java.lang.Object
  extended by org.eclipse.ocl.examples.validity.locator.PivotUIConstraintLocator.DebugStarter
All Implemented Interfaces:
org.eclipse.jface.operation.IRunnableWithProgress
Enclosing class:
PivotUIConstraintLocator

protected static class PivotUIConstraintLocator.DebugStarter
extends java.lang.Object
implements org.eclipse.jface.operation.IRunnableWithProgress

The DebugStarter sequences the start up of the debugger off the thread.


Field Summary
protected  ExpressionInOCL constraint
           
protected  org.eclipse.emf.ecore.EObject contextObject
           
protected  MetaModelManager metaModelManager
           
protected  org.eclipse.swt.widgets.Shell shell
           
 
Constructor Summary
PivotUIConstraintLocator.DebugStarter(org.eclipse.swt.widgets.Shell shell, MetaModelManager metaModelManager, org.eclipse.emf.ecore.EObject contextObject, ExpressionInOCL constraint)
           
 
Method Summary
 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  void openError(java.lang.String message, java.lang.Exception e)
           
 void run(org.eclipse.core.runtime.IProgressMonitor monitor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

shell

@NonNull
protected final org.eclipse.swt.widgets.Shell shell

metaModelManager

@NonNull
protected final MetaModelManager metaModelManager

contextObject

@Nullable
protected final org.eclipse.emf.ecore.EObject contextObject

constraint

@NonNull
protected final ExpressionInOCL constraint
Constructor Detail

PivotUIConstraintLocator.DebugStarter

public PivotUIConstraintLocator.DebugStarter(@NonNull
                                             org.eclipse.swt.widgets.Shell shell,
                                             @NonNull
                                             MetaModelManager metaModelManager,
                                             @Nullable
                                             org.eclipse.emf.ecore.EObject contextObject,
                                             @NonNull
                                             ExpressionInOCL constraint)
Method Detail

getLaunch

public org.eclipse.debug.core.ILaunch getLaunch()

launchDebugger

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
Create and launch an internal launch configuration to debug expressionInOCL applied to contextObject.

Returns:
Throws:
org.eclipse.core.runtime.CoreException

openError

protected void openError(java.lang.String message,
                         @NonNull
                         java.lang.Exception e)

run

public void run(org.eclipse.core.runtime.IProgressMonitor monitor)
Specified by:
run in interface org.eclipse.jface.operation.IRunnableWithProgress