mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Cosmetics.
This commit is contained in:
parent
9678044b11
commit
15a3ca473a
1 changed files with 42 additions and 44 deletions
|
@ -18,7 +18,8 @@ import org.eclipse.cdt.core.parser.IProblem;
|
||||||
* @author ddaoust
|
* @author ddaoust
|
||||||
*/
|
*/
|
||||||
public class TraceUtil {
|
public class TraceUtil {
|
||||||
public static void outputTrace(IParserLogService log, String preface, IProblem problem, String first, String second, String third ) {
|
public static void outputTrace(IParserLogService log, String preface, IProblem problem,
|
||||||
|
String first, String second, String third) {
|
||||||
if (log.isTracing()) {
|
if (log.isTracing()) {
|
||||||
StringBuffer buffer = new StringBuffer();
|
StringBuffer buffer = new StringBuffer();
|
||||||
if (preface != null) buffer.append(preface);
|
if (preface != null) buffer.append(preface);
|
||||||
|
@ -29,6 +30,7 @@ public class TraceUtil {
|
||||||
log.traceLog(buffer.toString());
|
log.traceLog(buffer.toString());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void outputTrace(IParserLogService log, String preface, IProblem problem) {
|
public static void outputTrace(IParserLogService log, String preface, IProblem problem) {
|
||||||
if (log.isTracing()) {
|
if (log.isTracing()) {
|
||||||
StringBuffer buffer = new StringBuffer();
|
StringBuffer buffer = new StringBuffer();
|
||||||
|
@ -37,7 +39,9 @@ public class TraceUtil {
|
||||||
log.traceLog(buffer.toString());
|
log.traceLog(buffer.toString());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
public static void outputTrace(IParserLogService log, String preface, IProblem problem, char[] first, String second, String third ) {
|
|
||||||
|
public static void outputTrace(IParserLogService log, String preface, IProblem problem,
|
||||||
|
char[] first, String second, String third) {
|
||||||
if (log.isTracing()) {
|
if (log.isTracing()) {
|
||||||
StringBuffer buffer = new StringBuffer();
|
StringBuffer buffer = new StringBuffer();
|
||||||
if (preface != null) buffer.append(preface);
|
if (preface != null) buffer.append(preface);
|
||||||
|
@ -48,31 +52,25 @@ public class TraceUtil {
|
||||||
log.traceLog(buffer.toString());
|
log.traceLog(buffer.toString());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
public static void outputTrace(IParserLogService log, String preface, IProblem problem, int first, String second, int third ) {
|
|
||||||
|
public static void outputTrace(IParserLogService log, String preface, IProblem problem,
|
||||||
|
int first, String second, int third) {
|
||||||
if (log.isTracing()) {
|
if (log.isTracing()) {
|
||||||
outputTrace(
|
outputTrace(log, preface, problem, Integer.toString(first), second, Integer.toString(third));
|
||||||
log,
|
|
||||||
preface,
|
|
||||||
problem,
|
|
||||||
Integer.toString( first ),
|
|
||||||
second,
|
|
||||||
Integer.toString( third ) );
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
public static void outputTrace(IParserLogService log, String preface, String first, String second, String third ) {
|
|
||||||
|
public static void outputTrace(IParserLogService log, String preface, String first,
|
||||||
|
String second, String third) {
|
||||||
outputTrace(log, preface, null, first, second, third);
|
outputTrace(log, preface, null, first, second, third);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void outputTrace(IParserLogService log, String preface) {
|
public static void outputTrace(IParserLogService log, String preface) {
|
||||||
if( log.isTracing() ){
|
if (log.isTracing() && preface != null) {
|
||||||
if ( preface != null )
|
|
||||||
log.traceLog(preface);
|
log.traceLog(preface);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/**
|
|
||||||
* @param logService
|
|
||||||
* @param preface
|
|
||||||
* @param data
|
|
||||||
*/
|
|
||||||
public static void outputTrace(IParserLogService logService, String preface, String data) {
|
public static void outputTrace(IParserLogService logService, String preface, String data) {
|
||||||
if (logService.isTracing()) {
|
if (logService.isTracing()) {
|
||||||
StringBuffer buffer = new StringBuffer();
|
StringBuffer buffer = new StringBuffer();
|
||||||
|
|
Loading…
Add table
Reference in a new issue