Package org.eclipse.ui.console

Examples of org.eclipse.ui.console.ConsolePlugin


    public ErlConsoleManager() {
        consoles = Maps.newHashMap();
        pages = Maps.newHashMap();

        final ConsolePlugin consolePlugin = ConsolePlugin.getDefault();
        conMan = consolePlugin.getConsoleManager();

        BackendCore.getBackendManager().addBackendListener(this);
    }
View Full Code Here


  public synchronized void outPutEnd() {
    end = true;
  }
 
  private MessageConsole findConsole(String name) {
    ConsolePlugin plugin = ConsolePlugin.getDefault();
    IConsoleManager conMan = plugin.getConsoleManager();
    IConsole[] existing = conMan.getConsoles();

    for (IConsole iCons : existing)
      if (name.equals(iCons.getName()))
        return (MessageConsole) iCons;
View Full Code Here

  private static void clearConsoleLink(Handler handler) {
    Logger.getLogger(LogAction.LOGGER_NAME).removeHandler(handler);
  }

  private static MessageConsole findConsole(String name) {
    ConsolePlugin plugin = ConsolePlugin.getDefault();
    IConsoleManager conMan = plugin.getConsoleManager();
    IConsole[] existing = conMan.getConsoles();
    for (int i = 0; i < existing.length; i++)
      if (name.equals(existing[i].getName()))
        return (MessageConsole) existing[i];
    MessageConsole myConsole = new MessageConsole(name, null);
View Full Code Here

  public static void log(int level, String message, Throwable e){
    plugin.getLog().log(new Status(level, PLUGIN_ID, message, e));
  }
  public static MessageConsole findConsole(String name) {
    MessageConsole myConsole = null;
    ConsolePlugin plugin = ConsolePlugin.getDefault();
    if (plugin != null){
      IConsoleManager conMan = plugin.getConsoleManager();
      IConsole[] existing = conMan.getConsoles();
      for (int i = 0; i < existing.length; i++)
        if (name.equals(existing[i].getName()))
          return (MessageConsole) existing[i];
      //no console found, so create a new one
View Full Code Here

    plugin.getLog().log(new Status(level, PLUGIN_ID, message, e));
  }
 
  public static MessageConsole findConsole(String name) {
    MessageConsole myConsole = null;
    ConsolePlugin plugin = ConsolePlugin.getDefault();
    if (plugin != null){
      IConsoleManager conMan = plugin.getConsoleManager();
      IConsole[] existing = conMan.getConsoles();
      for (int i = 0; i < existing.length; i++)
        if (name.equals(existing[i].getName()))
          return (MessageConsole) existing[i];
      //no console found, so create a new one
View Full Code Here

    StatusManager.getManager().handle(status, StatusManager.LOG | StatusManager.SHOW);
  }
 
  public static MessageConsole findConsole(String name) {
    MessageConsole myConsole = null;
    ConsolePlugin plugin = ConsolePlugin.getDefault();
    if (plugin != null){
      IConsoleManager conMan = plugin.getConsoleManager();
      IConsole[] existing = conMan.getConsoles();
      for (int i = 0; i < existing.length; i++)
        if (name.equals(existing[i].getName()))
          return (MessageConsole) existing[i];
      //no console found, so create a new one
View Full Code Here

public class ExternalVMConsoleHandler {
  private static final String CONSOLE_NAME = "External VM";
  private static MessageConsole console = null;

  private static void init() {
    ConsolePlugin plugin = ConsolePlugin.getDefault();
    IConsoleManager conMan = plugin.getConsoleManager();
    IConsole[] existing = conMan.getConsoles();
    for (int i = 0; i < existing.length; i++){
      //System.out.println(existing[i].getName());
      if (CONSOLE_NAME.equals(existing[i].getName())){
        console = (MessageConsole) existing[i];
View Full Code Here

public class CompilerConsoleHandler {
  private static final String CONSOLE_NAME = "Compiler";
  private static MessageConsole console = null;

  private static void init() {
    ConsolePlugin plugin = ConsolePlugin.getDefault();
    IConsoleManager conMan = plugin.getConsoleManager();
    IConsole[] existing = conMan.getConsoles();
    for (int i = 0; i < existing.length; i++){
      //System.out.println(existing[i].getName());
      if (CONSOLE_NAME.equals(existing[i].getName())){
        console = (MessageConsole) existing[i];
View Full Code Here

 
  /**
   *
   */
  public SarosConsole() {
    ConsolePlugin plugin = ConsolePlugin.getDefault();
    IConsoleManager conMan = plugin.getConsoleManager();
    IConsole[] existing = conMan.getConsoles();
    for (int i = 0; i < existing.length; i++){
      //System.out.println(existing[i].getName());
      if (CONSOLE_NAME.equals(existing[i].getName())){
        console = (MessageConsole) existing[i];
View Full Code Here

    plugin.getLog().log(new Status(level, PLUGIN_ID, message, e));
  }
 
  public static MessageConsole findConsole(String name) {
    MessageConsole myConsole = null;
    ConsolePlugin plugin = ConsolePlugin.getDefault();
    if (plugin != null){
      IConsoleManager conMan = plugin.getConsoleManager();
      IConsole[] existing = conMan.getConsoles();
      for (int i = 0; i < existing.length; i++)
        if (name.equals(existing[i].getName()))
          return (MessageConsole) existing[i];
      //no console found, so create a new one
View Full Code Here

TOP

Related Classes of org.eclipse.ui.console.ConsolePlugin

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.