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

Cosmetics

Change-Id: I990c8920e32d8895a0f84d8911c2448281d53161
This commit is contained in:
Sergey Prigogin 2017-02-05 10:20:02 -08:00 committed by Gerrit Code Review @ Eclipse.org
parent a44bef00d6
commit 7a9f9ebcc4
7 changed files with 17 additions and 35 deletions

View file

@ -10,9 +10,7 @@
*******************************************************************************/
package org.eclipse.cdt.internal.core.model;
public enum DebugLogConstants {
PARSER,
MODEL,
SCANNER,

View file

@ -12,7 +12,6 @@
* IBM Corporation - EFS support
* Marc-Andre Laperle (Ericsson)
*******************************************************************************/
package org.eclipse.cdt.internal.core.model;
import java.io.BufferedInputStream;
@ -46,11 +45,11 @@ import org.osgi.service.prefs.Preferences;
import com.ibm.icu.text.MessageFormat;
public class Util implements ICLogConstants {
public static boolean VERBOSE_PARSER = false;
public static boolean VERBOSE_SCANNER = false;
public static boolean VERBOSE_MODEL = false;
public static boolean VERBOSE_DELTA = false;
public static boolean PARSER_EXCEPTIONS= false;
public static boolean VERBOSE_PARSER;
public static boolean VERBOSE_SCANNER;
public static boolean VERBOSE_MODEL;
public static boolean VERBOSE_DELTA;
public static boolean PARSER_EXCEPTIONS;
public static String LINE_SEPARATOR = System.getProperty("line.separator"); //$NON-NLS-1$
@ -222,9 +221,9 @@ public class Util implements ICLogConstants {
public static boolean isActive(DebugLogConstants client) {
if (client.equals(DebugLogConstants.PARSER)) {
return VERBOSE_PARSER;
} else if (client.equals(DebugLogConstants.SCANNER))
} else if (client.equals(DebugLogConstants.SCANNER)) {
return VERBOSE_SCANNER;
else if (client.equals(DebugLogConstants.MODEL)) {
} else if (client.equals(DebugLogConstants.MODEL)) {
return VERBOSE_MODEL;
}
return false;

View file

@ -8,7 +8,6 @@
* Contributors:
* Markus Schorn - initial API and implementation
*******************************************************************************/
package org.eclipse.cdt.core.parser;
import org.eclipse.cdt.internal.core.dom.parser.ParserLogServiceWrapper;

View file

@ -19,6 +19,7 @@ public class ParserLogServiceWrapper extends AbstractParserLogService {
public ParserLogServiceWrapper(IParserLogService log) {
fDelegate= log;
}
@Override
public boolean isTracing() {
return fDelegate.isTracing();

View file

@ -13,43 +13,28 @@ package org.eclipse.cdt.internal.core.indexer;
import org.eclipse.cdt.core.parser.AbstractParserLogService;
/**
* @author crecoskie
*
* Implementation of parser log service logging to stdout.
*/
public class StdoutLogService extends AbstractParserLogService {
/* (non-Javadoc)
* @see org.eclipse.cdt.core.parser.AbstractParserLogService#errorLog(java.lang.String)
*/
@Override
public void errorLog(String message) {
System.out.println("Parser Error Trace: " + message); //$NON-NLS-1$
System.out.flush();
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.parser.AbstractParserLogService#isTracing()
*/
@Override
public boolean isTracing() {
return true;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.parser.AbstractParserLogService#isTracingExceptions()
*/
@Override
public boolean isTracingExceptions() {
return true;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.core.parser.AbstractParserLogService#traceLog(java.lang.String)
*/
@Override
public void traceLog(String message) {
System.out.println("Parser Trace: " + message); //$NON-NLS-1$
System.out.flush();
}
}