com.sun.electric.tool.user
Class ExecMulti
java.lang.Object
com.sun.electric.tool.user.ExecMulti
- All Implemented Interfaces:
- Exec.FinishedListener
public class ExecMulti
- extends java.lang.Object
- implements Exec.FinishedListener
Run multiple external processes in sequence (serial).
Each external process can have Exec.FinishedListeners attached.
Those will get executed before the next process is run, assuming
that all processes and finished listeners have been added before
calling the start() method of this class.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExecMulti
public ExecMulti()
addExec
public void addExec(Exec e)
addExec
public void addExec(Exec e,
boolean ignoreExitValue)
addExec
public void addExec(Exec e,
java.lang.String preRunComment,
java.lang.String postRunComment,
boolean ignoreExitValue)
start
public void start()
processFinished
public void processFinished(Exec.FinishedEvent e)
- Specified by:
processFinished
in interface Exec.FinishedListener
addFinishedListener
public void addFinishedListener(Exec.FinishedListener a)
- Add a Exec.FinishedListener
- Parameters:
a
- the listener
removeFinishedListener
public void removeFinishedListener(Exec.FinishedListener a)
- Remove a Exec.FinishedListener
- Parameters:
a
- the listener