打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
MyEclipse 8.5中文汉化教程,图文版【转】

MyEclipse 8.5中文汉化教程,图文版【转】

0人收藏此文章, 我要收藏 发表于2个月前 , 已有322次阅读 共0个评论

MyEclipse 8.5中文汉化教程 收藏
首先下载 MyEclipse 8.5中文语言包;

   下载地址:http://download.csdn.net/source/2192696

有了汉化包我们开始汉化吧,需要照我的步骤来。

0:下载汉化包并解压得到如下一个文件夹名为language,另一个名为CreatePluginsConfig.java的文件,如下图


1:把下载好的汉化包里的language的文件夹全覆盖到你安装的MyEclipse 8.5文件夹下;
例如你的myeclipse安装在D:\\develop\ide\\Genuitec\\MyEclipse 8.5e则整个language拷进去之后是D:\\develop\ide\\Genuitec\\MyEclipse 8.5e\\language
注意这里的language是直接复制过来的,原来的myeclipse里是没有这个文件夹的


2:用myeclipse创建一个JAVA项目,将CreatePluginsConfig.java复制这个项目中。


3:按alt+shift+x ,再按j运行这个项目,在控制台里将代码复制出来


5. D:\develop\ide\Genuitec\MyEclipse 8.5e\configuration\org.eclipse.equinox.simpleconfigurator ,用记事本把bundles.info 打开,在最后一行回车一下。把刚才在控制台里面的内容都粘贴进去保存。MyEclipse 8.5的文件夹是你MyEclipse 8.5运行路径。

   如果你的MyEclipse运行的文件夹不是MyEclipse 8.5的话就看一下你的运行路径是什么按照上面的路径打开bundles.info 文件就行了。这个很重要因为有2个configuration文件夹件,怕大家进错了,所以要注意是MyEclipse运行文件夹里的configuration。

5:找到MyEclipse 8.5的目录下找到myeclipse.ini文件,文件就图1的里面的位置。用记事本打开在最后一行加多一条语句

-Duser.language=zh

6:保存,启动MyEclipse,即可看到中文界面!

7.configuration.java类


view plaincopy to clipboardprint?
import java.io.File;     
import java.util.ArrayList;     
import java.util.List;     
    
/**   
* MyEclipse 8.x安装插件代码生成器   
* @author Administrator   
*   
*/    
public class CreatePluginsConfig {     
    private String path;     
    
    public CreatePluginsConfig(String path) {     
        this.path = path;     
    }     
    
    public void print() {     
        List list = getFileList(path);     
        if (list == null) {     
            return;     
        }     
    
        int length = list.size();     
        for (int i = 0; i < length; i++) {     
            String result = "";     
            String thePath = getFormatPath(getString(list.get(i)));     
            File file = new File(thePath);     
            if (file.isDirectory()) {     
                String fileName = file.getName();     
                if (fileName.indexOf("_") < 0) {     
                    continue;     
                }     
                String[] filenames = fileName.split("_");     
                String filename1 = filenames[0];     
                String filename2 = filenames[1];     
                result = filename1 + "," + filename2 + ",file:/" + path + "\\"    
                        + fileName + "http://www.360doc.com/";     
                System.out.println(result);     
            } else if (file.isFile()) {     
                String fileName = file.getName();     
                if (fileName.indexOf("_") < 0) {     
                    continue;     
                }     
                String[] filenames = fileName.split("_");     
                String filename1 = filenames[0]+"_"+filenames[1];     
                String filename2 = filenames[2].substring(0, filenames[2].lastIndexOf("."));     
                result = filename1 + "," + filename2 + ",file:/" + path + "\\"    
                        + fileName + ",4,false";     
                System.out.println(result);     
            }     
    
        }     
    }     
    
    public List getFileList(String path) {     
        path = getFormatPath(path);     
        path = path + "/";     
        File filePath = new File(path);     
        if (!filePath.isDirectory()) {     
            return null;     
        }     
        String[] filelist = filePath.list();     
        List filelistFilter = new ArrayList();     
    
        for (int i = 0; i < filelist.length; i++) {     
            String tempfilename = getFormatPath(path + filelist[i]);     
            filelistFilter.add(tempfilename);     
        }     
        return filelistFilter;     
    }     
    
    public String getString(Object object) {     
        if (object == null) {     
            return "";     
        }     
        return String.valueOf(object);     
    }     
    
    public String getFormatPath(String path) {     
        path = path.replaceAll("\\\\", "/");     
        path = path.replaceAll("//", "/");     
        return path;     
    }     
    
    public static void main(String[] args) {     
            
        new CreatePluginsConfig("C:\\myEclipse\\language\\plugins").print(); //汉化包插件路径     
    //友情提示:上面C:\\myEclipse\\language\\plugins是你的myEclipse安装的路径  
        
    }     
}   

本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
MyEclipse 10中文汉化教程
MyEclipse8.5开发环境配置中SVN插件安装重点解析
MyEclipse中使用Maven-草色青青——网络小虫-搜狐博客
MyEclipse 8.5 反编译插件的安装
Eclipse8.5 下载地址及插件安装
eclipse与myeclipse的有什么区别?
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服