Package com._1c.g5.v8.dt.bsl.resource
Class BslResource
java.lang.Object
org.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
org.eclipse.xtext.resource.persistence.StorageAwareResource
org.eclipse.xtext.resource.DerivedStateAwareResource
com._1c.g5.v8.dt.bsl.resource.BslResource
- All Implemented Interfaces:
org.eclipse.emf.common.notify.Notifier
,org.eclipse.emf.ecore.resource.Resource
,org.eclipse.emf.ecore.resource.Resource.Internal
,org.eclipse.xtext.resource.IBatchLinkableResource
,org.eclipse.xtext.resource.ISynchronizable<BslResource>
public class BslResource
extends org.eclipse.xtext.resource.DerivedStateAwareResource
implements org.eclipse.xtext.resource.IBatchLinkableResource, org.eclipse.xtext.resource.ISynchronizable<BslResource>
Special
More light creating/deleting diagnostic error message
Special processing error for "semicolon"
DerivedStateAwareResource
for Bsl language More light creating/deleting diagnostic error message
Special processing error for "semicolon"
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclass
BslResource.CustomEAdapterList<E extends Object & org.eclipse.emf.common.notify.Adapter>
Nested classes/interfaces inherited from class org.eclipse.xtext.linking.lazy.LazyLinkingResource
org.eclipse.xtext.linking.lazy.LazyLinkingResource.CyclicLinkingException, org.eclipse.xtext.linking.lazy.LazyLinkingResource.DiagnosticMessageContext
Nested classes/interfaces inherited from class org.eclipse.emf.ecore.resource.impl.ResourceImpl
org.eclipse.emf.ecore.resource.impl.ResourceImpl.ContentsEList<E extends Object & org.eclipse.emf.ecore.EObject>, org.eclipse.emf.ecore.resource.impl.ResourceImpl.ModificationTrackingAdapter
Nested classes/interfaces inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EAdapterList<E extends Object & org.eclipse.emf.common.notify.Adapter>, org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EObservableAdapterList, org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EScannableAdapterList
Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.resource.Resource
org.eclipse.emf.ecore.resource.Resource.Diagnostic, org.eclipse.emf.ecore.resource.Resource.Factory, org.eclipse.emf.ecore.resource.Resource.Internal, org.eclipse.emf.ecore.resource.Resource.IOWrappedException
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Set<org.eclipse.xtext.util.Triple<org.eclipse.emf.ecore.EObject,
org.eclipse.emf.ecore.EReference, org.eclipse.xtext.nodemodel.INode>> protected org.eclipse.emf.ecore.resource.ResourceSet
The containing resource set.Fields inherited from class org.eclipse.xtext.resource.DerivedStateAwareResource
fullyInitialized, isInitializing
Fields inherited from class org.eclipse.xtext.resource.persistence.StorageAwareResource
UNRESOLVABLE_FRAGMENT
Fields inherited from class org.eclipse.xtext.linking.lazy.LazyLinkingResource
CYCLIC_LINKING_DECTECTION_COUNTER_LIMIT, cyclicLinkingDectectionCounterLimit, UNRESOLVEABLE_PROXIES_KEY
Fields inherited from class org.eclipse.xtext.resource.XtextResource
isUpdating, operationCanceledManager, 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, intrinsicIDToEObjectMap, isLoaded, isLoading, isModified, modificationTrackingAdapter, timeStamp, unloadingContents, uri
Fields inherited from class org.eclipse.emf.common.notify.impl.NotifierImpl
EDELIVER, eFlags, ELAST_NOTIFIER_FLAG
Fields inherited from interface org.eclipse.emf.ecore.resource.Resource
OPTION_CIPHER, OPTION_LINE_DELIMITER, OPTION_LINE_DELIMITER_UNSPECIFIED, 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Acquire read lock for local resolve cross reference.void
Acquire read lock for update operation of resource.protected void
org.eclipse.emf.common.notify.NotificationChain
basicSetResourceSet
(org.eclipse.emf.ecore.resource.ResourceSet resourceSet, org.eclipse.emf.common.notify.NotificationChain notifications) protected void
protected org.eclipse.emf.ecore.resource.Resource.Diagnostic
createDiagnostic
(org.eclipse.xtext.util.Triple<org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.EReference, org.eclipse.xtext.nodemodel.INode> triple, org.eclipse.xtext.diagnostics.DiagnosticMessage message) protected void
protected void
doLoad
(InputStream inputStream, Map<?, ?> options) protected void
doUnload()
org.eclipse.emf.common.util.EList<org.eclipse.emf.common.notify.Adapter>
protected org.eclipse.emf.common.notify.Adapter[]
protected boolean
<Result> Result
execute
(org.eclipse.xtext.util.concurrent.IUnitOfWork<Result, ? super BslResource> unit) org.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.EObject>
Gets the validation context holder adapter if presentprotected List<org.eclipse.emf.ecore.resource.Resource.Diagnostic>
getDiagnosticList
(org.eclipse.xtext.diagnostics.DiagnosticMessage message) org.eclipse.emf.ecore.EObject
getEObject
(String uriFragment) protected org.eclipse.emf.ecore.EObject
getEObject
(String uriFragment, org.eclipse.xtext.util.Triple<org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.EReference, org.eclipse.xtext.nodemodel.INode> triple) Source code gets fromLazyLinkingResource#getEObject(String uriFragment, Triple<EObject, EReference, INode> triple)
for replace collectionresolving
to the thread safe variantprotected org.eclipse.emf.ecore.EObject
getEObject
(List<String> uriFragmentPath) Returns the object based on the fragment path as a list of Strings.protected org.eclipse.emf.ecore.EObject
getEObjectForURIFragmentRootSegment
(String uriFragmentRootSegment) org.eclipse.xtext.util.CancelIndicator
Gets the external cancel indicator for this resource.org.eclipse.emf.common.notify.Adapter
Gets the language validation suppression context adapterint
Gets difference between new added text and replace text length in update operation for moduleint
Gets offset in the module for begin of last modificationgetLock()
Gets methods fromModule
by nameGets last reparsing method fromModule
org.eclipse.emf.ecore.resource.ResourceSet
org.eclipse.emf.ecore.EObject
getSourceEObject
(String uriFragment) GetsEObject
from resource byURI.fragment()
without installing lazy proxyURI
for the resource itemsGets validation suppression line rangesgetURIFragmentByContainer
(org.eclipse.emf.ecore.EObject eObject) Gets fragment of the uri forEObject
without usingIFragmentProvider
protected org.eclipse.emf.ecore.EObject
handleCyclicResolution
(org.eclipse.xtext.util.Triple<org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.EReference, org.eclipse.xtext.nodemodel.INode> triple) void
installDerivedState
(boolean preIndexingPhase) void
installProxiesForBlock
(Block block) protected void
installTypeState
(Module module, org.eclipse.xtext.util.CancelIndicator monitor) Install type system for BSL moduleboolean
Checks that resource needs deep analyze processing.boolean
Checks that system of type, cross reference serializer and building types of contextDef was endedboolean
Checks that resolve cross reference forgetReparseMethod()
have been doneboolean
Checks that resource processing in multi threadboolean
boolean
Checks that resolve cross reference for all resource have been donestatic boolean
Checks if the single thread mode flag is enabledvoid
linkBatched
(org.eclipse.xtext.util.CancelIndicator monitor) void
localResolveCrossReference
(org.eclipse.xtext.util.CancelIndicator cancelIndicator) Resolve cross reference for onlygetReparseMethod()
void
Releases read lock for local resolve cross reference SeeacquireLocalResolveCrossReferencLock()
void
Releases read lock forupdate operation of resource.protected void
removeDiagnostic
(org.eclipse.xtext.util.Triple<org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.EReference, org.eclipse.xtext.nodemodel.INode> triple) void
void
Removes current previously installed cancel indicatorstatic void
Cleans the single thread mode flag, if anyvoid
resolveImportedNames
(org.eclipse.xtext.util.CancelIndicator monitor) Resolves imported namesvoid
resolveLazyCrossReferences
(org.eclipse.xtext.util.CancelIndicator mon) void
setContextHolder
(IBslValidationContributor.ContextHolderAdapter contextHolderAdapter) Sets the validation context holder adaptervoid
setDeepAnalysis
(boolean isDeepAnalysis) Sets that resource needs deep analyze.void
setGlobalResourceOperationCancelIndicator
(org.eclipse.xtext.util.CancelIndicator cancelIndicator) Sets the external cancel indicator for this resource.void
setLanguageSuppressionContext
(org.eclipse.emf.common.notify.Adapter languageSuppressionContext) Sets the language validation suppression context adaptervoid
setMultiThreadProcessing
(boolean multiThreadProcessing) Sets that resource processing in multi threadstatic void
Sets the single thread mode flagvoid
Sets validation suppression line rangesvoid
Skips all cachedMethod
s of resourcevoid
protected void
updateInternalState
(org.eclipse.xtext.parser.IParseResult oldParseResult, org.eclipse.xtext.parser.IParseResult newParseResult) Methods inherited from class org.eclipse.xtext.resource.DerivedStateAwareResource
clearInternalState, discardDerivedState, doDiscardDerivedState, doGetContents, getUnloadingContents, getURIFragmentRootSegment, isFullyInitialized, isInitializing, setDerivedStateComputer, setFullyInitialized, updateInternalState
Methods inherited from class org.eclipse.xtext.resource.persistence.StorageAwareResource
getPortableURIs, getResourceDescription, getResourceStorageFacade, isLoadedFromStorage, load, loadFromStorage, setIsLoadedFromStorage, setResourceDescription
Methods inherited from class org.eclipse.xtext.linking.lazy.LazyLinkingResource
addLazyProxyInformation, clearLazyProxyInformation, createAndAddDiagnostic, createAndAddDiagnostic, createDiagnosticMessage, createDiagnosticMessageContext, doResolveLazyCrossReference, getDiagnosticMessageProvider, getEncoder, getLazyProxyInformation, getLazyProxyInformation, getLinkingHelper, getLinkingService, getReferences, hasLazyProxyInformation, isEagerLinking, isPotentialLazyCrossReference, isUnresolveableProxyCacheable, markUnresolvable, removeLazyProxyInformation, resolveLazyCrossReference, setDiagnosticMessageProvider, setEagerLinking, setEncoder, setLinkingHelper, setLinkingService
Methods inherited from class org.eclipse.xtext.resource.XtextResource
addSyntaxDiagnostic, basicGetEObject, clearCache, createReader, doSave, getCache, getConcreteSyntaxValidator, getEncoding, getEntryPoint, getFragmentProvider, getLanguageName, getLinker, getModificationStamp, getParser, getParseResult, getResourceServiceProvider, getSerializer, getUnloader, getURIFragment, isValidationDisabled, reattachModificationTracker, relink, setCache, setEncodingFromOptions, setEntryPoint, setFragmentProvider, setInjectedParser, setLanguageName, setLinker, setModificationStamp, setParser, setParseResult, setResourceServiceProvider, setSerializer, setUnloader, setValidationDisabled, unload, validateConcreteSyntax
Methods inherited from class org.eclipse.emf.ecore.resource.impl.ResourceImpl
addModificationTrackingAdapters, attached, attachedHelper, createModificationTrackingAdapter, delete, detached, detachedHelper, getAllContents, getAllProperContents, getAllProperContents, getDefaultURIConverter, getEObjectByID, getErrors, getIDForEObject, getIntrinsicIDToEObjectMap, getTimeStamp, getURI, getURIConverter, getWarnings, handleLoadResponse, handleSaveResponse, isAttachedDetachedHelperRequired, isContentZipEntry, isLoaded, isLoading, isModified, isTrackingModification, load, mergeMaps, newContentZipEntry, removeModificationTrackingAdapters, save, save, saveOnlyIfChangedWithFileBuffer, saveOnlyIfChangedWithMemoryBuffer, setIntrinsicIDToEObjectMap, setLoaded, setModified, setTimeStamp, setTrackingModification, setURI, supportIDRelativeURIFragmentPaths, toKeyString, toString, unload, unloaded, useZip
Methods inherited from class org.eclipse.emf.common.notify.impl.NotifierImpl
eBasicAdapters, eDeliver, eSetDeliver
Methods inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
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
eDeliver, eNotify, eSetDeliver
-
Field Details
-
resolving
protected Set<org.eclipse.xtext.util.Triple<org.eclipse.emf.ecore.EObject,org.eclipse.emf.ecore.EReference, resolvingorg.eclipse.xtext.nodemodel.INode>> -
unresolving
-
resourceSet
protected org.eclipse.emf.ecore.resource.ResourceSet resourceSetThe containing resource set.- See Also:
-
-
Constructor Details
-
BslResource
public BslResource()
-
-
Method Details
-
resetSingleThreadMode
public static void resetSingleThreadMode()Cleans the single thread mode flag, if any -
setSingleThreadMode
public static void setSingleThreadMode()Sets the single thread mode flag -
isSingleThreadMode
public static boolean isSingleThreadMode()Checks if the single thread mode flag is enabled -
linkBatched
public void linkBatched(org.eclipse.xtext.util.CancelIndicator monitor) - Specified by:
linkBatched
in interfaceorg.eclipse.xtext.resource.IBatchLinkableResource
-
resolveImportedNames
public void resolveImportedNames(org.eclipse.xtext.util.CancelIndicator monitor) Resolves imported names- Parameters:
monitor
- currentCancelIndicator
, maybenull
-
getContents
public org.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.EObject> getContents()- Specified by:
getContents
in interfaceorg.eclipse.emf.ecore.resource.Resource
- Overrides:
getContents
in classorg.eclipse.xtext.resource.DerivedStateAwareResource
-
getLock
- Specified by:
getLock
in interfaceorg.eclipse.xtext.resource.ISynchronizable<BslResource>
-
execute
public <Result> Result execute(org.eclipse.xtext.util.concurrent.IUnitOfWork<Result, ? super BslResource> unit) throws Exception- Specified by:
execute
in interfaceorg.eclipse.xtext.resource.ISynchronizable<BslResource>
- Throws:
Exception
-
isMultiThreadProcessing
public boolean isMultiThreadProcessing()Checks that resource processing in multi thread- Returns:
true
if resource processing in multi thread,false
otherwise
-
setMultiThreadProcessing
public void setMultiThreadProcessing(boolean multiThreadProcessing) Sets that resource processing in multi thread- Parameters:
multiThreadProcessing
-true
if resource must be processed in multi thread
-
getEObject
- Specified by:
getEObject
in interfaceorg.eclipse.emf.ecore.resource.Resource
- Overrides:
getEObject
in classorg.eclipse.xtext.resource.persistence.StorageAwareResource
-
getSourceEObject
GetsEObject
from resource byURI.fragment()
without installing lazy proxyURI
for the resource items- Parameters:
uriFragment
- uri fragmentURI.fragment()
for getting resourceEObject
, cannot benull
- Returns:
EObject
corresponding to theURI
fragment ornull
if object wasn't found
-
reparse
- Overrides:
reparse
in classorg.eclipse.xtext.resource.XtextResource
- Throws:
IOException
-
update
- Overrides:
update
in classorg.eclipse.xtext.resource.XtextResource
-
getLastUpdatePosition
public int getLastUpdatePosition()Gets offset in the module for begin of last modification- Returns:
- offset in the module for begin of last modification
-
getURIFragmentByContainer
Gets fragment of the uri forEObject
without usingIFragmentProvider
- Parameters:
eObject
-EObject
for gettingURI
fragment, cannot benull
- Returns:
- fragment of the uri for
EObject
, nevernull
-
getLastUpdateContentShift
public int getLastUpdateContentShift()Gets difference between new added text and replace text length in update operation for module- Returns:
- difference between new added text and replace text length
-
acquireUpdateLock
public void acquireUpdateLock()Acquire read lock for update operation of resource. Seeupdate(int, int, String)
which protected by write lock. Use this method for getting always actual state ofIParseResult
of the resource Client should callreleaseUpdateLock()
after processing actualIParseResult
will be end -
releaseUpdateLock
public void releaseUpdateLock()Releases read lock forupdate operation of resource. SeeacquireUpdateLock()
-
acquireLocalResolveCrossReferencLock
public void acquireLocalResolveCrossReferencLock()Acquire read lock for local resolve cross reference. SeelocalResolveCrossReference(CancelIndicator)
which protected by write lock. Use this method for resolve cross reference in one reparce method, seegetReparseMethod()
Client should callreleaseLocalResolveCrossReferenceLock()
after processing reparce method will be end -
releaseLocalResolveCrossReferenceLock
public void releaseLocalResolveCrossReferenceLock()Releases read lock for local resolve cross reference SeeacquireLocalResolveCrossReferencLock()
-
resolveLazyCrossReferences
public void resolveLazyCrossReferences(org.eclipse.xtext.util.CancelIndicator mon) - Overrides:
resolveLazyCrossReferences
in classorg.eclipse.xtext.linking.lazy.LazyLinkingResource
-
installDerivedState
public void installDerivedState(boolean preIndexingPhase) - Overrides:
installDerivedState
in classorg.eclipse.xtext.resource.DerivedStateAwareResource
-
installProxiesForBlock
- Parameters:
block
-Block
for installing lazy proxies, cannot benull
-
getMethod
Gets methods fromModule
by name- Parameters:
name
- name of the method, can't benull
- Returns:
- list of the methods with name equals to
name
, cannot benull
if there is no methods with the name
-
isOnlyMethodReparse
public boolean isOnlyMethodReparse() -
getReparseMethod
Gets last reparsing method fromModule
- Returns:
- last reparsing method from
Module
, can benull
ifisOnlyMethodReparse()
returnfalse
-
isLinkedBatch
public boolean isLinkedBatch()Checks that system of type, cross reference serializer and building types of contextDef was ended- Returns:
true
if system of type, cross reference serializer and building types of contextDef was ended,false
otherwise
-
skipCachedMethods
public void skipCachedMethods()Skips all cachedMethod
s of resource -
isDeepAnalysing
public boolean isDeepAnalysing()Checks that resource needs deep analyze processing. Deep analyzing includes full processing in Type System, computing all references description, and full validation with all check modes- Returns:
true
if resource needs deep analyze processing,false
otherwise
-
setDeepAnalysis
public void setDeepAnalysis(boolean isDeepAnalysis) Sets that resource needs deep analyze. Deep analyzing includes full processing in Type System, computing all references description, and full validation with all check modes- Parameters:
isDeepAnalysis
-true
if that resource needs deep analyze,false
otherwise
-
isLocalResolveCrossReference
public boolean isLocalResolveCrossReference()Checks that resolve cross reference forgetReparseMethod()
have been done- Returns:
true
if resolve cross reference have been done forgetReparseMethod()
,false
otherwise
-
isResolveCrossReference
public boolean isResolveCrossReference()Checks that resolve cross reference for all resource have been done- Returns:
true
if resolve cross reference have been done for all resource,false
otherwise
-
localResolveCrossReference
public void localResolveCrossReference(org.eclipse.xtext.util.CancelIndicator cancelIndicator) Resolve cross reference for onlygetReparseMethod()
- Parameters:
cancelIndicator
-CancelIndicator
for cancel resolve cross reference, cannot benull
-
setGlobalResourceOperationCancelIndicator
public void setGlobalResourceOperationCancelIndicator(org.eclipse.xtext.util.CancelIndicator cancelIndicator) Sets the external cancel indicator for this resource. This cancel indicator may be used to interrupt long operations gracefully- Parameters:
cancelIndicator
- The cancel indicator to set. May not benull
-
getGlobalResourceOperationCancelIndicator
public org.eclipse.xtext.util.CancelIndicator getGlobalResourceOperationCancelIndicator()Gets the external cancel indicator for this resource. This cancel indicator may be used to interrupt long operations gracefully- Returns:
- cancelIndicator The cancel indicator. Never
null
, may returnCancelIndicator#NullImpl
-
resetGlobalResourceOperationCancelIndicator
public void resetGlobalResourceOperationCancelIndicator()Removes current previously installed cancel indicator -
setSuppressionRanges
public void setSuppressionRanges(Map<String, Collection<BslSuppressionProvider.BslSuppressionRange>> ranges) Sets validation suppression line ranges- Parameters:
ranges
- new validation suppression ranges for set, cannot benull
-
getSuppressionRanges
Gets validation suppression line ranges- Returns:
- map of error code to collection of validation suppression range, can be
null
-
getContextHolder
Gets the validation context holder adapter if present- Returns:
- The context holder adapter. May be
null
-
setContextHolder
Sets the validation context holder adapter- Parameters:
contextHolderAdapter
- actual context holder adapter. May benull
-
getLanguageSuppressionContext
public org.eclipse.emf.common.notify.Adapter getLanguageSuppressionContext()Gets the language validation suppression context adapter- Parameters:
The
- language validation suppression context adapter. May benull
-
setLanguageSuppressionContext
public void setLanguageSuppressionContext(org.eclipse.emf.common.notify.Adapter languageSuppressionContext) Sets the language validation suppression context adapter- Parameters:
languageSuppressionContext
- actual language validation suppression context adapter. May benull
-
eAdapters
public org.eclipse.emf.common.util.EList<org.eclipse.emf.common.notify.Adapter> eAdapters()- Specified by:
eAdapters
in interfaceorg.eclipse.emf.common.notify.Notifier
- Overrides:
eAdapters
in classorg.eclipse.emf.common.notify.impl.NotifierImpl
-
eBasicAdapterArray
protected org.eclipse.emf.common.notify.Adapter[] eBasicAdapterArray()- Overrides:
eBasicAdapterArray
in classorg.eclipse.emf.common.notify.impl.BasicNotifierImpl
-
eBasicHasAdapters
protected boolean eBasicHasAdapters()- Overrides:
eBasicHasAdapters
in classorg.eclipse.emf.common.notify.impl.BasicNotifierImpl
-
getEObject
Returns the object based on the fragment path as a list of Strings.- Overrides:
getEObject
in classorg.eclipse.emf.ecore.resource.impl.ResourceImpl
-
getEObjectForURIFragmentRootSegment
protected org.eclipse.emf.ecore.EObject getEObjectForURIFragmentRootSegment(String uriFragmentRootSegment) - Overrides:
getEObjectForURIFragmentRootSegment
in classorg.eclipse.xtext.resource.DerivedStateAwareResource
-
doLinking
protected void doLinking()- Overrides:
doLinking
in classorg.eclipse.xtext.linking.lazy.LazyLinkingResource
-
getUnresolvableURIFragments
- Overrides:
getUnresolvableURIFragments
in classorg.eclipse.xtext.resource.persistence.StorageAwareResource
-
getEObject
protected org.eclipse.emf.ecore.EObject getEObject(String uriFragment, org.eclipse.xtext.util.Triple<org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.EReference, throws AssertionErrororg.eclipse.xtext.nodemodel.INode> triple) Source code gets fromLazyLinkingResource#getEObject(String uriFragment, Triple<EObject, EReference, INode> triple)
for replace collectionresolving
to the thread safe variant- Overrides:
getEObject
in classorg.eclipse.xtext.linking.lazy.LazyLinkingResource
- Throws:
AssertionError
-
handleCyclicResolution
protected org.eclipse.emf.ecore.EObject handleCyclicResolution(org.eclipse.xtext.util.Triple<org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.EReference, throws AssertionErrororg.eclipse.xtext.nodemodel.INode> triple) - Overrides:
handleCyclicResolution
in classorg.eclipse.xtext.linking.lazy.LazyLinkingResource
- Throws:
AssertionError
-
installTypeState
Install type system for BSL module- Parameters:
module
- BSL module
-
createDiagnostic
protected org.eclipse.emf.ecore.resource.Resource.Diagnostic createDiagnostic(org.eclipse.xtext.util.Triple<org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.EReference, org.eclipse.xtext.nodemodel.INode> triple, org.eclipse.xtext.diagnostics.DiagnosticMessage message) - Overrides:
createDiagnostic
in classorg.eclipse.xtext.linking.lazy.LazyLinkingResource
-
removeDiagnostic
protected void removeDiagnostic(org.eclipse.xtext.util.Triple<org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.EReference, org.eclipse.xtext.nodemodel.INode> triple) - Overrides:
removeDiagnostic
in classorg.eclipse.xtext.linking.lazy.LazyLinkingResource
-
addSyntaxErrors
protected void addSyntaxErrors()- Overrides:
addSyntaxErrors
in classorg.eclipse.xtext.resource.XtextResource
-
getDiagnosticList
protected List<org.eclipse.emf.ecore.resource.Resource.Diagnostic> getDiagnosticList(org.eclipse.xtext.diagnostics.DiagnosticMessage message) throws AssertionError - Overrides:
getDiagnosticList
in classorg.eclipse.xtext.linking.lazy.LazyLinkingResource
- Throws:
AssertionError
-
updateInternalState
protected void updateInternalState(org.eclipse.xtext.parser.IParseResult oldParseResult, org.eclipse.xtext.parser.IParseResult newParseResult) - Overrides:
updateInternalState
in classorg.eclipse.xtext.resource.DerivedStateAwareResource
-
clearErrorsAndWarnings
protected void clearErrorsAndWarnings()- Overrides:
clearErrorsAndWarnings
in classorg.eclipse.xtext.resource.XtextResource
-
doUnload
protected void doUnload()- Overrides:
doUnload
in classorg.eclipse.xtext.resource.DerivedStateAwareResource
-
doLoad
- Overrides:
doLoad
in classorg.eclipse.xtext.linking.lazy.LazyLinkingResource
- Throws:
IOException
-
basicSetResourceSet
public org.eclipse.emf.common.notify.NotificationChain basicSetResourceSet(org.eclipse.emf.ecore.resource.ResourceSet resourceSet, org.eclipse.emf.common.notify.NotificationChain notifications) - Specified by:
basicSetResourceSet
in interfaceorg.eclipse.emf.ecore.resource.Resource.Internal
- Overrides:
basicSetResourceSet
in classorg.eclipse.emf.ecore.resource.impl.ResourceImpl
-
getResourceSet
public org.eclipse.emf.ecore.resource.ResourceSet getResourceSet()- Specified by:
getResourceSet
in interfaceorg.eclipse.emf.ecore.resource.Resource
- Overrides:
getResourceSet
in classorg.eclipse.emf.ecore.resource.impl.ResourceImpl
-