Class PearExportOperation

java.lang.Object
org.apache.uima.pear.generate.PearExportOperation
All Implemented Interfaces:
org.eclipse.jface.operation.IRunnableWithProgress

public class PearExportOperation extends Object implements org.eclipse.jface.operation.IRunnableWithProgress
IRunnableWithProgress that creates a zip file containing a given set of resources *.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final boolean
    whether zip contents should be compressed.
    protected final org.eclipse.core.resources.IFile[]
    An array of files that should be included in the zip file.
    protected final String
    Filename for the destination zip file.
    protected final org.eclipse.core.resources.IContainer
    Prefix to strip off from the provided files paths.
  • Constructor Summary

    Constructors
    Constructor
    Description
    PearExportOperation(org.eclipse.core.resources.IFile[] exports, org.eclipse.core.resources.IContainer virtualRoot, String filename, boolean compress)
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    run(org.eclipse.core.runtime.IProgressMonitor monitor)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • fExports

      protected final org.eclipse.core.resources.IFile[] fExports
      An array of files that should be included in the zip file.
    • fRoot

      protected final org.eclipse.core.resources.IContainer fRoot
      Prefix to strip off from the provided files paths.
    • fFilename

      protected final String fFilename
      Filename for the destination zip file.
    • fCompress

      protected final boolean fCompress
      whether zip contents should be compressed.
  • Constructor Details

    • PearExportOperation

      public PearExportOperation(org.eclipse.core.resources.IFile[] exports, org.eclipse.core.resources.IContainer virtualRoot, String filename, boolean compress)
      Constructor.
      Parameters:
      exports - An array of files that should be included in the zip file
      virtualRoot - Prefix to strip off from the provided files paths, e.g. if '/foo/bar/baz.txt' is included and '/foo' is the virtual root, than '/bar/baz.txt' will be created in the zip file
      filename - Filename for the destination zip file
      compress - true if the zip contents should be compressed, false otherwise
  • Method Details