MessageDialog.openInformation(new Shell(), "EOGenerator Finished", outputStr);
EOGeneratorResultsDialog resultsDialog = new EOGeneratorResultsDialog(new Shell(), outputStr); resultsDialog.open();
    public IStatus runInWorkspace(IProgressMonitor _monitor) throws CoreException {      try {        EOGeneratorModel eogenModel = EOGeneratorEditor.createEOGeneratorModel(myEOGenFile);        String eogenFileContents = eogenModel.writeToString(Preferences.getEOGeneratorPath(), Preferences.getEOGeneratorTemplateDir(), Preferences.getEOGeneratorJavaTemplate(), Preferences.getEOGeneratorSubclassJavaTemplate());        List commandsList = new LinkedList();        CommandLineTokenizer tokenizer = new CommandLineTokenizer(eogenFileContents);        while (tokenizer.hasMoreTokens()) {          commandsList.add(tokenizer.nextToken());        }        String[] tokens = (String[]) commandsList.toArray(new String[commandsList.size()]);        IProject project = myEOGenFile.getProject();        Process process = Runtime.getRuntime().exec(tokens, null, project.getLocation().toFile());        InputStream inputstream = process.getInputStream();        InputStreamReader inputstreamreader = new InputStreamReader(inputstream);        BufferedReader bufferedreader = new BufferedReader(inputstreamreader);        StringBuffer output = new StringBuffer();        output.append("EOGenerator Finished!\n\n");                String line;        while ((line = bufferedreader.readLine()) != null) {          output.append(line);        }        try {          if (process.waitFor() != 0) {            output.append("\n\nExit value = " + process.exitValue());          }        }        catch (InterruptedException e) {          System.err.println(e);        }                project.getFolder(new Path(eogenModel.getDestination())).refreshLocal(IResource.DEPTH_INFINITE, _monitor);        project.getFolder(new Path(eogenModel.getSubclassDestination())).refreshLocal(IResource.DEPTH_INFINITE, _monitor);        final String outputStr = output.toString();        Display.getDefault().asyncExec(new Runnable() {          public void run() {            MessageDialog.openInformation(new Shell(), "EOGenerator Finished", outputStr);          }        });      }      catch (Throwable t) {        throw new ResourceException(IStatus.ERROR, myEOGenFile.getFullPath(), "Failed to generate.", t);      }      return new Status(IStatus.OK, org.objectstyle.wolips.eogenerator.ui.Activator.PLUGIN_ID, IStatus.OK, "Done", null);    }