KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > ui > editors > text > TextEditorMessages


1 /*******************************************************************************
2  * Copyright (c) 2000, 2007 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.ui.editors.text;
12
13 import java.util.ResourceBundle JavaDoc;
14
15 import org.eclipse.osgi.util.NLS;
16
17 /**
18  * Helper class to get NLSed messages.
19  */

20 final class TextEditorMessages extends NLS {
21
22     private static final String JavaDoc BUNDLE_FOR_CONSTRUCTED_KEYS= "org.eclipse.ui.editors.text.ConstructedTextEditorMessages";//$NON-NLS-1$
23
private static ResourceBundle JavaDoc fgBundleForConstructedKeys= ResourceBundle.getBundle(BUNDLE_FOR_CONSTRUCTED_KEYS);
24
25     /**
26      * Returns the message bundle which contains constructed keys.
27      *
28      * @since 3.1
29      * @return the message bundle
30      */

31     public static ResourceBundle JavaDoc getBundleForConstructedKeys() {
32         return fgBundleForConstructedKeys;
33     }
34
35     private static final String JavaDoc BUNDLE_NAME= TextEditorMessages.class.getName();
36
37     private TextEditorMessages() {
38         // Do not instantiate
39
}
40
41     public static String JavaDoc PreferencePage_description;
42     public static String JavaDoc PreferencePage_fontEditor;
43     public static String JavaDoc FileDocumentProvider_createElementInfo;
44     public static String JavaDoc FileDocumentProvider_error_out_of_sync;
45     public static String JavaDoc FileDocumentProvider_task_saving;
46     public static String JavaDoc FileDocumentProvider_resetDocument;
47     public static String JavaDoc FileDocumentProvider_getPersistedEncoding;
48     public static String JavaDoc FileDocumentProvider_warning_fileIsDerived;
49     public static String JavaDoc FileDocumentProvider_stateValidationFailed;
50     public static String JavaDoc DocumentProvider_error_charset_mapping_failed_message_arg;
51     public static String JavaDoc DocumentProvider_error_illegal_encoding_message_arg;
52     public static String JavaDoc DocumentProvider_error_unsupported_encoding_message_arg;
53     public static String JavaDoc StorageDocumentProvider_updateCache;
54     public static String JavaDoc StorageDocumentProvider_isReadOnly;
55     public static String JavaDoc StorageDocumentProvider_isModifiable;
56     public static String JavaDoc StorageDocumentProvider_getContentDescriptionFor;
57     public static String JavaDoc StorageDocumentProvider_getContentDescription;
58     public static String JavaDoc TextFileDocumentProvider_beginTask_saving;
59     public static String JavaDoc TextFileDocumentProvider_error_doesNotExist;
60     public static String JavaDoc TextFileDocumentProvider_saveAsTargetOpenInEditor;
61     public static String JavaDoc Editor_error_unreadable_encoding_header;
62     public static String JavaDoc Editor_error_unreadable_encoding_banner;
63     public static String JavaDoc Editor_error_unreadable_encoding_message_arg;
64     public static String JavaDoc Editor_error_unreadable_encoding_message;
65     public static String JavaDoc Editor_error_unsupported_encoding_header;
66     public static String JavaDoc Editor_error_unsupported_encoding_banner;
67     public static String JavaDoc Editor_error_unsupported_encoding_message_arg;
68     public static String JavaDoc Editor_error_unsupported_encoding_message;
69     public static String JavaDoc Editor_ConvertEncoding_submenu_label;
70     public static String JavaDoc Editor_ConvertEncoding_Custom_dialog_title;
71     public static String JavaDoc Editor_ConvertEncoding_Custom_dialog_message;
72     public static String JavaDoc Editor_toolTip_affordance;
73     public static String JavaDoc NullProvider_error;
74     public static String JavaDoc FileBufferOperationAction_collectionFiles_label;
75     public static String JavaDoc FileBufferOperationHandler_collectionFiles_label;
76     public static String JavaDoc ResourceInfo_fileContentEncodingFormat;
77     public static String JavaDoc ResourceInfo_fileContainerEncodingFormat;
78     public static String JavaDoc WorkbenchPreference_encoding_BOM_UTF_8;
79     public static String JavaDoc WorkbenchPreference_encoding_BOM_UTF_16BE;
80     public static String JavaDoc WorkbenchPreference_encoding_BOM_UTF_16LE;
81     public static String JavaDoc DocumentInputStream_error_read;
82     public static String JavaDoc DocumentInputStream_error_streamClosed;
83
84     static {
85         NLS.initializeMessages(BUNDLE_NAME, TextEditorMessages.class);
86     }
87 }
88
Popular Tags