this.editorProcess = pb.start();
// listen for the process exit so we can refresh the resource
ProcessExitDetector processExitDetector = new ProcessExitDetector(this.editorProcess);
processExitDetector.addProcessListener(new ProcessListener() {
public void processFinished(Process process) {
try {
windowFile.refreshLocal(IResource.DEPTH_ZERO, null);
} catch (CoreException e) {
ToolPlugin.showError("Error refreshing fsw file", e);