01: /*******************************************************************************
02: * Copyright (c) 2000, 2005 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.ui.internal.texteditor.quickdiff;
11:
12: import java.util.ResourceBundle;
13:
14: import org.eclipse.osgi.util.NLS;
15:
16: /**
17: * Helper class which wraps the specified resource bundle
18: * and offers methods to access the bundle.
19: *
20: * @since 3.0
21: */
22: public final class QuickDiffMessages extends NLS {
23:
24: private static final String BUNDLE_FOR_CONSTRUCTED_KEYS = "org.eclipse.ui.internal.texteditor.quickdiff.ConstructedQuickDiffMessages"; //$NON-NLS-1$
25: private static ResourceBundle fgBundleForConstructedKeys = ResourceBundle
26: .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 getBundleForConstructedKeys() {
35: return fgBundleForConstructedKeys;
36: }
37:
38: private static final String BUNDLE_NAME = QuickDiffMessages.class
39: .getName();
40:
41: private QuickDiffMessages() {
42: // Do not instantiate
43: }
44:
45: public static String quickdiff_toggle_enable;
46: public static String quickdiff_toggle_disable;
47: public static String quickdiff_initialize;
48: public static String quickdiff_nonsynchronized;
49: public static String quickdiff_annotation_changed;
50: public static String quickdiff_annotation_added;
51: public static String quickdiff_annotation_deleted;
52: public static String quickdiff_annotation_line_singular;
53: public static String quickdiff_annotation_line_plural;
54: public static String quickdiff_menu_label;
55: public static String quickdiff_error_getting_document_content;
56: public static String RestoreAction_label;
57: public static String RestoreAction_multiple_label;
58: public static String RevertLineAction_label;
59: public static String RevertLineAction_delete_label;
60:
61: static {
62: NLS.initializeMessages(BUNDLE_NAME, QuickDiffMessages.class);
63: }
64: }
|