1 10 package org.eclipse.core.internal.content; 11 12 import java.util.Date ; 13 import org.eclipse.osgi.util.NLS; 14 15 public class ContentMessages extends NLS { 17 18 21 public static final String OWNER_NAME = "org.eclipse.core.contenttype"; 23 private static final String BUNDLE_NAME = "org.eclipse.core.internal.content.messages"; 25 public static String content_badInitializationData; 27 public static String content_errorReadingContents; 28 public static String content_errorLoadingSettings; 29 public static String content_errorSavingSettings; 30 public static String content_invalidContentDescriber; 31 public static String content_invalidProperty; 32 public static String content_missingIdentifier; 33 public static String content_missingName; 34 public static String content_parserConfiguration; 35 36 static { 37 reloadMessages(); 39 } 40 41 public static void reloadMessages() { 42 NLS.initializeMessages(BUNDLE_NAME, ContentMessages.class); 43 } 44 45 49 public static void message(String message) { 50 StringBuffer buffer = new StringBuffer (); 51 buffer.append(new Date (System.currentTimeMillis())); 52 buffer.append(" - ["); buffer.append(Thread.currentThread().getName()); 54 buffer.append("] "); buffer.append(message); 56 System.out.println(buffer.toString()); 57 } 58 } | Popular Tags |