Class IXtextFile.ModifyingUnitOfWorkWithDelegate

    • Constructor Detail

      • ModifyingUnitOfWorkWithDelegate

        public ModifyingUnitOfWorkWithDelegate​(org.eclipse.xtext.util.concurrent.IUnitOfWork.Void<org.eclipse.xtext.resource.XtextResource> delegate)
        Creates a delegating undoable unit of work that will not be retried.
        Parameters:
        delegate - the delegate unit of work (not null)
      • ModifyingUnitOfWorkWithDelegate

        public ModifyingUnitOfWorkWithDelegate​(org.eclipse.xtext.util.concurrent.IUnitOfWork.Void<org.eclipse.xtext.resource.XtextResource> delegate,
                                               int maxRetries)
        Creates a delegating undoable unit of work that can be retried the given number of times.
        Parameters:
        delegate - the delegate unit of work (not null)
        maxRetries -
    • Method Detail

      • process

        public void process​(org.eclipse.xtext.resource.XtextResource resource)
                     throws Exception
        Specified by:
        process in class org.eclipse.xtext.util.concurrent.IUnitOfWork.Void<org.eclipse.xtext.resource.XtextResource>
        Throws:
        Exception