• 大小: 3MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-09-10
  • 语言: 其他
  • 标签: java汉化  

资源简介

MyEclipse10汉化包+教程(100%)

资源截图

代码片段和文件信息

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(“

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2016-04-11 14:44  MyEclipse 10汉化包\
     文件        3215  2014-01-04 15:33  MyEclipse 10汉化包\CreatePluginsConfig.java
     目录           0  2013-12-09 15:28  MyEclipse 10汉化包\language\
     目录           0  2013-12-09 15:28  MyEclipse 10汉化包\language\features\
     目录           0  2013-12-09 15:28  MyEclipse 10汉化包\language\features\org.eclipse.babel.nls_birt_zh_3.4.0.v20090215043402\
     文件        1230  2009-02-15 04:51  MyEclipse 10汉化包\language\features\org.eclipse.babel.nls_birt_zh_3.4.0.v20090215043402\about.html
     文件       21695  2009-02-15 04:51  MyEclipse 10汉化包\language\features\org.eclipse.babel.nls_birt_zh_3.4.0.v20090215043402\eclipse_update_120.jpg
     文件       16536  2009-02-15 04:51  MyEclipse 10汉化包\language\features\org.eclipse.babel.nls_birt_zh_3.4.0.v20090215043402\epl-v10.html
     文件        6367  2009-02-15 04:51  MyEclipse 10汉化包\language\features\org.eclipse.babel.nls_birt_zh_3.4.0.v20090215043402\feature.properties
     文件       11667  2009-02-15 04:51  MyEclipse 10汉化包\language\features\org.eclipse.babel.nls_birt_zh_3.4.0.v20090215043402\feature.xml
     文件        6506  2009-02-15 04:51  MyEclipse 10汉化包\language\features\org.eclipse.babel.nls_birt_zh_3.4.0.v20090215043402\license.html
     目录           0  2013-12-09 15:28  MyEclipse 10汉化包\language\features\org.eclipse.babel.nls_datatools_zh_3.4.0.v20090215043402\
     文件        1230  2009-02-15 04:51  MyEclipse 10汉化包\language\features\org.eclipse.babel.nls_datatools_zh_3.4.0.v20090215043402\about.html
     文件       21695  2009-02-15 04:51  MyEclipse 10汉化包\language\features\org.eclipse.babel.nls_datatools_zh_3.4.0.v20090215043402\eclipse_update_120.jpg
     文件       16536  2009-02-15 04:51  MyEclipse 10汉化包\language\features\org.eclipse.babel.nls_datatools_zh_3.4.0.v20090215043402\epl-v10.html
     文件        6367  2009-02-15 04:51  MyEclipse 10汉化包\language\features\org.eclipse.babel.nls_datatools_zh_3.4.0.v20090215043402\feature.properties
     文件        1251  2009-02-15 04:51  MyEclipse 10汉化包\language\features\org.eclipse.babel.nls_datatools_zh_3.4.0.v20090215043402\feature.xml
     文件        6506  2009-02-15 04:51  MyEclipse 10汉化包\language\features\org.eclipse.babel.nls_datatools_zh_3.4.0.v20090215043402\license.html
     目录           0  2013-12-09 15:28  MyEclipse 10汉化包\language\features\org.eclipse.babel.nls_dsdp.tm_zh_3.4.0.v20090215043402\
     文件        1230  2009-02-15 04:51  MyEclipse 10汉化包\language\features\org.eclipse.babel.nls_dsdp.tm_zh_3.4.0.v20090215043402\about.html
     文件       21695  2009-02-15 04:51  MyEclipse 10汉化包\language\features\org.eclipse.babel.nls_dsdp.tm_zh_3.4.0.v20090215043402\eclipse_update_120.jpg
     文件       16536  2009-02-15 04:51  MyEclipse 10汉化包\language\features\org.eclipse.babel.nls_dsdp.tm_zh_3.4.0.v20090215043402\epl-v10.html
     文件        6367  2009-02-15 04:51  MyEclipse 10汉化包\language\features\org.eclipse.babel.nls_dsdp.tm_zh_3.4.0.v20090215043402\feature.properties
     文件         742  2009-02-15 04:51  MyEclipse 10汉化包\language\features\org.eclipse.babel.nls_dsdp.tm_zh_3.4.0.v20090215043402\feature.xml
     文件        6506  2009-02-15 04:51  MyEclipse 10汉化包\language\features\org.eclipse.babel.nls_dsdp.tm_zh_3.4.0.v20090215043402\license.html
     目录           0  2013-12-09 15:28  MyEclipse 10汉化包\language\features\org.eclipse.babel.nls_eclipse_zh_3.4.0.v20090215043402\
     文件        1230  2009-02-15 04:51  MyEclipse 10汉化包\language\features\org.eclipse.babel.nls_eclipse_zh_3.4.0.v20090215043402\about.html
     文件       21695  2009-02-15 04:51  MyEclipse 10汉化包\language\features\org.eclipse.babel.nls_eclipse_zh_3.4.0.v20090215043402\eclipse_update_120.jpg
     文件       16536  2009-02-15 04:51  MyEclipse 10汉化包\language\features\org.eclipse.babel.nls_eclipse_zh_3.4.0.v20090215043402\epl-v10.html
     文件        6367  2009-02-15 04:51  MyEclipse 10汉化包\language\features\org.eclipse.babel.nls_eclipse_zh_3.4.0.v20090215043402\feature.properties
     文件       26034  2009-02-15 04:51  MyEclipse 10汉化包\language\features\org.eclipse.babel.nls_eclipse_zh_3.4.0.v20090215043402\feature.xml
............此处省略463个文件信息

评论

共有 条评论

相关资源