MyEclipse10汉化教程(附图).doc

  1. 1、本文档共5页,可阅读全部内容。
  2. 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
MyEclipse10汉化教程(附图)

MyEclipse 10汉化教程(附图) 第一步:下载MyEclipseMyEclipse10的common(如果没有,就创建一个)中,注意:common文件夹和和你的MyEclipse.exe?文件在一起的 第二步:创建类CreatePluginsConfig,把下面的代码拷贝进去,汉化包中有这个类.注意:代码中的主方法需要修改你插件的路径1: import java.io.File; 2: import java.util.ArrayList; 3: import java.util.List; 4:? 5: /** 6: * MyEclipse 10.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: filelistFil

文档评论(0)

haihang2017 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档