1 11 package org.eclipse.core.internal.preferences; 12 13 import java.util.Date ; 14 import org.eclipse.osgi.util.NLS; 15 16 public class PrefsMessages extends NLS { 18 21 public static final String OWNER_NAME = "org.eclipse.equinox.preferences"; 23 private static final String BUNDLE_NAME = "org.eclipse.core.internal.preferences.messages"; 25 public static String preferences_applyProblems; 27 public static String preferences_classCastScope; 28 public static String preferences_classCastListener; 29 public static String preferences_classCastFilterEntry; 30 public static String preferences_errorWriting; 31 public static String preferences_exportProblems; 32 public static String preferences_failedDelete; 33 public static String preferences_fileNotFound; 34 public static String preferences_importProblems; 35 public static String preferences_incompatible; 36 public static String preferences_invalidExtensionSuperclass; 37 public static String preferences_invalidFileFormat; 38 public static String preferences_loadException; 39 public static String preferences_matching; 40 public static String preferences_missingClassAttribute; 41 public static String preferences_missingScopeAttribute; 42 public static String noRegistry; 43 public static String preferences_removedNode; 44 public static String preferences_saveException; 45 public static String preferences_saveProblems; 46 public static String preferences_validate; 47 public static String preferences_validationException; 48 49 static { 50 reloadMessages(); 52 } 53 54 public static void reloadMessages() { 55 NLS.initializeMessages(BUNDLE_NAME, PrefsMessages.class); 56 } 57 58 62 public static void message(String message) { 63 StringBuffer buffer = new StringBuffer (); 64 buffer.append(new Date (System.currentTimeMillis())); 65 buffer.append(" - ["); buffer.append(Thread.currentThread().getName()); 67 buffer.append("] "); buffer.append(message); 69 System.out.println(buffer.toString()); 70 } 71 } 72 | Popular Tags |