Example #1
0
 /** {@inheritDoc} */
 public void writeFile(IFile resource, IPath destinationPath) throws CoreException {
   try {
     fileExporter.write(resource, destinationPath.toString());
   } catch (IOException ex) {
     throw PharUIUtil.createCoreException(ex.getLocalizedMessage(), ex);
   }
 }
Example #2
0
 /**
  * {@inheritDoc}
  *
  * @throws IOException
  */
 public void writeStub(IStub stub, IProgressMonitor progressMonitor) throws CoreException {
   try {
     fileExporter.writeStub(stub);
   } catch (IOException ex) {
     throw PharUIUtil.createCoreException(ex.getLocalizedMessage(), ex);
   }
 }
Example #3
0
  /** {@inheritDoc} */
  public void close() throws CoreException {
    if (fileExporter != null) {
      try {

        fileExporter.finished();
        registerInWorkspaceIfNeeded();
      } catch (IOException ex) {
        throw PharUIUtil.createCoreException(ex.getLocalizedMessage(), ex);
      }
    }
  }
Example #4
0
  public void writeSignature(IProgressMonitor monitor) throws CoreException {
    if (fileExporter != null) {
      try {

        // if (fJarPackage.isUseSignature()) {
        fileExporter.writeSignature();
        // }
      } catch (IOException ex) {
        throw PharUIUtil.createCoreException(ex.getLocalizedMessage(), ex);
      }
    }
  }