messages.java

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

JAVA
43
字号
/*
 * Copyright (C) Siemens AG 2007
 *
 * Transmittal, reproduction, dissemination and/or editing of this
 * source code as well as utilization of its contents and communication
 * thereof to others without express authorization are prohibited.
 * Offenders will be held liable for payment of damages.  All rights
 * created by patent grant or registration of a utility model or design
 * patent are reserved.
 *
 */

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

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

/**
 * 
 * 
 * @author Kai Toedter
 * @author $LastChangedBy: $
 * @version $LastChangedDate: $
 * @version $LastChangedRevision: $
 *
 */
public class Messages {
	private static final String BUNDLE_NAME = "com.siemens.ct.mp3m.ui.views.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 + -
显示快捷键?