/bundles/plugins-trunk/Console/console/bsh/waitForConsole.bsh

# · Unknown · 12 lines · 10 code · 2 blank · 0 comment · 0 complexity · 787b7769673b43b681bf7ebc40abfe05 MD5 · raw file

  1. /* Blocks until the current command finishes. */
  2. waitForConsole(View view)
  3. {
  4. import console.Shell;
  5. view.getDockableWindowManager().addDockableWindow("console");
  6. console = view.getDockableWindowManager().getDockable("console");
  7. console.getShell().waitFor(console);
  8. }
  9. help.waitForConsole
  10. = "usage: waitForConsole(View view)";