Commits

sk  committed 145d71c

Removed editor's console.

  • Participants
  • Parent commits 0ca052f

Comments (0)

Files changed (1)

File org.lispdev.editor/src/org/lispdev/editor/EditorPlugin.java

 package org.lispdev.editor;
 
-import java.io.PrintStream;
 import java.util.LinkedHashMap;
 import java.util.SortedSet;
 import java.util.TreeSet;
 import org.eclipse.swt.graphics.RGB;
 import org.eclipse.ui.plugin.AbstractUIPlugin;
 import org.lispdev.editor.preferences.Preference;
-import org.lispdev.editor.utils.ConsoleUtil;
 import org.lispdev.log.Trace;
 import org.lispdev.parser.nodes.TreeRoot;
 import org.lispdev.parser.tokens.TokenKey;
 import org.lispdev.parser.tokens.TokenString;
 import org.lispdev.parser.tokens.TokenSymbol;
 import org.lispdev.preferences.ItemListener;
+import org.lispdev.preferences.PreferenceItem;
 import org.lispdev.preferences.PreferencesPlugin;
-import org.lispdev.preferences.PreferenceItem;
 import org.lispdev.preferences.PreferencesService;
 import org.osgi.framework.BundleContext;
 
   // The plug-in ID
   public static final String ID = "org.lispdev.editor";
 
-  private static final String CONSOLE_NAME= "Lispdev Editor";
-
   private FontRegistry fFontRegistry;
 
-  private PrintStream sConsoleStream;
-
-  private static boolean EMIT_TIMING_INFO = false;
-
-  private static long PRE_STARTUP_TIME;
-
-  //private static long EDITOR_START_TIME;
-
-
   // The shared instance
   private static EditorPlugin plugin;
 
     return fFontRegistry;
   }
 
-  public PrintStream getConsoleStream()
-  {
-    if (sConsoleStream == null) {
-        sConsoleStream= ConsoleUtil.findConsoleStream(CONSOLE_NAME);
-    }
-    return sConsoleStream;
-  }
-
   @Override
   public void start(BundleContext context) throws Exception
   {
-    PRE_STARTUP_TIME= System.currentTimeMillis();
     super.start(context);
     plugin = this;
-
-    if (EMIT_TIMING_INFO)
-    {
-      getConsoleStream().println(
-          "Entered EditorPlugin.start(); time is " + PRE_STARTUP_TIME);
-    }
   }
 
 
     }
     return prefServices;
   }
-
-
-  // === some code for tracing
-  private PrintStream traceStream;
-
-  /**
-   * Sets stream for tracing done by EtTrace enums.
-   */
-  public void setTraceStream(PrintStream pr)
-  {
-    traceStream = pr;
-  }
-
-  /**
-   * Returns stream which receives tracing from EtTrace enums.
-   */
-  public PrintStream getTraceStream()
-  {
-    if( traceStream == null )
-    {
-      return System.out;
-    }
-    else
-    {
-      return traceStream;
-    }
-  }
-
-
 }