1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-09 10:46:02 +02:00

Terminal: Clean up terminal control trace options

This commit is contained in:
Uwe Stieber 2015-02-23 07:36:33 +01:00
parent d75f0dbf2e
commit 15989a01cf
5 changed files with 0 additions and 49 deletions

View file

@ -103,30 +103,6 @@ public class TerminalViewPlugin extends AbstractUIPlugin {
return fDefault; return fDefault;
} }
public static boolean isLogInfoEnabled() {
return isOptionEnabled(Logger.TRACE_DEBUG_LOG_INFO);
}
public static boolean isLogErrorEnabled() {
return isOptionEnabled(Logger.TRACE_DEBUG_LOG_ERROR);
}
public static boolean isLogEnabled() {
return isOptionEnabled(Logger.TRACE_DEBUG_LOG);
}
public static boolean isOptionEnabled(String strOption) {
String strEnabled;
Boolean boolEnabled;
boolean bEnabled;
strEnabled = Platform.getDebugOption(strOption);
if (strEnabled == null)
return false;
boolEnabled = new Boolean(strEnabled);
bEnabled = boolEnabled.booleanValue();
return bEnabled;
}
protected void loadImageRegistry(ImageRegistry imageRegistry, protected void loadImageRegistry(ImageRegistry imageRegistry,
String strDir, HashMap map) throws MalformedURLException { String strDir, HashMap map) throws MalformedURLException {
URL url; URL url;

View file

@ -1,8 +1,2 @@
org.eclipse.tm.terminal/debug/log/directory = /tmp/
org.eclipse.tm.terminal/debug/log = true
org.eclipse.tm.terminal/debug/log/error = true
org.eclipse.tm.terminal/debug/log/info = false
org.eclipse.tm.terminal/debug/log/char = false org.eclipse.tm.terminal/debug/log/char = false
org.eclipse.tm.terminal/debug/log/buffer/size = false
org.eclipse.tm.terminal/debug/log/VT100Backend = false org.eclipse.tm.terminal/debug/log/VT100Backend = false
org.eclipse.tm.terminal/debug/use_old_implementation = false

View file

@ -61,16 +61,6 @@ public class TerminalPlugin extends AbstractUIPlugin {
super.stop(context); super.stop(context);
} }
public static boolean isLogInfoEnabled() {
return isOptionEnabled(Logger.TRACE_DEBUG_LOG_INFO);
}
public static boolean isLogErrorEnabled() {
return isOptionEnabled(Logger.TRACE_DEBUG_LOG_ERROR);
}
public static boolean isLogEnabled() {
return isOptionEnabled(Logger.TRACE_DEBUG_LOG);
}
public static boolean isOptionEnabled(String strOption) { public static boolean isOptionEnabled(String strOption) {
String strEnabled = Platform.getDebugOption(strOption); String strEnabled = Platform.getDebugOption(strOption);
if (strEnabled == null) if (strEnabled == null)

View file

@ -791,11 +791,6 @@ public class VT100TerminalControl implements ITerminalControlForText, ITerminalC
protected boolean isLogCharEnabled() { protected boolean isLogCharEnabled() {
return TerminalPlugin.isOptionEnabled(Logger.TRACE_DEBUG_LOG_CHAR); return TerminalPlugin.isOptionEnabled(Logger.TRACE_DEBUG_LOG_CHAR);
} }
protected boolean isLogBufferSizeEnabled() {
return TerminalPlugin
.isOptionEnabled(Logger.TRACE_DEBUG_LOG_BUFFER_SIZE);
}
public OutputStream getOutputStream() { public OutputStream getOutputStream() {
if(getTerminalConnector()!=null) if(getTerminalConnector()!=null)

View file

@ -42,11 +42,7 @@ import org.eclipse.tm.internal.terminal.control.impl.TerminalPlugin;
* </p> * </p>
*/ */
public final class Logger { public final class Logger {
public static final String TRACE_DEBUG_LOG = "org.eclipse.tm.terminal/debug/log"; //$NON-NLS-1$
public static final String TRACE_DEBUG_LOG_ERROR = "org.eclipse.tm.terminal/debug/log/error"; //$NON-NLS-1$
public static final String TRACE_DEBUG_LOG_INFO = "org.eclipse.tm.terminal/debug/log/info"; //$NON-NLS-1$
public static final String TRACE_DEBUG_LOG_CHAR = "org.eclipse.tm.terminal/debug/log/char"; //$NON-NLS-1$ public static final String TRACE_DEBUG_LOG_CHAR = "org.eclipse.tm.terminal/debug/log/char"; //$NON-NLS-1$
public static final String TRACE_DEBUG_LOG_BUFFER_SIZE = "org.eclipse.tm.terminal/debug/log/buffer/size"; //$NON-NLS-1$
private static PrintStream logStream; private static PrintStream logStream;