ConsoleView.findInActivePerspective();
Display display = Display.getCurrent(); if (display == null) { display = Display.getDefault(); } display.syncExec(new Runnable() { public void run() { ConsoleView.findInActivePerspective(); } });
    public void errorLineReceived(String line) {        ConsoleView.appendConsoleLines(ConsoleDocument.ERROR, "  " + line); //$NON-NLS-1$                // we show the console view if something goes wrong        ConsoleView.findInActivePerspective();    }