MyEclipse 7.1插件安装详解

开发 后端
MyEclipse 7.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安装配置使用详谈
责任编辑:仲衡 来源: JavaEye
相关推荐

2010-05-20 18:38:53

Myeclipse7.

2009-03-18 11:27:24

MyEclipse 7IDEMyEclipse新版

2009-07-10 10:30:29

MyEclipse7.

2009-06-24 09:56:27

MyEclipse7.

2009-07-10 10:38:00

SVN插件Myeclipse7.

2009-06-24 16:57:47

MyEclipseJavaCC插件

2009-03-17 09:48:45

MyEclipseRADJava

2010-05-26 16:52:55

SVN插件

2010-05-20 11:37:09

安装SVN插件

2009-09-23 13:23:12

Hibernate M

2010-05-20 09:29:08

安装SVN插件

2009-06-18 14:28:24

Eclipse中添加M

2009-09-04 10:45:18

MyEclipse使用

2009-07-15 13:39:13

2009-03-18 11:36:21

代理服务器下载MyEclipse7.

2009-07-15 14:08:06

MyEclipse T

2009-09-09 09:53:02

MyEclipse W

2010-05-20 11:12:13

SVN插件安装

2012-04-25 09:31:55

MyEclipseJava

2009-07-14 08:56:34

点赞
收藏

51CTO技术栈公众号