⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 localizedstrings.java

📁 采用java SWT图形库的特效代码
💻 JAVA
字号:
/*******************************************************************************
 * Copyright (c) 2005 Stefan Zeiger 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.novocode.com/legal/epl-v10.html
 * 
 * Contributors:
 *     Stefan Zeiger (szeiger@novocode.com) - initial API and implementation
 *******************************************************************************/

package com.novocode.naf.swt.custom.ishell.internal;

import java.util.ResourceBundle;


/**
 * Manages the localized strings for the InternalShell implementation.
 *
 * @author Stefan Zeiger (szeiger@novocode.com)
 * @since Feb 26, 2005
 * @version $Id: LocalizedStrings.java,v 1.1 2005/02/26 20:31:25 szeiger Exp $
 */

public class LocalizedStrings
{
  public static final String POPUP_RESTORE  = "popup.restore";
  public static final String POPUP_MOVE     = "popup.move";
  public static final String POPUP_SIZE     = "popup.size";
  public static final String POPUP_MINIMIZE = "popup.minimize";
  public static final String POPUP_MAXIMIZE = "popup.maximize";
  public static final String POPUP_CLOSE    = "popup.close";


  private static final ResourceBundle b = loadResourceBundle();


  private static ResourceBundle loadResourceBundle()
  {
    String name = LocalizedStrings.class.getName();
    name = name.substring(0, name.lastIndexOf('.'));
    name += ".strings";
    return ResourceBundle.getBundle(name);
  }


  public static String get(String key)
  {
    return b.getString(key);
  }
}

⌨️ 快捷键说明

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