mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-22 22:22:11 +02:00
Cosmetics
Change-Id: I990c8920e32d8895a0f84d8911c2448281d53161
This commit is contained in:
parent
a44bef00d6
commit
7a9f9ebcc4
7 changed files with 17 additions and 35 deletions
|
@ -6,13 +6,11 @@
|
|||
* http://www.eclipse.org/legal/epl-v10.html
|
||||
*
|
||||
* Contributors:
|
||||
* IBM Corporation - Initial API and implementation
|
||||
* IBM Corporation - Initial API and implementation
|
||||
*******************************************************************************/
|
||||
package org.eclipse.cdt.internal.core.model;
|
||||
|
||||
|
||||
public enum DebugLogConstants {
|
||||
|
||||
PARSER,
|
||||
MODEL,
|
||||
SCANNER,
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -6,9 +6,8 @@
|
|||
* http://www.eclipse.org/legal/epl-v10.html
|
||||
*
|
||||
* Contributors:
|
||||
* Markus Schorn - initial API and implementation
|
||||
* Markus Schorn - initial API and implementation
|
||||
*******************************************************************************/
|
||||
|
||||
package org.eclipse.cdt.core.parser;
|
||||
|
||||
import org.eclipse.cdt.internal.core.dom.parser.ParserLogServiceWrapper;
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
* http://www.eclipse.org/legal/epl-v10.html
|
||||
*
|
||||
* Contributors:
|
||||
* IBM Rational Software - Initial API and implementation
|
||||
* IBM Rational Software - Initial API and implementation
|
||||
*******************************************************************************/
|
||||
package org.eclipse.cdt.core.parser;
|
||||
|
||||
|
|
|
@ -19,6 +19,7 @@ public class ParserLogServiceWrapper extends AbstractParserLogService {
|
|||
public ParserLogServiceWrapper(IParserLogService log) {
|
||||
fDelegate= log;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isTracing() {
|
||||
return fDelegate.isTracing();
|
||||
|
|
|
@ -6,50 +6,35 @@
|
|||
* http://www.eclipse.org/legal/epl-v10.html
|
||||
*
|
||||
* Contributors:
|
||||
* IBM - Initial API and implementation
|
||||
* IBM - Initial API and implementation
|
||||
*******************************************************************************/
|
||||
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)
|
||||
*/
|
||||
public class StdoutLogService extends AbstractParserLogService {
|
||||
@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();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -6,9 +6,9 @@
|
|||
* http://www.eclipse.org/legal/epl-v10.html
|
||||
*
|
||||
* Contributors:
|
||||
* IBM Rational Software - Initial API and implementation
|
||||
* Markus Schorn (Wind River Systems)
|
||||
* Mike Kucera (IBM)
|
||||
* IBM Rational Software - Initial API and implementation
|
||||
* Markus Schorn (Wind River Systems)
|
||||
* Mike Kucera (IBM)
|
||||
*******************************************************************************/
|
||||
package org.eclipse.cdt.internal.core.parser;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue