m9不再使用plugin方式安装插件了,网上找来其现用程度来安装,以SVN安装为例:
1.网上下载svn-eclipse-site-1.6.10.zip解压之到某个目录;
2.备份myeclipse9\configuration\org.eclipse.equinox.simpleconfigurator\bundles.info;
3.m9中新建一java类,内容如下:
package com;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
/**
* MyEclipse 7.5 (2009-12-1) 插件配置代码生成器
*
* 来自网络,出处已不详
*/
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:\\SetUp\\Java\\myeclipse9\\myplugin\\svn16";
new PluginConfigCreator().print(plugin);
}
}
String plugin = "C:\\SetUp\\Java\\myeclipse9\\myplugin\\svn16";这里的svn16下即是解压后的svn的plugin与features目录
运行该文件后,把控制台上生成的一长串全部追加拷贝到bundles.inf文件中;
4.重启m9.
- 浏览: 160095 次
- 性别:
- 来自: 武汉
最新评论
-
yogurt2012:
请问··我如果要调试H2数据库来分析其JOIN算法应该怎么做呢 ...
H2笔记 -
carlosfu:
很好很全,很有收获
Spring3笔记之 JDBC -
ponlya:
coldrush 写道看了你的配置 ,刚绝 file:后加绝对 ...
添加使用dtd文件 -
ponlya:
byp19980911 写道这不是很好的解决办法,最好是使用连 ...
java.net.SocketException:Software caused connection abort: socket write error -
ponlya:
ayanami001 写道为什么spring没有封装分页吗,那 ...
Spring3笔记之 JDBC(分页)
相关推荐
NULL 博文链接:https://huibin.iteye.com/blog/1101848
myEclipse9.0安装svn 插件安装
Myeclipse9安装svn插件,内含有myeclipse9安装SVN插件.doc,和svn插件 site-1.8.18.zip,本人已经实践过了,完成安装
myeclipse9的SVN插件及安装步骤,本人亲自测试成功!! 附带详细操作步骤 记得更改java文件中的路径
Myeclipse8.6安装svn插件 及 步骤说明
win7下myeclipse9的svn安装包及配置详细方法,本人亲测可用!
MyEclipse中安装SVN
Myeclipse8.6安装SVN
MyEclipse7.5安装SVN (线下安装)
MyEclipse9或10添加SVN教程和包及svn服务器软件 二个版本svn的包 doc教程 和制作svn服务器的软件 超值svn集合大礼包
Myeclipse8.5安装svn插件方法
下载后离线安装到myeclipse15.0(2017版本)版本的安装目录,保持myeclipse15.0关闭状态,找到dropins目录,把下载的资源(此处用1.8.22版本)以svn命名,放在次目录下,打开myeclipse,在windows---proference---team--...
MyEclipse8.5安装SVN MyEclipse8.5安装SVN
myEclipse8.6安装svn的操作步骤
myeclipse9.0安装svn插件方法及所有文件myeclipse9.0安装svn插件方法及所有文件myeclipse9.0安装svn插件方法及所有文件myeclipse9.0安装svn插件方法及所有文件myeclipse9.0安装svn插件方法及所有文件
用于Myeclipse2017SVN插件安装
详细描述了在myeclipse8.5中安装SVN 插件的几种不同的方法 可以方便的指导用户安装SVN插件!
myeclipse8下安装SVN插件方法
myeclipse10安装配置svn插件教程
myeclipse8.5安装SVN插件 的方法及插件