Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: dcae477f0a0b8b8060ed486bf6a547a98bdc6fc7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
/*******************************************************************************
 * Copyright (c) 2007 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 * 
 * Contributors:
 *    IBM Corporation - initial API and implementation
 *    Nick Boldt <codeslave@ca.ibm.com> - bug 206528
 *******************************************************************************/
package org.eclipse.ecf.internal.presence.bot.kosmos;

import java.util.MissingResourceException;
import java.util.ResourceBundle;

public class CustomMessages {
	
	static final String No_Operation_Privileges = "No_Operation_Privileges"; //$NON-NLS-1$
	static final String Learn_Failure = "Learn_Failure"; //$NON-NLS-1$
	static final String Learn_Reply = "Learn_Reply"; //$NON-NLS-1$
	static final String Learn_Conflict = "Learn_Conflict"; //$NON-NLS-1$
	static final String Learn_Update = "Learn_Update"; //$NON-NLS-1$
	static final String Learn_Remove = "Learn_Remove"; //$NON-NLS-1$

	static final String Bug = "Bug"; //$NON-NLS-1$
	static final String Bug_Reply = "Bug_Reply"; //$NON-NLS-1$

	static final String BugContent = "BugContent"; //$NON-NLS-1$
	static final String BugContent_Reply = "BugContent_Reply"; //$NON-NLS-1$

	static final String Javadoc_NotFound = "Javadoc_NotFound"; //$NON-NLS-1$
	static final String Javadoc_ResultsUnknown = "Javadoc_ResultsUnknown"; //$NON-NLS-1$

	static final String NewsgroupSearch = "NewsgroupSearch"; //$NON-NLS-1$
	static final String NewsgroupSearch_Reply = "NewsgroupSearch_Reply"; //$NON-NLS-1$

	static final String Google = "Google"; //$NON-NLS-1$
	static final String Google_Reply = "Google_Reply"; //$NON-NLS-1$

	static final String Wiki = "Wiki"; //$NON-NLS-1$
	static final String Wiki_Reply = "Wiki_Reply"; //$NON-NLS-1$

	static final String EclipseHelp = "EclipseHelp"; //$NON-NLS-1$
	static final String EclipseHelp_Reply = "EclipseHelp_Reply"; //$NON-NLS-1$
	
	static final String MessageList = "MessageList"; //$NON-NLS-1$
	static final String MessageList_Reply = "MessageList_Reply"; //$NON-NLS-1$

	private static final String RESOURCE_BUNDLE = "org.eclipse.ecf.internal.presence.bot.kosmos.custom"; //$NON-NLS-1$

	private final static ResourceBundle BUNDLE = ResourceBundle
			.getBundle(RESOURCE_BUNDLE);

	/**
	 * A private constructor to prevent instantiation.
	 */
	private CustomMessages() {
		// do nothing
	}

	public static String getString(String key) {
		try {
			return BUNDLE.getString(key);
		} catch (MissingResourceException e) {
			return '!' + key + '!';
		}
	}

	public static ResourceBundle getResourceBundle() {
		return BUNDLE;
	}

}

Back to the top