Package org.eclipse.xtext.mwe
Class ResourceLoadingSlotEntry
- java.lang.Object
-
- org.eclipse.xtext.mwe.ResourceLoadingSlotEntry
-
- All Implemented Interfaces:
ISlotEntry
public class ResourceLoadingSlotEntry extends java.lang.Object implements ISlotEntry
-
-
Constructor Summary
Constructors Constructor Description ResourceLoadingSlotEntry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddUri(java.lang.String uri)a regular expression matching against theResource's URIs.protected booleanisMatch(org.eclipse.emf.ecore.resource.Resource resource)voidpreInvoke()implementers can check their configuration and throwIllegalStateExceptionwhen problems exists.voidput(org.eclipse.emf.mwe.core.WorkflowContext ctx, IResourceDescriptions descriptions, org.eclipse.emf.ecore.resource.ResourceSet resourceSet)implementers can modify the ctx (i.e.voidsetSlot(java.lang.String slot)theWorkflowContext's slot to store the foundResources in.
-
-
-
Method Detail
-
setSlot
public void setSlot(java.lang.String slot)
theWorkflowContext's slot to store the foundResources in.
-
addUri
public void addUri(java.lang.String uri)
a regular expression matching against theResource's URIs.
-
put
public void put(org.eclipse.emf.mwe.core.WorkflowContext ctx, IResourceDescriptions descriptions, org.eclipse.emf.ecore.resource.ResourceSet resourceSet)Description copied from interface:ISlotEntryimplementers can modify the ctx (i.e. add new entries based on the configuration)- Specified by:
putin interfaceISlotEntry- Parameters:
ctx- - the workflow context to modifydescriptions- - the index stateresourceSet- - the resource set containing the loaded resources
-
isMatch
protected boolean isMatch(org.eclipse.emf.ecore.resource.Resource resource)
-
preInvoke
public void preInvoke()
Description copied from interface:ISlotEntryimplementers can check their configuration and throwIllegalStateExceptionwhen problems exists.- Specified by:
preInvokein interfaceISlotEntry
-
-