1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 14:42:11 +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

@ -6,13 +6,11 @@
* http://www.eclipse.org/legal/epl-v10.html * http://www.eclipse.org/legal/epl-v10.html
* *
* Contributors: * Contributors:
* IBM Corporation - Initial API and implementation * IBM Corporation - Initial API and implementation
*******************************************************************************/ *******************************************************************************/
package org.eclipse.cdt.internal.core.model; package org.eclipse.cdt.internal.core.model;
public enum DebugLogConstants { public enum DebugLogConstants {
PARSER, PARSER,
MODEL, MODEL,
SCANNER, SCANNER,

View file

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

View file

@ -6,9 +6,8 @@
* http://www.eclipse.org/legal/epl-v10.html * http://www.eclipse.org/legal/epl-v10.html
* *
* Contributors: * Contributors:
* Markus Schorn - initial API and implementation * Markus Schorn - initial API and implementation
*******************************************************************************/ *******************************************************************************/
package org.eclipse.cdt.core.parser; package org.eclipse.cdt.core.parser;
import org.eclipse.cdt.internal.core.dom.parser.ParserLogServiceWrapper; import org.eclipse.cdt.internal.core.dom.parser.ParserLogServiceWrapper;

View file

@ -6,7 +6,7 @@
* http://www.eclipse.org/legal/epl-v10.html * http://www.eclipse.org/legal/epl-v10.html
* *
* Contributors: * Contributors:
* IBM Rational Software - Initial API and implementation * IBM Rational Software - Initial API and implementation
*******************************************************************************/ *******************************************************************************/
package org.eclipse.cdt.core.parser; package org.eclipse.cdt.core.parser;

View file

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

View file

@ -6,50 +6,35 @@
* http://www.eclipse.org/legal/epl-v10.html * http://www.eclipse.org/legal/epl-v10.html
* *
* Contributors: * Contributors:
* IBM - Initial API and implementation * IBM - Initial API and implementation
*******************************************************************************/ *******************************************************************************/
package org.eclipse.cdt.internal.core.indexer; package org.eclipse.cdt.internal.core.indexer;
import org.eclipse.cdt.core.parser.AbstractParserLogService; import org.eclipse.cdt.core.parser.AbstractParserLogService;
/** /**
* @author crecoskie * Implementation of parser log service logging to stdout.
*
*/ */
public class StdoutLogService extends AbstractParserLogService{ public class StdoutLogService extends AbstractParserLogService {
/* (non-Javadoc)
* @see org.eclipse.cdt.core.parser.AbstractParserLogService#errorLog(java.lang.String)
*/
@Override @Override
public void errorLog(String message) { public void errorLog(String message) {
System.out.println("Parser Error Trace: " + message); //$NON-NLS-1$ System.out.println("Parser Error Trace: " + message); //$NON-NLS-1$
System.out.flush(); System.out.flush();
} }
/* (non-Javadoc)
* @see org.eclipse.cdt.core.parser.AbstractParserLogService#isTracing()
*/
@Override @Override
public boolean isTracing() { public boolean isTracing() {
return true; return true;
} }
/* (non-Javadoc)
* @see org.eclipse.cdt.core.parser.AbstractParserLogService#isTracingExceptions()
*/
@Override @Override
public boolean isTracingExceptions() { public boolean isTracingExceptions() {
return true; return true;
} }
/* (non-Javadoc)
* @see org.eclipse.cdt.core.parser.AbstractParserLogService#traceLog(java.lang.String)
*/
@Override @Override
public void traceLog(String message) { public void traceLog(String message) {
System.out.println("Parser Trace: " + message); //$NON-NLS-1$ System.out.println("Parser Trace: " + message); //$NON-NLS-1$
System.out.flush(); System.out.flush();
} }
} }

View file

@ -6,9 +6,9 @@
* http://www.eclipse.org/legal/epl-v10.html * http://www.eclipse.org/legal/epl-v10.html
* *
* Contributors: * Contributors:
* IBM Rational Software - Initial API and implementation * IBM Rational Software - Initial API and implementation
* Markus Schorn (Wind River Systems) * Markus Schorn (Wind River Systems)
* Mike Kucera (IBM) * Mike Kucera (IBM)
*******************************************************************************/ *******************************************************************************/
package org.eclipse.cdt.internal.core.parser; package org.eclipse.cdt.internal.core.parser;