|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.ui.part.Page org.eclipse.ocl.examples.xtext.console.OCLConsolePage
public class OCLConsolePage
The page implementing the Interactive OCL console.
Nested Class Summary | |
---|---|
protected static class |
OCLConsolePage.CancelableEvaluationVisitor
CancelableEvaluationVisitor refines the EvaluationVisitor to poll the monitor for cancellation at a variety of significant evaluation events, such as feature visits and OCLConsolePage.CancelableEvaluationVisitor.createNestedEvaluator() . |
static class |
OCLConsolePage.ColorChoices
|
static class |
OCLConsolePage.InterrogatableContentAssistant
|
static class |
OCLConsolePage.InterrogatableContentAssistantFactory
|
Constructor Summary | |
---|---|
protected |
OCLConsolePage(OCLConsole console)
Initializes me. |
Method Summary | |
---|---|
protected void |
append(java.lang.String text,
org.eclipse.swt.graphics.RGB rgb,
boolean bold)
Appends the specified text to the output viewer. |
void |
createControl(org.eclipse.swt.widgets.Composite parent)
|
void |
dispose()
Extends the inherited method to dispose of additional colour resources. |
protected boolean |
evaluate(java.lang.String expression)
Evaluates an OCL expression using the OCL Interpreter's OCLHelper
API. |
protected void |
flushEvents()
|
org.eclipse.emf.ecore.EObject |
getContextObject()
|
org.eclipse.swt.widgets.Control |
getControl()
|
org.eclipse.xtext.ui.editor.model.IXtextDocument |
getDocument(org.eclipse.emf.common.util.URI trimFragment)
|
BaseDocument |
getEditorDocument()
|
java.lang.String |
getLastOCLExpression()
|
MetaModelManager |
getMetaModelManager(org.eclipse.emf.ecore.EObject contextObject)
|
protected org.eclipse.debug.core.ILaunch |
internalLaunchDebugger()
|
void |
metaModelManagerDisposed(MetaModelManager metaModelManager)
Respond to disposal of the MetaModelManager by eliminating all further usage. |
protected void |
refreshSelection(java.lang.Object selected)
|
void |
reset()
|
protected void |
resetDocument()
|
void |
setFocus()
|
Methods inherited from class org.eclipse.ui.part.Page |
---|
getSite, init, makeContributions, setActionBars |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected OCLConsolePage(OCLConsole console)
console
- Method Detail |
---|
protected void append(java.lang.String text, org.eclipse.swt.graphics.RGB rgb, boolean bold)
text
- the text to appendrgb
- the color to print the text withbold
- whether to print the text boldpublic void createControl(org.eclipse.swt.widgets.Composite parent)
createControl
in interface org.eclipse.ui.part.IPage
createControl
in class org.eclipse.ui.part.Page
public void dispose()
dispose
in interface org.eclipse.ui.part.IPage
dispose
in class org.eclipse.ui.part.Page
protected boolean evaluate(java.lang.String expression)
OCLHelper
API.
expression
- an OCL expression
true
on successful evaluation; false
if the expression failed to parse or evaluateprotected void flushEvents()
public org.eclipse.emf.ecore.EObject getContextObject()
public org.eclipse.swt.widgets.Control getControl()
getControl
in interface org.eclipse.ui.part.IPage
getControl
in class org.eclipse.ui.part.Page
public org.eclipse.xtext.ui.editor.model.IXtextDocument getDocument(org.eclipse.emf.common.util.URI trimFragment)
public BaseDocument getEditorDocument()
public java.lang.String getLastOCLExpression()
@NonNull public MetaModelManager getMetaModelManager(@Nullable org.eclipse.emf.ecore.EObject contextObject)
protected org.eclipse.debug.core.ILaunch internalLaunchDebugger()
public void metaModelManagerDisposed(@NonNull MetaModelManager metaModelManager)
MetaModelManagerListener
metaModelManagerDisposed
in interface MetaModelManagerListener
protected void refreshSelection(java.lang.Object selected)
public void reset()
protected void resetDocument()
public void setFocus()
setFocus
in interface org.eclipse.ui.part.IPage
setFocus
in class org.eclipse.ui.part.Page
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |