|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.jface.text.AbstractDocument org.eclipse.jface.text.Document org.eclipse.xtext.ui.editor.model.XtextDocument org.eclipse.ocl.examples.xtext.essentialocl.ui.model.BaseDocument org.eclipse.ocl.examples.xtext.oclinecore.ui.model.OCLinEcoreDocument
public class OCLinEcoreDocument
An OCLinEcoreDocument refines a document to support generation of an alternate (XMI) content for use during save in place of its normal textual content.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.eclipse.xtext.ui.editor.model.XtextDocument |
---|
org.eclipse.xtext.ui.editor.model.XtextDocument.XtextDocumentLocker |
Nested classes/interfaces inherited from interface org.eclipse.jface.text.IDocumentExtension |
---|
org.eclipse.jface.text.IDocumentExtension.IReplace |
Field Summary |
---|
Fields inherited from interface org.eclipse.jface.text.IDocument |
---|
DEFAULT_CATEGORY, DEFAULT_CONTENT_TYPE |
Fields inherited from interface org.eclipse.jface.text.IDocumentExtension3 |
---|
DEFAULT_PARTITIONING |
Fields inherited from interface org.eclipse.jface.text.IDocumentExtension4 |
---|
UNKNOWN_MODIFICATION_STAMP |
Constructor Summary | |
---|---|
OCLinEcoreDocument(org.eclipse.xtext.ui.editor.model.DocumentTokenSource tokenSource,
org.eclipse.xtext.ui.editor.model.edit.ITextEditComposer composer)
|
Method Summary | |
---|---|
protected void |
checkForErrors(org.eclipse.emf.ecore.resource.Resource resource)
|
protected org.eclipse.emf.ecore.xmi.XMLResource |
getPivotResouce()
|
void |
saveAsEcore(java.io.Writer writer,
org.eclipse.emf.common.util.URI ecoreURI)
Write the XMI representation of the Ecore to be saved. |
void |
saveAsPivot(java.io.StringWriter writer)
Write the XMI representation of the Pivot to be saved. |
void |
saveAsUML(java.io.Writer writer,
org.eclipse.emf.common.util.URI umlURI)
Write the XMI representation of the UML to be saved. |
Methods inherited from class org.eclipse.ocl.examples.xtext.essentialocl.ui.model.BaseDocument |
---|
getDocumentScopeAdapter, getOCLContext, getOCLParameters, getResourceSet, setContext, setContext |
Methods inherited from class org.eclipse.xtext.ui.editor.model.XtextDocument |
---|
addModelListener, addPosition, addPosition, addXtextDocumentContentObserver, checkAndUpdateAnnotations, createDocumentLocker, disposeInput, ensureThatStateIsNotReturned, fireDocumentChanged, getAdapter, getLastDamage, getPositions, getPositions, getResourceURI, getTokens, getValidationJob, internalModify, modify, notifyModelListeners, readOnly, removeModelListener, removePosition, removePosition, removeXtextDocumentContentObserver, setInput, setValidationJob, updateContentBeforeRead |
Methods inherited from class org.eclipse.jface.text.Document |
---|
isLineInformationRepairNeeded |
Methods inherited from class org.eclipse.jface.text.AbstractDocument |
---|
acceptPostNotificationReplaces, addDocumentListener, addDocumentPartitioningListener, addDocumentRewriteSessionListener, addPositionCategory, addPositionUpdater, addPrenotifiedDocumentListener, checkStateOfPartitioner, completeInitialization, computeIndexInCategory, computeIndexInPositionList, computeIndexInPositionList, computeNumberOfLines, computePartitioning, computePartitioning, containsPosition, containsPositionCategory, doFireDocumentChanged, doFireDocumentChanged, doFireDocumentChanged2, fireDocumentAboutToBeChanged, fireDocumentPartitioningChanged, fireDocumentPartitioningChanged, fireDocumentPartitioningChanged, fireRewriteSessionChanged, get, get, getActiveRewriteSession, getChar, getContentType, getContentType, getDefaultLineDelimiter, getDocumentListeners, getDocumentManagedPositions, getDocumentPartitioner, getDocumentPartitioner, getDocumentPartitioningListeners, getLegalContentTypes, getLegalContentTypes, getLegalLineDelimiters, getLength, getLineDelimiter, getLineInformation, getLineInformationOfOffset, getLineLength, getLineOffset, getLineOfOffset, getModificationStamp, getNumberOfLines, getNumberOfLines, getPartition, getPartition, getPartitionings, getPositionCategories, getPositionUpdaters, getStore, getTracker, ignorePostNotificationReplaces, insertPositionUpdater, registerPostNotificationReplace, removeDocumentListener, removeDocumentPartitioningListener, removeDocumentRewriteSessionListener, removePositionCategory, removePositionUpdater, removePrenotifiedDocumentListener, repairLineInformation, replace, replace, resumeListenerNotification, resumePostNotificationProcessing, search, set, set, setDocumentPartitioner, setDocumentPartitioner, setInitialLineDelimiter, setLineTracker, setTextStore, startRewriteSession, startRewriteSessionOnPartitioners, startSequentialRewrite, stopListenerNotification, stopPostNotificationProcessing, stopRewriteSession, stopRewriteSessionOnPartitioners, stopSequentialRewrite, updateDocumentStructures, updatePositions |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.eclipse.jface.text.IDocument |
---|
addDocumentListener, addDocumentPartitioningListener, addPosition, addPosition, addPositionCategory, addPositionUpdater, addPrenotifiedDocumentListener, computeIndexInCategory, computeNumberOfLines, computePartitioning, containsPosition, containsPositionCategory, get, get, getChar, getContentType, getDocumentPartitioner, getLegalContentTypes, getLegalLineDelimiters, getLength, getLineDelimiter, getLineInformation, getLineInformationOfOffset, getLineLength, getLineOffset, getLineOfOffset, getNumberOfLines, getNumberOfLines, getPartition, getPositionCategories, getPositions, getPositionUpdaters, insertPositionUpdater, removeDocumentListener, removeDocumentPartitioningListener, removePosition, removePosition, removePositionCategory, removePositionUpdater, removePrenotifiedDocumentListener, replace, search, set, setDocumentPartitioner |
Methods inherited from interface org.eclipse.jface.text.IDocumentExtension3 |
---|
computePartitioning, getContentType, getDocumentPartitioner, getLegalContentTypes, getPartition, getPartitionings, setDocumentPartitioner |
Constructor Detail |
---|
@Inject public OCLinEcoreDocument(org.eclipse.xtext.ui.editor.model.DocumentTokenSource tokenSource, org.eclipse.xtext.ui.editor.model.edit.ITextEditComposer composer)
Method Detail |
---|
protected void checkForErrors(org.eclipse.emf.ecore.resource.Resource resource) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
protected org.eclipse.emf.ecore.xmi.XMLResource getPivotResouce() throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
public void saveAsEcore(java.io.Writer writer, org.eclipse.emf.common.util.URI ecoreURI) throws java.io.IOException, org.eclipse.core.runtime.CoreException
java.io.IOException
org.eclipse.core.runtime.CoreException
public void saveAsPivot(java.io.StringWriter writer) throws org.eclipse.core.runtime.CoreException, java.io.IOException
org.eclipse.core.runtime.CoreException
java.io.IOException
public void saveAsUML(java.io.Writer writer, org.eclipse.emf.common.util.URI umlURI) throws java.io.IOException, org.eclipse.core.runtime.CoreException
java.io.IOException
org.eclipse.core.runtime.CoreException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |