MyEclipse8.0插件安装+汉化(附Aptana2.0插件安装)【JavaEye.2009-12-06】

最近在Ajava上看到MyEclipse8.0的正式版下载,就尝了个鲜,下载地址竟然是MyEclipse官网的下载地址,对于竟然能下载成功有些奇怪,貌似传说它的官网限制中国的IP.

附上各种资源的下载地址

MyEclipse 8.0:

http://downloads.myeclipseide.com/downloads/products/eworkbench/galileo/myeclipse-8.0.0-win32.exe

MyEclipse 8.0 汉化包:

http://ajava.org/tool/myeclipse/16251.html

Aptana2.0 plug for Eclipse:

http://download.csdn.net/source/1855235

(由于Aptana官方网站上只有Aptana平台及Eclipse插件的在线安装,这个是我从别人手里弄来的插件包,如果Aptana的插件不能下载,可以给我留言,留下你的邮箱)

首先,咱不对MyEclipse的取消link方式安装插件甚至把插件做成巨型软件等做法多做评论。 (虽然恶心这个…)

MyEclipse 8.0下载安装好之后,打开新建如下Class:

import java.io.File;   
import java.util.ArrayList;
import java.util.List;

/**
* MyEclipse 8.0安装插件代码生成器
* @author FL-soft
* @version 1.0
*/

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].substring(0, filenames[1].lastIndexOf("."));
result = filename1 + "," + filename2 + ",file:/" + path + "\\"
+ fileName + "\\,4,false";
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[1].substring(0, filenames[1].lastIndexOf("."));
result = filename1 + "," + filename2 + ",file:/" + path + "\\"
+ fileName + ",4,false";
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("C:\\myEclipse\\language\\plugins").print();

//插件路径 //友情提示:上面C:\\myEclipse\\language\\plugins是你的要安装的插件中的plugins文件夹的路径 } }

 

posted @ 2009-12-06 18:34  Mr.Fan  阅读(756)  评论(0)    收藏  举报