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:
parent
d75f0dbf2e
commit
15989a01cf
5 changed files with 0 additions and 49 deletions
|
@ -103,30 +103,6 @@ public class TerminalViewPlugin extends AbstractUIPlugin {
|
|||
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,
|
||||
String strDir, HashMap map) throws MalformedURLException {
|
||||
URL url;
|
||||
|
|
|
@ -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/buffer/size = false
|
||||
org.eclipse.tm.terminal/debug/log/VT100Backend = false
|
||||
org.eclipse.tm.terminal/debug/use_old_implementation = false
|
|
@ -61,16 +61,6 @@ public class TerminalPlugin extends AbstractUIPlugin {
|
|||
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) {
|
||||
String strEnabled = Platform.getDebugOption(strOption);
|
||||
if (strEnabled == null)
|
||||
|
|
|
@ -791,11 +791,6 @@ public class VT100TerminalControl implements ITerminalControlForText, ITerminalC
|
|||
protected boolean isLogCharEnabled() {
|
||||
return TerminalPlugin.isOptionEnabled(Logger.TRACE_DEBUG_LOG_CHAR);
|
||||
}
|
||||
protected boolean isLogBufferSizeEnabled() {
|
||||
return TerminalPlugin
|
||||
.isOptionEnabled(Logger.TRACE_DEBUG_LOG_BUFFER_SIZE);
|
||||
}
|
||||
|
||||
|
||||
public OutputStream getOutputStream() {
|
||||
if(getTerminalConnector()!=null)
|
||||
|
|
|
@ -42,11 +42,7 @@ import org.eclipse.tm.internal.terminal.control.impl.TerminalPlugin;
|
|||
* </p>
|
||||
*/
|
||||
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_BUFFER_SIZE = "org.eclipse.tm.terminal/debug/log/buffer/size"; //$NON-NLS-1$
|
||||
|
||||
private static PrintStream logStream;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue