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

📄 gfmprogdictionary.java

📁 BPO作业管理系统DMP的插件
💻 JAVA
字号:
package com.cmspad.dmp.bundles.gfm;import java.io.BufferedReader;import java.io.IOException;import java.io.StringReader;import java.util.LinkedHashMap;import java.util.Map;import java.util.Set;import com.cmspad.dmp.DMPBundle;import com.cmspad.dmp.util.DMPUtil;/** * 新旧字典 *  * @author yipsilon *  */public class GFMProgDictionary {	private static Map<String, String> chars = new LinkedHashMap<String, String>();	static {		refresh();	}	private GFMProgDictionary() {}	public static void refresh() {		chars.clear();		String charPref = DMPBundle.getPreference(GFMActivator.ID, GFMActivator.PREFS_PROG_DICTIONARY);		if(charPref != null){			try {				BufferedReader reader = new BufferedReader(new StringReader(charPref));				for (String line = reader.readLine(); line != null; line = reader.readLine()) {					String[] worda = DMPUtil.split(line, '=');					if (worda.length == 2) {						chars.put(worda[0], worda[1]);					}				}				reader.close();			} catch (IOException e) {}		}	}	public static Set<String> keys() {		return chars.keySet();	}	public static String value(String key) {		return chars.get(key);	}}

⌨️ 快捷键说明

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