Class CloningBasedFakeContextResourcesProvider
java.lang.Object
org.yakindu.base.xtext.utils.jface.viewers.context.CloningBasedFakeContextResourcesProvider
- All Implemented Interfaces:
IXtextFakeContextResourcesProvider
public class CloningBasedFakeContextResourcesProvider
extends Object
implements IXtextFakeContextResourcesProvider
An
IXtextFakeContextResourcesProvider that populates the fake
ResourceSet with 'clones' of the passed in context resources.-
Field Summary
Fields inherited from interface org.yakindu.base.xtext.utils.jface.viewers.context.IXtextFakeContextResourcesProvider
NULL_CONTEXT_PROVIDER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcreateContextResourceCopyInResourceSet(ResourceSet resourceSet, Resource contextResource) voidpopulateFakeResourceSet(ResourceSet fakeResourceSet, org.eclipse.xtext.resource.XtextResource fakeResource) Populate the fake resource set with additional resources that may be needed for scoping/linking.
-
Constructor Details
-
CloningBasedFakeContextResourcesProvider
-
-
Method Details
-
populateFakeResourceSet
public void populateFakeResourceSet(ResourceSet fakeResourceSet, org.eclipse.xtext.resource.XtextResource fakeResource) Description copied from interface:IXtextFakeContextResourcesProviderPopulate the fake resource set with additional resources that may be needed for scoping/linking. The fake resource used will be passe in as context information. Note that at the time this callback is invoked, the fake resource will not be contained in the fake resource set, because that may cause problems when working with the resource set (as the fake resource does actually not exist in the file system).- Specified by:
populateFakeResourceSetin interfaceIXtextFakeContextResourcesProvider- Parameters:
fakeResourceSet- theResourceSetto populatefakeResource- the fakeXtextResourceas context information.
-
createContextResourceCopyInResourceSet
protected void createContextResourceCopyInResourceSet(ResourceSet resourceSet, Resource contextResource)
-