1、myeclipse安装目录:D:\Program Files\Genuitec
2、插件文件目录:D:\Program Files\eclipse-plugins\designer
运行如下程序:
import java.io.File;
import java.util.ArrayList;
import java.util.List;
public class CreatePluginsConfig {
public CreatePluginsConfig(){
}
public void print(String path){
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){
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 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){
//插件文件所在目录designer下的目录结构是eclipse/features and plugins的形式
String plugin = "D:\\Program Files\\Genuitec\\eclipse-plugins\\designer";
new CreatePluginsConfig().print(plugin);
}
}
将打印出来的插件配置信息复制到
D:\Program Files\Genuitec\MyEclipse 7.0\configuration\org.eclipse.equinox.simpleconfigurator\bundles.info中。
用-clean命令重启myeclipse即可。
本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/zwhfyy/archive/2009/06/18/4279939.aspx
分享到:
相关推荐
MyEclipse7.0 安装Spket插件安装加配置MyEclipse7.0 安装Spket插件安装加配置MyEclipse7.0 安装Spket插件安装加配置MyEclipse7.0 安装Spket插件安装加配置MyEclipse7.0 安装Spket插件安装加配置MyEclipse7.0 安装...
jbpm-jpdl-designer-nodeps-3.0.13.zip jdpm编辑器 myeclipse插件
3.选择myeclipse7.0的 windows->open perspective->myeclipse database explorer 在db browser视图中对myeclipse derby单击右键,选择open connection启动系统默认derby数据库(注:为了测试hibernate,所以需要存取...
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 ...
详细介绍了如何在MyEclipse 8.5以上版本中安装jbpm-gpd-site.zip的步骤,还介绍了如何配置jpdl.xml文件标签的提示功能。
MyEclipse 7.0G安装插件代码生成器
MyEclipse7.0 注册码 序列号 Java版注册机源代码 MyEclipse7.0 下载地址,里面有注册码下载地址很快,还有安装程序,很详细
直接覆盖 myeclipse dropins 文件夹 将里面 link 文件patch修改成你myeclipse安装地址下的 dropins 下的activiti-designer-5.18.0
不用下载附件了,哈哈 MyEclipse 7.0 M1注册码 Subscriber:MaYong Subscription Code:ZLR8ZO-655444-54678656985359684
myeclipse7.0安装以及配置SVN插件指导
myeclipse7.0注册码 myeclipse7.0注册码 myeclipse7.0注册码 myeclipse7.0注册码
MyEclipse 7.0 M1 新版本修改了环境bugs,并且支持新的Eclipse 3.4/Ganymede 平台,更好的JavaScript工具,专业的JSDT实现,改进的报表工具和MyEclipse的扩展JSF工具。 The MyEclipse 7.0 M1 release is a ...
MyEclipse7.0 下载地址: downloads.myeclipseide.com/downloads/products/eworkbench/7.0M1/MyEclipse_7.0M1_E3.4.0_Installer.exe http://downloads.myeclipseide.co ... 3.4.0_Installer.exe 1、建立java ...
Myeclipse 7.0 注册码 Myeclipse 7.0 注册码 Myeclipse 7.0 注册码 Myeclipse 7.0 注册码 Myeclipse 7.0 注册码 Myeclipse 7.0 注册码
Myeclipse6.5安装jBPM3.2.3操作方法
myeclipse2017装activiti-designer-5.18.0插件亲测可用 1、直接解压到myeclipse2017的dropins目录下 2、将activiti.link的path改成自己myeclipse目录 3、重启myeclipse
基于jdk5.0 MyEclipse 7.0 KeyGen 与插件安装程序,这是为了方便使用JDK5.0的朋友
myEclipse7.0安装CVS需要的相关文件myEclipse7.0安装CVS需要的相关文件
使用myeclipse语言插件必须是您第一次安装myeclipse的路径是: Pulse Install Dierctory ---> D:\Myeclipse\MyEclipse Common directroy ---> D:\Myeclipse\Common Pulse Install Dierctory意思是你的myeclipse运行...
myEclipse7.0破解文件myEclipse7.0破解文件