1樓 TaoistWar 2009-04-09
MyEclipse工具的插件安裝從7.1開始變的垃圾了,大概是不想讓用戶裝別的公司的插件吧。
現有如下方法安裝其它插件:
1.復制如下代碼
import java.io.File; import java.util.ArrayList; import java.util.List; /** */ /** * Descript: * * */ public class Test { private String path; public Test(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]; 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]; 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("http://", "/"); return path; } public static void main(String[] args) { new Test("D:\\software\\Flex_Builder_3\\com.adobe.flexbuilder.update.site\\plugins").print(); } }
2.修改路徑
把
public static void main(String[] args) { new Test("D:\\software\\Flex_Builder_3\\com.adobe.flexbuilder.update.site\\plugins").print(); }
改成自己的插件路徑,
3.運行輸出結果
把輸出的結果復制到目錄:Genuitec\MyEclipse 7.0\configuration\org.eclipse.equinox.simpleconfigurator\bundles.info的最下邊即可。
site-1.0.6.zip (6.7 MB) 下載次數: 150
2樓 TaoistWar 2009-05-20
附件site-1.0.6.zip(6.7MB)是SVN的插件
3樓 TaoistWar 2009-05-20
wzh221300寫道
今天試著安裝個svn插件插件位置:\Genuitec\MyEclipse7.1\dropins\svnEclipse\eclipse\features和Genuitec\MyEclipse7.1\dropins\svnEclipse\eclipse\plugins重啟myeclipse后還是沒有成功啊!!!!!!!!!!!!!
剛用了\Genuitec\MyEclipse7.1\dropins這種方法,可以成功的.SVN版本1.0.6.zip
我的文件目錄為:
\Genuitec\MyEclipse7.1\svn
\Genuitec\MyEclipse7.1\svn\features
\Genuitec\MyEclipse7.1\svn\plugins
剛開始我把插件解壓不通用,我把site.xml刪除后,電腦重啟了一下,就可以用了.
4樓 wzh221300 2009-05-19
今天試著安裝個svn插件插件位置:\Genuitec\MyEclipse7.1\dropins\svnEclipse\eclipse\features和
Genuitec\MyEclipse7.1\dropins\svnEclipse\eclipse\plugins
重啟myeclipse后還是沒有成功啊!!!!!!!!!!!!!
5樓 TaoistWar 2009-04-27
引用
han2000lei2009-04-19回復刪除
今天又研究了一下,其實不像你所說的那樣。
現在的插件安裝方法比以前的更加方便,根本用不著編寫程序。只要在\Genuitec\MyEclipse7.1\dropins文件夾下來放置你的插件即可。而且連以前的links文件夾都可以省去不要了。只要你的插件符合這樣的路徑:
(dropins-------》插件文件夾-----》eclipse-------》plugins+features)。
簡單說來就是簡化了以前的links安裝方式,直接將插件拷到dropins下面,而去掉了那個links文件夾及其編寫的內容
的確如你所說的,但是這樣反而不靈活了,如果那樣,我在別的地方通用的插件就需要再復制一份了.到底怎么設置只有各憑所好了
6樓 han2000lei 2009-04-19
今天又研究了一下,其實不像你所說的那樣。
現在的插件安裝方法比以前的更加方便,根本用不著編寫程序。只要在\Genuitec\MyEclipse7.1\dropins文件夾下來放置你的插件即可。而且連以前的links文件夾都可以省去不要了。只要你的插件符合這樣的路徑:
(dropins-------》插件文件夾-----》eclipse-------》plugins+features)。
簡單說來就是簡化了以前的links安裝方式,直接將插件拷到dropins下面,而去掉了那個links文件夾