MyEclipse7.1插件安装详解

MyEclipse工具的插件安装从7.1开始变的垃圾了,大概是不想让用户装别的公司的插件吧。

现有如下方法进行MyEclipse 7.1插件安装:

MyEclipse 7.1插件安装步骤1.复制如下代码

Java代码

 
 
 
  1. import java.io.File;  
  2. import java.util.ArrayList;  
  3. import java.util.List;  
  4.  
  5. /** */ 
  6. /**  
  7.  * Descript:  
  8.  *   
  9.  *   
  10.  */ 
  11.  
  12. public class Test {  
  13.  private String path;  
  14.  
  15.  public Test(String path) {  
  16.   this.path = path;  
  17.  }  
  18.  
  19.  public void print() {  
  20.   List list = getFileList(path);  
  21.   if (list == null) {  
  22.    return;  
  23.   }  
  24.  
  25.   int length = list.size();  
  26.   for (int i = 0; i < length; i++) {  
  27.    String result = "";  
  28.    String thePath = getFormatPath(getString(list.get(i)));  
  29.    File file = new File(thePath);  
  30.    if (file.isDirectory()) {  
  31.     String fileName = file.getName();  
  32.     if (fileName.indexOf("_") < 0) {  
  33.      continue;  
  34.     }  
  35.     String[] filenames = fileName.split("_");  
  36.     String filename1 = filenames[0];  
  37.     String filename2 = filenames[1];  
  38.     result = filename1 + "," + filename2 + ",file:/" + path + "\\" 
  39.       + fileName + "\\,4,false";  
  40.     System.out.println(result);  
  41.    } else if (file.isFile()) {  
  42.     String fileName = file.getName();  
  43.     if (fileName.indexOf("_") < 0) {  
  44.      continue;  
  45.     }  
  46.     String[] filenames = fileName.split("_");  
  47.     String filename1 = filenames[0];  
  48.     String filename2 = filenames[1].substring(0, filenames[1]  
  49.       .lastIndexOf("."));  
  50.     result = filename1 + "," + filename2 + ",file:/" + path + "\\" 
  51.       + fileName + ",4,false";  
  52.     System.out.println(result);  
  53.    }  
  54.  
  55.   }  
  56.  }  
  57.  
  58.  public List getFileList(String path) {  
  59.   path = getFormatPath(path);  
  60.   path = path + "/";  
  61.   File filePath = new File(path);  
  62.   if (!filePath.isDirectory()) {  
  63.    return null;  
  64.   }  
  65.   String[] filelist = filePath.list();  
  66.   List filelistFilter = new ArrayList();  
  67.  
  68.   for (int i = 0; i < filelist.length; i++) {  
  69.    String tempfilename = getFormatPath(path + filelist[i]);  
  70.    filelistFilter.add(tempfilename);  
  71.   }  
  72.   return filelistFilter;  
  73.  }  
  74.  
  75.  public String getString(Object object) {  
  76.   if (object == null) {  
  77.    return "";  
  78.   }  
  79.   return String.valueOf(object);  
  80.  }  
  81.  
  82.  public String getFormatPath(String path) {  
  83.   path = path.replaceAll("\\\\", "/");  
  84.   path = path.replaceAll("//", "/");  
  85.   return path;  
  86.  }  
  87.  
  88.  public static void main(String[] args) {  
  89.   new Test("D:\\software\\Flex_Builder_3\\com.adobe.flexbuilder.update.site\\plugins").print();  
  90.  }  

MyEclipse 7.1插件安装步骤2.修改路径

Java代码

 
 
 
  1. public static void main(String[] args) {  
  2.   new Test("D:\\software\\Flex_Builder_3\\com.adobe.flexbuilder.update.site\\plugins").print();  
  3.  } 

 改成自己的插件路径,

3.运行输出结果

把输出的结果复制到目录:

Genuitec\MyEclipse 7.0\configuration\org.eclipse.equinox.simpleconfigurator\bundles.info的最下边即可。

插件下载地址site-1.0.6.zip:

http://taoistwar.javaeye.com/topics/download/e250e285-b9eb-3c2b-9be0-cb6e0c552630

MyEclipse 7.1插件安装的过程就介绍到这里,是不是对你有所帮助呢?

【编辑推荐】

  1. MyEclipse UML架构设计浅谈
  2. Myeclipse7.0汉化详细图解
  3. MyEclipse7.0插件安装详细图解
  4. Myeclipse7.0 SVN插件安装步骤浅析
  5. MyEclipse6.0下Weblogic9.0安装配置使用详谈

网站名称:MyEclipse7.1插件安装详解
文章网址:http://www.hantingmc.com/qtweb/news24/334924.html

网站建设、网络推广公司-创新互联,是专注品牌与效果的网站制作,网络营销seo公司;服务项目有等

广告

声明:本网站发布的内容(图片、视频和文字)以用户投稿、用户转载内容为主,如果涉及侵权请尽快告知,我们将会在第一时间删除。文章观点不代表本网站立场,如需处理请联系客服。电话:028-86922220;邮箱:631063699@qq.com。内容未经允许不得转载,或转载时需注明来源: 创新互联