• 大小: 2.49MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-10-30
  • 语言: 其他
  • 标签: my  eclipse8.5  汉化  

资源简介

my eclipse8.5的汉化包及教程,简单易用。我自己在网上学的,觉得好就拿来给大家

资源截图

代码片段和文件信息

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 + “\\4false“;   
                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 + “4false“;   
                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(“

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件      86528  2010-06-22 15:41  教程.doc

     文件       3173  2009-10-17 10:55  Myeclipse8.5 汉化\CreatePluginsConfig.java

     文件       1230  2009-02-15 04:51  Myeclipse8.5 汉化\language\features\org.eclipse.babel.nls_birt_zh_3.4.0.v20090215043402\about.html

     文件      21695  2009-02-15 04:51  Myeclipse8.5 汉化\language\features\org.eclipse.babel.nls_birt_zh_3.4.0.v20090215043402\eclipse_update_120.jpg

     文件      16536  2009-02-15 04:51  Myeclipse8.5 汉化\language\features\org.eclipse.babel.nls_birt_zh_3.4.0.v20090215043402\epl-v10.html

     文件       6367  2009-02-15 04:51  Myeclipse8.5 汉化\language\features\org.eclipse.babel.nls_birt_zh_3.4.0.v20090215043402\feature.properties

     文件      11667  2009-02-15 04:51  Myeclipse8.5 汉化\language\features\org.eclipse.babel.nls_birt_zh_3.4.0.v20090215043402\feature.xml

     文件       6506  2009-02-15 04:51  Myeclipse8.5 汉化\language\features\org.eclipse.babel.nls_birt_zh_3.4.0.v20090215043402\license.html

     文件       1230  2009-02-15 04:51  Myeclipse8.5 汉化\language\features\org.eclipse.babel.nls_datatools_zh_3.4.0.v20090215043402\about.html

     文件      21695  2009-02-15 04:51  Myeclipse8.5 汉化\language\features\org.eclipse.babel.nls_datatools_zh_3.4.0.v20090215043402\eclipse_update_120.jpg

     文件      16536  2009-02-15 04:51  Myeclipse8.5 汉化\language\features\org.eclipse.babel.nls_datatools_zh_3.4.0.v20090215043402\epl-v10.html

     文件       6367  2009-02-15 04:51  Myeclipse8.5 汉化\language\features\org.eclipse.babel.nls_datatools_zh_3.4.0.v20090215043402\feature.properties

     文件       1251  2009-02-15 04:51  Myeclipse8.5 汉化\language\features\org.eclipse.babel.nls_datatools_zh_3.4.0.v20090215043402\feature.xml

     文件       6506  2009-02-15 04:51  Myeclipse8.5 汉化\language\features\org.eclipse.babel.nls_datatools_zh_3.4.0.v20090215043402\license.html

     文件       1230  2009-02-15 04:51  Myeclipse8.5 汉化\language\features\org.eclipse.babel.nls_dsdp.tm_zh_3.4.0.v20090215043402\about.html

     文件      21695  2009-02-15 04:51  Myeclipse8.5 汉化\language\features\org.eclipse.babel.nls_dsdp.tm_zh_3.4.0.v20090215043402\eclipse_update_120.jpg

     文件      16536  2009-02-15 04:51  Myeclipse8.5 汉化\language\features\org.eclipse.babel.nls_dsdp.tm_zh_3.4.0.v20090215043402\epl-v10.html

     文件       6367  2009-02-15 04:51  Myeclipse8.5 汉化\language\features\org.eclipse.babel.nls_dsdp.tm_zh_3.4.0.v20090215043402\feature.properties

     文件        742  2009-02-15 04:51  Myeclipse8.5 汉化\language\features\org.eclipse.babel.nls_dsdp.tm_zh_3.4.0.v20090215043402\feature.xml

     文件       6506  2009-02-15 04:51  Myeclipse8.5 汉化\language\features\org.eclipse.babel.nls_dsdp.tm_zh_3.4.0.v20090215043402\license.html

     文件       1230  2009-02-15 04:51  Myeclipse8.5 汉化\language\features\org.eclipse.babel.nls_eclipse_zh_3.4.0.v20090215043402\about.html

     文件      21695  2009-02-15 04:51  Myeclipse8.5 汉化\language\features\org.eclipse.babel.nls_eclipse_zh_3.4.0.v20090215043402\eclipse_update_120.jpg

     文件      16536  2009-02-15 04:51  Myeclipse8.5 汉化\language\features\org.eclipse.babel.nls_eclipse_zh_3.4.0.v20090215043402\epl-v10.html

     文件       6367  2009-02-15 04:51  Myeclipse8.5 汉化\language\features\org.eclipse.babel.nls_eclipse_zh_3.4.0.v20090215043402\feature.properties

     文件      26034  2009-02-15 04:51  Myeclipse8.5 汉化\language\features\org.eclipse.babel.nls_eclipse_zh_3.4.0.v20090215043402\feature.xml

     文件       6506  2009-02-15 04:51  Myeclipse8.5 汉化\language\features\org.eclipse.babel.nls_eclipse_zh_3.4.0.v20090215043402\license.html

     文件       1230  2009-02-15 04:51  Myeclipse8.5 汉化\language\features\org.eclipse.babel.nls_modeling.gmf_zh_3.4.0.v20090215043402\about.html

     文件      21695  2009-02-15 04:51  Myeclipse8.5 汉化\language\features\org.eclipse.babel.nls_modeling.gmf_zh_3.4.0.v20090215043402\eclipse_update_120.jpg

     文件      16536  2009-02-15 04:51  Myeclipse8.5 汉化\language\features\org.eclipse.babel.nls_modeling.gmf_zh_3.4.0.v20090215043402\epl-v10.html

     文件       6367  2009-02-15 04:51  Myeclipse8.5 汉化\language\features\org.eclipse.babel.nls_modeling.gmf_zh_3.4.0.v20090215043402\feature.properties

............此处省略467个文件信息

评论

共有 条评论