void closeConsole(OSGiConsole console) { synchronized (this) { if (console != fConsole) throw new IllegalArgumentException("Wrong console instance!"); //$NON-NLS-1$ fConsole = null; } fConsoleManager.removeConsoles(new IConsole[] {console}); } }
@Override public void stop(BundleContext context) throws Exception { if (fConsoleManager != null) { IConsole[] consoles = fConsoleManager.getConsoles(); if (consoles != null) { fConsoleManager.removeConsoles(consoles); } } super.stop(context); }
public void stop(BundleContext context) throws Exception { if (fConsoleManager != null) { IConsole[] consoles = fConsoleManager.getConsoles(); if (consoles != null) { fConsoleManager.removeConsoles(consoles); } } super.stop(context); }
public void run() { ConsolePlugin.getDefault().getConsoleManager().removeConsoles(new IConsole[]{fConsole}); } }
@Override public void run() { ConsolePlugin.getDefault().getConsoleManager().removeConsoles(new IConsole[]{fConsole}); } }
/** * Removes the console and document associated with the given process. * * @param iProcess process to clean up */ private void removeProcess(IProcess iProcess) { IConsole console = getConsole(iProcess); if (console != null) { IConsoleManager manager = ConsolePlugin.getDefault().getConsoleManager(); manager.removeConsoles(new IConsole[]{console}); } }
public void closeConsole() { IConsoleManager manager = ConsolePlugin.getDefault().getConsoleManager(); manager.removeConsoles(new IConsole[] {this}); ConsolePlugin.getDefault().getConsoleManager().addConsoleListener(this.newLifecycle()); }
ConsolePlugin.getDefault ().getConsoleManager ().removeConsoles ( new IConsole[] { this.createdConsole } ); this.createdConsole = null;
ConsolePlugin.getDefault ().getConsoleManager ().removeConsoles ( new IConsole[] { this.createdConsole } ); this.createdConsole = null;