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 void
addUri(java.lang.String uri)
a regular expression matching against theResource
's URIs.protected boolean
isMatch(org.eclipse.emf.ecore.resource.Resource resource)
void
preInvoke()
implementers can check their configuration and throwIllegalStateException
when problems exists.void
put(org.eclipse.emf.mwe.core.WorkflowContext ctx, IResourceDescriptions descriptions, org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
implementers can modify the ctx (i.e.void
setSlot(java.lang.String slot)
theWorkflowContext
's slot to store the foundResource
s in.
-
-
-
Method Detail
-
setSlot
public void setSlot(java.lang.String slot)
theWorkflowContext
's slot to store the foundResource
s 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:ISlotEntry
implementers can modify the ctx (i.e. add new entries based on the configuration)- Specified by:
put
in 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:ISlotEntry
implementers can check their configuration and throwIllegalStateException
when problems exists.- Specified by:
preInvoke
in interfaceISlotEntry
-
-