KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > ui > internal > texteditor > quickdiff > QuickDiffMessages


1 /*******************************************************************************
2  * Copyright (c) 2000, 2005 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.internal.texteditor.quickdiff;
12
13 import java.util.ResourceBundle JavaDoc;
14
15 import org.eclipse.osgi.util.NLS;
16
17 /**
18  * Helper class which wraps the specified resource bundle
19  * and offers methods to access the bundle.
20  *
21  * @since 3.0
22  */

23 public final class QuickDiffMessages extends NLS {
24
25     private static final String JavaDoc BUNDLE_FOR_CONSTRUCTED_KEYS= "org.eclipse.ui.internal.texteditor.quickdiff.ConstructedQuickDiffMessages"; //$NON-NLS-1$
26
private static ResourceBundle JavaDoc fgBundleForConstructedKeys= ResourceBundle.getBundle(BUNDLE_FOR_CONSTRUCTED_KEYS);
27
28     /**
29      * Returns the message bundle which contains constructed keys.
30      *
31      * @since 3.1
32      * @return the message bundle
33      */

34     public static ResourceBundle JavaDoc getBundleForConstructedKeys() {
35         return fgBundleForConstructedKeys;
36     }
37
38     private static final String JavaDoc BUNDLE_NAME= QuickDiffMessages.class.getName();
39
40     private QuickDiffMessages() {
41         // Do not instantiate
42
}
43
44     public static String JavaDoc quickdiff_toggle_enable;
45     public static String JavaDoc quickdiff_toggle_disable;
46     public static String JavaDoc quickdiff_initialize;
47     public static String JavaDoc quickdiff_nonsynchronized;
48     public static String JavaDoc quickdiff_annotation_changed;
49     public static String JavaDoc quickdiff_annotation_added;
50     public static String JavaDoc quickdiff_annotation_deleted;
51     public static String JavaDoc quickdiff_annotation_line_singular;
52     public static String JavaDoc quickdiff_annotation_line_plural;
53     public static String JavaDoc quickdiff_menu_label;
54     public static String JavaDoc quickdiff_error_getting_document_content;
55     public static String JavaDoc RestoreAction_label;
56     public static String JavaDoc RestoreAction_multiple_label;
57     public static String JavaDoc RevertLineAction_label;
58     public static String JavaDoc RevertLineAction_delete_label;
59
60     static {
61         NLS.initializeMessages(BUNDLE_NAME, QuickDiffMessages.class);
62     }
63 }
Popular Tags