Class ResultSpyAction

java.lang.Object
org.eclipse.tycho.p2.tools.publisher.ResultSpyAction
All Implemented Interfaces:
org.eclipse.equinox.p2.publisher.IPublisherAction

public class ResultSpyAction extends Object implements org.eclipse.equinox.p2.publisher.IPublisherAction
This publisher action does nothing but storing the root IUs of the IPublisherResult instance used by the publisher. This is a workaround for missing getters in Publisher.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Collection<org.eclipse.equinox.p2.metadata.IInstallableUnit>
    Returns all IUs in the publisher result at the time when this action was invoked by the Publisher.
    Collection<org.eclipse.equinox.p2.metadata.IInstallableUnit>
    Returns the root IUs in the publisher result at the time when this action was invoked by the Publisher.
    org.eclipse.core.runtime.IStatus
    perform(org.eclipse.equinox.p2.publisher.IPublisherInfo info, org.eclipse.equinox.p2.publisher.IPublisherResult results, org.eclipse.core.runtime.IProgressMonitor monitor)
     

    Methods inherited from class java.lang.Object

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

    • ResultSpyAction

      public ResultSpyAction()
  • Method Details

    • perform

      public org.eclipse.core.runtime.IStatus perform(org.eclipse.equinox.p2.publisher.IPublisherInfo info, org.eclipse.equinox.p2.publisher.IPublisherResult results, org.eclipse.core.runtime.IProgressMonitor monitor)
      Specified by:
      perform in interface org.eclipse.equinox.p2.publisher.IPublisherAction
    • getRootIUs

      public Collection<org.eclipse.equinox.p2.metadata.IInstallableUnit> getRootIUs() throws IllegalStateException
      Returns the root IUs in the publisher result at the time when this action was invoked by the Publisher.
      Throws:
      IllegalStateException - if the action has not been performed.
    • getAllIUs

      public Collection<org.eclipse.equinox.p2.metadata.IInstallableUnit> getAllIUs() throws IllegalStateException
      Returns all IUs in the publisher result at the time when this action was invoked by the Publisher.
      Throws:
      IllegalStateException - if the action has not been performed.