ccs.cpc.impl
Class HelperAppRuntime

java.lang.Object
  extended by ccs.cpc.ViewerRuntime
      extended by ccs.cpc.impl.HelperAppRuntime

public final class HelperAppRuntime
extends ViewerRuntime


Field Summary
(package private) static Plugin hplugin
           
 
Fields inherited from class ccs.cpc.ViewerRuntime
target
 
Constructor Summary
HelperAppRuntime(HelperApp ha, PluginCallback callback, VFile target)
           
 
Method Summary
 void cleanup()
          Cleanup after the viewer.
 void kill()
          Destroy the viewer.
 void launch()
          Prepare and launch the viewer.
 void waitFor()
          block until the viewer has finished.
 
Methods inherited from class ccs.cpc.ViewerRuntime
getTarget, setTarget
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

hplugin

static Plugin hplugin
Constructor Detail

HelperAppRuntime

HelperAppRuntime(HelperApp ha,
                 PluginCallback callback,
                 VFile target)
Method Detail

launch

public void launch()
            throws java.io.IOException
Prepare and launch the viewer.

Specified by:
launch in class ViewerRuntime
Throws:
java.io.IOException

waitFor

public void waitFor()
             throws java.lang.InterruptedException
block until the viewer has finished. The throws clause is a convenience for implementors; it is not expected that a ReaperThread (which will call this) will ever be interrupted.

Specified by:
waitFor in class ViewerRuntime
Throws:
java.lang.InterruptedException

kill

public void kill()
Destroy the viewer. This must cause waitFor to return.

Specified by:
kill in class ViewerRuntime

cleanup

public void cleanup()
             throws java.io.IOException
Cleanup after the viewer. Called from the reaper thread. This is called after the viewer has finished (either naturally or by being killed. The default implementation does nothing.

Overrides:
cleanup in class ViewerRuntime
Throws:
java.io.IOException