MyEclipse汉化包以及安装教程(附图),适用于8.5及各种版本
来源:互联网 发布:三花聚顶指标源码 编辑:程序博客网 时间:2024/06/04 21:03
简单四步轻松搞定!
第一步:下载MyEclipse8.5安装包文件,我的空间http://download.csdn.net/user/cntanghai,多谢关注哈!
第二步:创建类CreatePluginsConfig,把下面的代码拷贝进去,汉化包中有这个类.注意:代码中的主方法需要修改你插件的路径
1: import java.io.File;
2: import java.util.ArrayList;
3: import java.util.List;
4:
5: /**
6: * MyEclipse 8.x安装插件代码生成器
7: *
8: * @author Administrator
9: *
10: */
11: public class CreatePluginsConfig {
12: private String path;
13:
14: public CreatePluginsConfig(String path) {
15: this.path = path;
16: }
17:
18: public void print() {
19: List list = getFileList(path);
20: if (list == null) {
21: return;
22: }
23:
24: int length = list.size();
25: for (int i = 0; i < length; i++) {
26: String result = "";
27: String thePath = getFormatPath(getString(list.get(i)));
28: File file = new File(thePath);
29: if (file.isDirectory()) {
30: String fileName = file.getName();
31: if (fileName.indexOf("_") < 0) {
32: continue;
33: }
34: String[] filenames = fileName.split("_");
35: String filename1 = filenames[0];
36: String filename2 = filenames[1];
37: result = filename1 + "," + filename2 + ",file:/" + path + "//"
38: + fileName + "//,4,false";
39: System.out.println(result);
40: } else if (file.isFile()) {
41: String fileName = file.getName();
42: if (fileName.indexOf("_") < 0) {
43: continue;
44: }
45: String[] filenames = fileName.split("_");
46: String filename1 = filenames[0] + "_" + filenames[1];
47: String filename2 = filenames[2].substring(0, filenames[2]
48: .lastIndexOf("."));
49: result = filename1 + "," + filename2 + ",file:/" + path + "//"
50: + fileName + ",4,false";
51: System.out.println(result);
52: }
53:
54: }
55: }
56:
57: public List getFileList(String path) {
58: path = getFormatPath(path);
59: path = path + "/";
60: File filePath = new File(path);
61: if (!filePath.isDirectory()) {
62: return null;
63: }
64: String[] filelist = filePath.list();
65: List filelistFilter = new ArrayList();
66:
67: for (int i = 0; i < filelist.length; i++) {
68: String tempfilename = getFormatPath(path + filelist[i]);
69: filelistFilter.add(tempfilename);
70: }
71: return filelistFilter;
72: }
73:
74: public String getString(Object object) {
75: if (object == null) {
76: return "";
77: }
78: return String.valueOf(object);
79: }
80:
81: public String getFormatPath(String path) {
82: path = path.replaceAll("////", "/");
83: path = path.replaceAll("//", "/");
84: return path;
85: }
86:
87: public static void main(String[] args) {
88: // 说明:(1)path为汉化安装包插件路径
89: // (2)运行本程序之后会在控制台出现很多的英文,这些英文需要拷贝到
90: // 路径...MyEclipse 8.5/configuration/org.eclipse.equinox.simpleconfigurator下的bundles.info文件中
91: // 具体操作:用记事本把bundles.info 打开,在最后一行回车一下,再粘贴
92: String path = "D://Program Files//Genuitec//MyEclipse 8.5//language//plugins"; // 汉化包插件路径
93: new CreatePluginsConfig(path).print();
94:
95: }
96: }
第三步:运行上面程序之后会在控制台出现很多的英文,这些英文全部需要拷贝到路径...MyEclipse 8.5/configuration/org.eclipse.equinox.simpleconfigurator下的bundles.info文件中(用记事本把bundles.info 打开,在最后一行回车一下,再粘贴)
第四步:找到路径.../MyEclipse 8.5下的myeclipse.ini文件,用记事本打开在最后一行加多一条语句 Duser.language=zh 6 保存
说明:有的文章说添加"-Duser.language=zh 6”,前面有个"-",不过本人测试方式不对.
最后,重新打开MyEclipse8.5,祝您成功!
- MyEclipse汉化包以及安装教程(附图),适用于8.5及各种版本
- MyEclipse 8.5 版本汉化
- FQQ兵法,适用于各种版本以及种族
- Myeclipse-2016-windows破解以及汉化教程
- MyEclipse 8.5中文汉化教程
- MyEclipse 8.5 中文汉化教程
- MyEclipse 8.5中文汉化教程
- MyEclipse 8.5 中文汉化教程
- devexpress15.2汉化包及教程
- myeclipse安装svn插件及汉化方法
- mac版本navicat安装与汉化教程
- magento1.7.0.2汉化包安装教程
- 轻松搞定:MyEclipse最新8.5版本汉化
- 【PLSQL】PLSQL安装、破解以及汉化教程
- MyEclipse的安装(适用于7.0以前的版本!)
- MyEclipse 8.5 Latest中文汉化教程
- 【最详细、亲测】Myeclipse-2016-windows破解以及汉化教程
- Sublime Text 3使用教程及简体中文汉化包,安装格式化代码插件
- Android插件学习总结
- VMare不能重启
- nfs-kernel-server v1.2.0的小问题
- 统一将Linux Shell、Vim和SecureCRT的编码修改为UTF-8
- 【POJ1201】Intervals 差分约束系统
- MyEclipse汉化包以及安装教程(附图),适用于8.5及各种版本
- 快速获得需要的组码
- 选中行的索引: <tr onclick="alert(this.rowIndex)"
- office outlook 2010 如何修改IMAP电子邮件的数据文件位置
- http://code.google.com/p/eyes-free/downloads/detail?name=com.svox.langpack.installer_1.0.1.apk
- Mysql中创建用户帐户的几种方法
- 求助.net防注入代码
- jira与testlink整合方法
- [转自兵马俑]标 题: 结构体的自己对齐问题