一、在MyEclipse中建立一Java Project
二、建立一普通的类,如 PluginConfigCreator.java
import java.io.File; import java.util.ArrayList; import java.util.List; public class PluginConfigCreator { public PluginConfigCreator() { } public void print(String path) { List<String> 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) { print(thePath); continue; } String[] filenames = fileName.split("_"); String filename1 = filenames[0]; String filename2 = filenames[1]; 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; } int last = fileName.lastIndexOf("_"); String filename1 = fileName.substring(0, last); String filename2 = fileName.substring(last + 1, fileName.length() - 4); result = filename1 + "," + filename2 + ",file:/" + path + "\\" + fileName + ",4,false"; System.out.println(result); } } } public List<String> getFileList(String path) { path = getFormatPath(path); path = path + "/"; File filePath = new File(path); if (!filePath.isDirectory()) { return null; } String[] filelist = filePath.list(); List<String> filelistFilter = new ArrayList<String>(); 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) { String plugin = "C:\\Users\\miao\\Downloads\\jar_lib\\jbpm\\jbpm-jpdl-suite-3.2.3\\jbpm-jpdl-3.2.3\\designer"; new PluginConfigCreator().print(plugin); } }
main.xml方法中的plugin属性代表需要安装的插件的路径。
三、运行程序,在控制台出现一大堆东西,然后复制:
1.打开MyEclipse目录
2.打开configuration
3.打开org.eclipse.equinox.simpleconfigurator
4.打开(用记事本)bundles.info
5.把从控制台复制出来的东东粘贴到该文件的尾部
6.重启MyEclipse,就OK了。插件装上了
四、demo
相关推荐
在MyEclipse6.0中安装FLEX插件的过程在MyEclipse6.0中安装FLEX插件的过程在MyEclipse6.0中安装FLEX插件的过程在MyEclipse6.0中安装FLEX插件的过程在MyEclipse6.0中安装FLEX插件的过程在MyEclipse6.0中安装FLEX插件的...
解决myeclipse安装jbpm后不能建web工程问题,我用的是myeclipse8.6的安装成功.
Eclipse(MyEclipse)离线插件安装工具 C:\>java -jar instPlug4MyEclipse.jar Use:java -jar instPlug4MyEclipse.jar PluginPath eclipsePath 如:java -jar instPlug4MyEclipse.jar D:/ADT-18.0.0 D:/myeclipse10 ...
myeclipse7.5安装JBPM4.4
Myeclipse6.5安装jBPM3.2.3操作方法
MyEclipse9.0安装JBPM 指南
Myeclipse8.6安装svn插件 及 步骤说明
(3) 在myeclipse安装目录下的dropins中创建eclipse文件夹,然后在eclipse文件夹中分别创建features、plugins文 件夹,将 net.sf.jadclipse_3.3.0.jar 分别拷贝到features和plugins文件夹中。 (4)重新启动...
有Myeclipse8.6安装freemarker插件的安装文档和所需要的压缩包,如果压缩包过时,还有下载最新压缩包的网址
eclipse JBPM插件的安装图解,myeclipse JBPM插件的安装图解
用于Myeclipse2017SVN插件安装
myeclipse2017破解插件myeclipse2017破解插件myeclipse2017破解插件myeclipse2017破解插件myeclipse2017破解插件myeclipse2017破解插件myeclipse2017破解插件myeclipse2017破解插件myeclipse2017破解插件myeclipse...
从网上找到的,总算在MyEclispe下能用了,特意发上来,给有需要的朋友一个方便! 安装方法: 直接解压,把解压得到的2个文件复制到MyEclipse安装目录下的eclipse下即可。MyEclipse6.0下测试通过。
依照自己的经验记录myeclipse安装离线插件的方法,希望对需要的人有所帮助
文档内详细说明了,Myeclipse的插件的安装步骤,以安装checkStyle和findBugs加以说明。
MyEclipse安装svn插件
1.svn插件安装 2.MyEclipse中svn插件安装 3.MyEclipse中svn插件使用方法
MyEclipse 10中的 JBPM 配置步骤
在myeclipse中安装插件svn,有兴趣的可以下载下来看看,有帮助的哦!