执行以下代码,更改47行的path变量,指定插件文件所在目录designer(designer下的目录结构是eclipse/features and plugins的形式),然后按照输出信息操作即可。
package cn.it;
import java.io.File;
public class CfgInfo {
public void generateAndPrintConfigInfo(String pluginPath) {
File dir = new File(pluginPath);
if (!dir.isDirectory()) {
throw new RuntimeException("请提供一个正确插件的路径(目录)");
}
for (File file : dir.listFiles()) {
if (file.getName().indexOf("_") < 0) {
if (file.isDirectory()) {
generateAndPrintConfigInfo(file.getAbsolutePath());
}
continue;
}
if (file.isDirectory()) {
String[] filenames = file.getName().split("_");
String result = new StringBuilder(filenames[0])// 插件名?
.append(",").append(filenames[1])// 版本号?
.append(",file:/").append(file.getAbsolutePath())//
.append("\\,4,false")//
.toString();
System.out.println(result.replace("\\", "/"));
} else if (file.isFile()) {
String filename = file.getName();
int lastUnderline = filename.lastIndexOf("_");// 最后一个下划线的位置
String fn1 = filename.substring(0, lastUnderline);
String fn2 = filename.substring(lastUnderline + 1, filename.length() - 4); // 4是指".jar"扩展名的长度吗?
String result = new StringBuilder(fn1)//
.append(",").append(fn2)//
.append(",file:/").append(file.getAbsolutePath())//
.append(",4,false")//
.toString();
System.out.println(result.replace("\\", "/"));
}
}
}
public static void main(String[] args) {
// // 插件文件所在目录designer下的目录结构是eclipse/features and plugins的形式
String path = "J:\\MySpace\\openSource\\jbpm_jar\\jbpm-jpdl-3.2.2\\designer";
String info = new StringBuilder("\n插件的路径为:").append(path).append("\n")//
.append("/*-------------------------------------------------------------------\\ \n")//
.append("| 将下面的插件配置信息复制到: | \n")//
.append("| MyEclipse 7.0/configuration/org.eclipse.equinox.simpleconfigurator | \n")//
.append("| 文件夹下的 bundles.info 文件内容的最后。 然后重启 myeclipse 即可。 | \n")//
.append("\\-------------------------------------------------------------------*/ \n")//
// .append("然后使用myeclipse -clean命令重启myeclipse即可。")//
.toString();
System.out.println(info);
new CfgInfo().generateAndPrintConfigInfo(path);
}
}
分享到:
相关推荐
MyEclipse 9.X破解工具,已经验证过,请放心使用
Myeclipse 8.x极限优化 Myeclipse 8.x极限优化 Myeclipse 8.x极限优化
MyEclipse_5.5.1GA_E3.2.2_FullStackInstaller.exe
MyEclipse 7.x 插件很难安装。研究了2天才实现了SVN插件的安装,下载本包(其内含有使用说明)。 解压即可使用,不用编写程序,不用重启系统,restart MyEclipse 7.x即可。
Myeclipse 10.x 破解补丁
MyEclipse 7.x 插件很难安装。研究了很久才实现了js 编辑插件Spket IDE的安装,下载本包(其内含有使用说明)。 解压即可使用,不用编写程序,不用重启系统,restart MyEclipse 7.x即可。
MyEclipse8.x 汉化 包括汉化语言包和汉化方法
myeclipse8.x 注册软件
myeclipse 9.x破解 10 应该也可以用 java编写的,跨平台
MyEclipse 9.x Win 破解 注册 激活 一键 修复
myeclipse 7.x 反编译插件jad安装说明+安装包
Myeclipse8.x的优化及插件配置[整理].pdf
该工具可以用于破解MyEclipse 10系列版本,同时可以进行标准的汉化。物超所值
svn插件 解压后放在、..\Genuitec\MyEclipse 8.x Latest\dropins下 重启MyEclipse 就可以用了
3、工具-->替换Jar文件..[选择你的MyEclipse9.x安装目录 (例如:D\...\MyEclipse\Common\plugins)] 4、文件类型,选择默认,点击打开(等待..) 5、输入 Usercode [用户名] 6、点击 SystemId... 7、点击 Active 8...
MyEclipse7.X_SVN插件安装图解详细步骤.docx
myeclipse9.X破解 绝对是最简单的,一键式操作! 具体操作可先看(有图): http://blog.csdn.net/yanghai0321/article/details/7094319
MyEclipse 10.x 完美破解+破解说明,网上的破解步骤都有问题,安装好myeclipse后,不要运行,不要运行,直接按照文档说明破解,必成功。
MyEclipse10.X 此破解文件支持 10.X所有版本,保证100%破解成功,团队内部使用破解神器
myeclipse 8.x 汉化包.具体操作如下: 由于8.x 引入插件方式变更,但在 8.x的 dropins 目下可以入其外部插件....如此时重启不成功可在其安装目录下,找到 myeclipse.ini 文件打开,在最后一行加入 -Duser.language=zh 即可