|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.emf.common.notify.impl.BasicNotifierImpl
org.eclipse.emf.common.notify.impl.NotifierImpl
org.eclipse.emf.ecore.resource.impl.ResourceImpl
org.eclipse.xtext.resource.XtextResource
org.eclipse.xtext.linking.lazy.LazyLinkingResource
de.cau.cs.kieler.synccharts.text.kits.KitsResource
public class KitsResource
A customized LazyLinkingResource
. Modifies the parsed model and fixes some runtime bugs.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.eclipse.xtext.linking.lazy.LazyLinkingResource |
---|
org.eclipse.xtext.linking.lazy.LazyLinkingResource.DiagnosticMessageContext |
Nested classes/interfaces inherited from class org.eclipse.emf.ecore.resource.impl.ResourceImpl |
---|
ResourceImpl.ContentsEList<E extends Object & EObject>, ResourceImpl.ModificationTrackingAdapter |
Nested classes/interfaces inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl |
---|
BasicNotifierImpl.EAdapterList<E extends Object & Adapter>, BasicNotifierImpl.EObservableAdapterList |
Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.resource.Resource |
---|
Resource.Diagnostic, Resource.Factory, Resource.Internal, Resource.IOWrappedException |
Field Summary |
---|
Fields inherited from class org.eclipse.xtext.resource.XtextResource |
---|
isUpdating, OPTION_ENCODING, OPTION_FORMAT, OPTION_RESOLVE_ALL, OPTION_SERIALIZATION_OPTIONS |
Fields inherited from class org.eclipse.emf.ecore.resource.impl.ResourceImpl |
---|
contents, defaultDeleteOptions, defaultLoadOptions, defaultSaveOptions, errors, intrinsicIDToEObjectMap, isLoaded, isLoading, isModified, modificationTrackingAdapter, resourceSet, timeStamp, unloadingContents, uri, warnings |
Fields inherited from class org.eclipse.emf.common.notify.impl.NotifierImpl |
---|
eAdapters, EDELIVER, eFlags, ELAST_NOTIFIER_FLAG |
Fields inherited from interface org.eclipse.emf.ecore.resource.Resource |
---|
OPTION_CIPHER, OPTION_SAVE_ONLY_IF_CHANGED, OPTION_SAVE_ONLY_IF_CHANGED_FILE_BUFFER, OPTION_SAVE_ONLY_IF_CHANGED_MEMORY_BUFFER, OPTION_ZIP, RESOURCE__CONTENTS, RESOURCE__ERRORS, RESOURCE__IS_LOADED, RESOURCE__IS_MODIFIED, RESOURCE__IS_TRACKING_MODIFICATION, RESOURCE__RESOURCE_SET, RESOURCE__TIME_STAMP, RESOURCE__URI, RESOURCE__WARNINGS |
Constructor Summary | |
---|---|
KitsResource()
|
Method Summary | |
---|---|
protected void |
doLinking()
Starts model consolidation after LazyLinkingResource.doLinking() . |
protected void |
doLoad(InputStream inputStream,
Map<?,?> options)
Delegates to LazyLinkingResource#doLoad(InputStream inputStream, Map, ?> options)
for debugging purposes. |
void |
doSave(OutputStream outputStream,
Map<?,?> options)
Registers SaveOptions and delegates to
XtextResource.doSave(OutputStream, Map) |
void |
update(int offset,
int replacedTextLength,
String newText)
Delegates do XtextResource.update(int, int, String) for debugging purposes. |
protected void |
updateInternalState(org.eclipse.xtext.parser.IParseResult parseResult)
Eliminates an ugly bug within the calling method XtextResource.update(int, int, String) :If a parsing round fails entirely, the last previously successfully deducted EObject will remain in contents though the parseResult is empty! After the next successful parser run the new EObject will be added to contents regardless the non-emptiness of contents. |
Methods inherited from class org.eclipse.xtext.linking.lazy.LazyLinkingResource |
---|
createAndAddDiagnostic, createDiagnostic, createDiagnosticMessage, createDiagnosticMessageContext, getDiagnosticList, getDiagnosticMessageProvider, getEncoder, getEObject, getLinkingHelper, getLinkingService, getReferences, handleCyclicResolution, isEagerLinking, isUnresolveableProxyCacheable, removeDiagnostic, resolveLazyCrossReference, resolveLazyCrossReferences, setDiagnosticMessageProvider, setEagerLinking, setEncoder, setLinkingHelper, setLinkingService |
Methods inherited from class org.eclipse.xtext.resource.XtextResource |
---|
addSyntaxErrors, clearErrorsAndWarnings, clearInternalState, doUnload, getCache, getConcreteSyntaxValidator, getEncoding, getFragmentProvider, getLanguageName, getLinker, getParser, getParseResult, getResourceServiceProvider, getSerializer, getUnloader, getURIFragment, isValidationDisabled, reattachModificationTracker, reparse, setCache, setEncodingFromOptions, setFragmentProvider, setInjectedParser, setLinker, setParser, setParseResult, setResourceServiceProvider, setSerializer, setUnloader, setValidationDisabled, unload, updateInternalState, validateConcreteSyntax |
Methods inherited from class org.eclipse.emf.common.notify.impl.NotifierImpl |
---|
eAdapters, eBasicAdapters, eDeliver, eSetDeliver |
Methods inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl |
---|
eBasicAdapterArray, eBasicHasAdapters, eNotificationRequired, eNotify |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.eclipse.emf.common.notify.Notifier |
---|
eAdapters, eDeliver, eNotify, eSetDeliver |
Constructor Detail |
---|
public KitsResource()
Method Detail |
---|
protected void doLoad(InputStream inputStream, Map<?,?> options) throws IOException
LazyLinkingResource#doLoad(InputStream inputStream, Map, ?> options)
for debugging purposes.
doLoad
in class org.eclipse.xtext.linking.lazy.LazyLinkingResource
IOException
public void update(int offset, int replacedTextLength, String newText)
XtextResource.update(int, int, String)
for debugging purposes.
update
in class org.eclipse.xtext.resource.XtextResource
protected void doLinking()
LazyLinkingResource.doLinking()
.
doLinking
in class org.eclipse.xtext.linking.lazy.LazyLinkingResource
public void doSave(OutputStream outputStream, Map<?,?> options) throws IOException
SaveOptions
and delegates to
XtextResource.doSave(OutputStream, Map)
doSave
in class org.eclipse.xtext.resource.XtextResource
IOException
protected void updateInternalState(org.eclipse.xtext.parser.IParseResult parseResult)
XtextResource.update(int, int, String)
:
updateInternalState
in class org.eclipse.xtext.resource.XtextResource
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |