messages.java

来自「eclise rcp 项目,是非常好的学习源码」· Java 代码 · 共 43 行

JAVA
43
字号
/*******************************************************************************
 * Copyright (c) 2007 Siemens AG
 * 
 * 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:
 *    Kai T鰀ter - initial API and implementation
 *******************************************************************************/

package com.siemens.ct.mp3m.ui.wizards;

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

/**
 * I18N
 * 
 * @author Kai Toedter
 * @author $LastChangedBy: toedter_k $
 * @version $LastChangedDate: 2007-02-22 10:13:57 +0100 (Do, 22 Feb 2007) $
 * @version $LastChangedRevision: 469 $
 *
 */
public class Messages {
	private static final String BUNDLE_NAME = "com.siemens.ct.mp3m.ui.wizards.messages"; //$NON-NLS-1$

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

	private Messages() {
	}

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

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?