1 11 12 package org.eclipse.core.commands.util; 13 14 24 public final class Tracing { 25 26 29 public static final String SEPARATOR = " >>> "; 31 47 public static final void printTrace(final String component, 48 final String message) { 49 StringBuffer buffer = new StringBuffer (); 50 if (component != null) { 51 buffer.append(component); 52 } 53 if ((component != null) && (message != null)) { 54 buffer.append(SEPARATOR); 55 } 56 if (message != null) { 57 buffer.append(message); 58 } 59 System.out.println(buffer.toString()); 60 } 61 62 65 private Tracing() { 66 } 68 } 69 | Popular Tags |