MyEclipse 8.5中文漢化教程,圖文版【轉】

MyEclipse 8.5中文漢化教程 收藏
首先下載 MyEclipse 8.5中文語言包;java

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

有了漢化包咱們開始漢化吧,須要照個人步驟來。eclipse

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裏是沒有這個文件夾的ide


2:用myeclipse建立一個JAVA項目,將CreatePluginsConfig.java複製這個項目中。ui


3:按alt+shift+x ,再按j運行這個項目,在控制檯裏將代碼複製出來
this


5. D:\develop\ide\Genuitec\MyEclipse 8.5e\configuration\org.eclipse.equinox.simpleconfigurator ,用記事本把bundles.info 打開,在最後一行回車一下。把剛纔在控制檯裏面的內容都粘貼進去保存。MyEclipse 8.5的文件夾是你MyEclipse 8.5運行路徑。spa

   若是你的MyEclipse運行的文件夾不是MyEclipse 8.5的話就看一下你的運行路徑是什麼按照上面的路徑打開bundles.info 文件就好了。這個很重要由於有2個configuration文件夾件,怕你們進錯了,因此要注意是MyEclipse運行文件夾裏的configuration。
.net

5:找到MyEclipse 8.5的目錄下找到myeclipse.ini文件,文件就圖1的裏面的位置。用記事本打開在最後一行加多一條語句
插件

-Duser.language=zh
orm

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 + "\\,4,false";     
                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安裝的路徑                }      }   

相關文章
相關標籤/搜索