IProcess[] processes = launch.getProcesses();
if (processes!=null) {
for (int i = 0; i < processes.length; i++) {
IProcess iProcess = processes[i];
try {
iProcess.terminate();
} catch (DebugException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}