Package org.eclipse.xtext.util

Examples of org.eclipse.xtext.util.RuntimeIOException


      if (outputConfig.isCreateOutputDirectory()) {
        try {
          createContainer(container);
          return true;
        } catch (CoreException e) {
          throw new RuntimeIOException(e);
        }
      } else {
        return false;
      }
    }
View Full Code Here


          updateTraceInformation(traceFile, postProcessedContent, outputConfig.isSetDerivedProperty());
        if (callBack != null)
          callBack.afterFileCreation(file);
      }
    } catch (CoreException e) {
      throw new RuntimeIOException(e);
    } catch (IOException e) {
      throw new RuntimeIOException(e);
    }
  }
View Full Code Here

        }
        if (callBack != null)
          callBack.afterFileCreation(file);
      }
    } catch (CoreException e) {
      throw new RuntimeIOException(e);
    } catch (IOException e) {
      throw new RuntimeIOException(e);
    }
  }
View Full Code Here

  protected StringInputStream getInputStream(String contentsAsString, String encoding) {
    try {
      return new StringInputStream(contentsAsString, encoding);
    } catch (UnsupportedEncodingException e) {
      throw new RuntimeIOException(e);
    }
  }
View Full Code Here

  public void deleteFile(String fileName, String outputName) {
    try {
      IFile file = getFile(fileName, outputName);
      deleteFile(file, monitor);
    } catch (CoreException e) {
      throw new RuntimeIOException(e);
    }
  }
View Full Code Here

  public InputStream readBinaryFile(String fileName, String outputCfgName) throws RuntimeIOException {
    try {
      IFile file = getFile(fileName, outputCfgName);
      return file.getContents();
    } catch (CoreException e) {
      throw new RuntimeIOException(e);
    }
  }
View Full Code Here

        return new String(bytes, encoding);
      } finally {
        inputStream.close();
      }
    } catch (IOException e) {
      throw new RuntimeIOException(e);
    } catch (CoreException e) {
      throw new RuntimeIOException(e);
    }
  }
View Full Code Here

TOP

Related Classes of org.eclipse.xtext.util.RuntimeIOException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.