Class BslSelectionByURI.ReadTextRegionLocation

  • All Implemented Interfaces:
    org.eclipse.xtext.util.concurrent.IUnitOfWork<org.eclipse.xtext.util.ITextRegion,​org.eclipse.xtext.resource.XtextResource>
    Enclosing class:
    BslSelectionByURI

    public static class BslSelectionByURI.ReadTextRegionLocation
    extends Object
    implements org.eclipse.xtext.util.concurrent.IUnitOfWork<org.eclipse.xtext.util.ITextRegion,​org.eclipse.xtext.resource.XtextResource>
    Special IUnitOfWork for select text by URI to model object
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.eclipse.xtext.util.concurrent.IUnitOfWork

        org.eclipse.xtext.util.concurrent.IUnitOfWork.Void<T extends Object>
    • Constructor Summary

      Constructors 
      Constructor Description
      ReadTextRegionLocation​(org.eclipse.emf.common.util.URI uri, int indexInList, org.eclipse.emf.ecore.EReference crossReference)
      Constructor by URI to the model object and its EReference
    • Constructor Detail

      • ReadTextRegionLocation

        public ReadTextRegionLocation​(org.eclipse.emf.common.util.URI uri,
                                      int indexInList,
                                      org.eclipse.emf.ecore.EReference crossReference)
        Constructor by URI to the model object and its EReference
        Parameters:
        uri - URI to the model item for selected its text presentation, cannot be null
        crossReference - EReference of selected object, can be null
        indexInList - index of object for selected, object will be selected from collection corresponding to the crossReference
    • Method Detail

      • exec

        public org.eclipse.xtext.util.ITextRegion exec​(org.eclipse.xtext.resource.XtextResource resource)
                                                throws Exception
        Specified by:
        exec in interface org.eclipse.xtext.util.concurrent.IUnitOfWork<org.eclipse.xtext.util.ITextRegion,​org.eclipse.xtext.resource.XtextResource>
        Throws:
        Exception