• 大小: 2.92MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-09-14
  • 语言: 其他
  • 标签: my  eclipse10  

资源简介

my eclipse10汉化

资源截图

代码片段和文件信息

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  2017-04-24 09:48  MyEclipse10hh\
     目录           0  2017-04-24 09:48  MyEclipse10hh\MyEclipse 10汉化包\
     文件        3215  2014-01-04 15:33  MyEclipse10hh\MyEclipse 10汉化包\CreatePluginsConfig.java
     目录           0  2017-03-20 16:42  MyEclipse10hh\MyEclipse 10汉化包\language\
     目录           0  2017-03-20 16:42  MyEclipse10hh\MyEclipse 10汉化包\language\features\
     目录           0  2017-03-20 16:42  MyEclipse10hh\MyEclipse 10汉化包\language\features\org.eclipse.babel.nls_birt_zh_3.4.0.v20090215043402\
     文件       21695  2009-02-15 04:51  MyEclipse10hh\MyEclipse 10汉化包\language\features\org.eclipse.babel.nls_birt_zh_3.4.0.v20090215043402\eclipse_update_120.jpg
     文件        6367  2009-02-15 04:51  MyEclipse10hh\MyEclipse 10汉化包\language\features\org.eclipse.babel.nls_birt_zh_3.4.0.v20090215043402\feature.properties
     文件       11667  2009-02-15 04:51  MyEclipse10hh\MyEclipse 10汉化包\language\features\org.eclipse.babel.nls_birt_zh_3.4.0.v20090215043402\feature.xml
     目录           0  2017-03-20 16:42  MyEclipse10hh\MyEclipse 10汉化包\language\features\org.eclipse.babel.nls_datatools_zh_3.4.0.v20090215043402\
     文件       21695  2009-02-15 04:51  MyEclipse10hh\MyEclipse 10汉化包\language\features\org.eclipse.babel.nls_datatools_zh_3.4.0.v20090215043402\eclipse_update_120.jpg
     文件        6367  2009-02-15 04:51  MyEclipse10hh\MyEclipse 10汉化包\language\features\org.eclipse.babel.nls_datatools_zh_3.4.0.v20090215043402\feature.properties
     文件        1251  2009-02-15 04:51  MyEclipse10hh\MyEclipse 10汉化包\language\features\org.eclipse.babel.nls_datatools_zh_3.4.0.v20090215043402\feature.xml
     目录           0  2017-03-20 16:42  MyEclipse10hh\MyEclipse 10汉化包\language\features\org.eclipse.babel.nls_dsdp.tm_zh_3.4.0.v20090215043402\
     文件       21695  2009-02-15 04:51  MyEclipse10hh\MyEclipse 10汉化包\language\features\org.eclipse.babel.nls_dsdp.tm_zh_3.4.0.v20090215043402\eclipse_update_120.jpg
     文件        6367  2009-02-15 04:51  MyEclipse10hh\MyEclipse 10汉化包\language\features\org.eclipse.babel.nls_dsdp.tm_zh_3.4.0.v20090215043402\feature.properties
     文件         742  2009-02-15 04:51  MyEclipse10hh\MyEclipse 10汉化包\language\features\org.eclipse.babel.nls_dsdp.tm_zh_3.4.0.v20090215043402\feature.xml
     目录           0  2017-03-20 16:42  MyEclipse10hh\MyEclipse 10汉化包\language\features\org.eclipse.babel.nls_eclipse_zh_3.4.0.v20090215043402\
     文件       21695  2009-02-15 04:51  MyEclipse10hh\MyEclipse 10汉化包\language\features\org.eclipse.babel.nls_eclipse_zh_3.4.0.v20090215043402\eclipse_update_120.jpg
     文件        6367  2009-02-15 04:51  MyEclipse10hh\MyEclipse 10汉化包\language\features\org.eclipse.babel.nls_eclipse_zh_3.4.0.v20090215043402\feature.properties
     文件       26034  2009-02-15 04:51  MyEclipse10hh\MyEclipse 10汉化包\language\features\org.eclipse.babel.nls_eclipse_zh_3.4.0.v20090215043402\feature.xml
     目录           0  2017-03-20 16:42  MyEclipse10hh\MyEclipse 10汉化包\language\features\org.eclipse.babel.nls_modeling.gmf_zh_3.4.0.v20090215043402\
     文件       21695  2009-02-15 04:51  MyEclipse10hh\MyEclipse 10汉化包\language\features\org.eclipse.babel.nls_modeling.gmf_zh_3.4.0.v20090215043402\eclipse_update_120.jpg
     文件        6367  2009-02-15 04:51  MyEclipse10hh\MyEclipse 10汉化包\language\features\org.eclipse.babel.nls_modeling.gmf_zh_3.4.0.v20090215043402\feature.properties
     文件         605  2009-02-15 04:51  MyEclipse10hh\MyEclipse 10汉化包\language\features\org.eclipse.babel.nls_modeling.gmf_zh_3.4.0.v20090215043402\feature.xml
     目录           0  2017-03-20 16:42  MyEclipse10hh\MyEclipse 10汉化包\language\features\org.eclipse.babel.nls_modeling.m2m_zh_3.4.0.v20090215043402\
     文件       21695  2009-02-15 04:51  MyEclipse10hh\MyEclipse 10汉化包\language\features\org.eclipse.babel.nls_modeling.m2m_zh_3.4.0.v20090215043402\eclipse_update_120.jpg
     文件        6367  2009-02-15 04:51  MyEclipse10hh\MyEclipse 10汉化包\language\features\org.eclipse.babel.nls_modeling.m2m_zh_3.4.0.v20090215043402\feature.properties
     文件         605  2009-02-15 04:51  MyEclipse10hh\MyEclipse 10汉化包\language\features\org.eclipse.babel.nls_modeling.m2m_zh_3.4.0.v20090215043402\feature.xml
     目录           0  2017-03-20 16:42  MyEclipse10hh\MyEclipse 10汉化包\language\features\org.eclipse.babel.nls_modeling.m2t_zh_3.4.0.v20090215043402\
     文件       21695  2009-02-15 04:51  MyEclipse10hh\MyEclipse 10汉化包\language\features\org.eclipse.babel.nls_modeling.m2t_zh_3.4.0.v20090215043402\eclipse_update_120.jpg
............此处省略433个文件信息

评论

共有 条评论