try {
ILaunch launch = PythonFileRunner.launch(manageDotPy, command);
//After the command completes, refresh and put message for user.
final IProcess[] processes = launch.getProcesses();
ProcessConsoleManager consoleManager = DebugUIPlugin.getDefault().getProcessConsoleManager();
if (processes.length >= 1) {
IConsole console = consoleManager.getConsole(processes[0]);
final IOConsoleOutputStream outputStream = ((IOConsole) console).newOutputStream();
Job j = new Job("Refresh on finish") {
protected IStatus run(IProgressMonitor monitor) {