1. Download the latest SVN package:
http://subclipse.tigris.org/servlets/ProjectDocumentList?folderID=2240
2. Create a folder anywhere on your disk: "MYPLUGINS/SVN". Name can be taken, in order to facilitate the management of plugins, the proposed name is "Myplugins".
3. Copy the extracted two folders from svn to "MYPLUGINS/SVN".
4. Copy the following Java code, modify the path and execute:
Import Java.io.file;import java.util.arraylist;import java.util.list;/** * @Description MyEclipse9 plug-in Configuration code generator * @author H Uangzhongjie * @mail [email protected] * @date 2015-4-14 */public class Pluginconfigcreator {public Pluginconfigcrea Tor () {}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 ("_");/Last underscore position string filename1 = filename.substring (0, final); 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);p ath = 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 tem Pfilename = 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 ("////", "/");p ath = Path.replaceall ("//", "/"); return PA th;} public static void Main (string[] args) {/* Your plugin's installation directory */string plugin = "Change to installation directory//genuitec//svn";New Pluginconfigcreator (). print (plugin);}}
It is important to note that the modification becomes the path of the SVN, and it is recommended to change to an absolute path. Like d:/myplugins/svn/...
5, find "$myeclipse _home/configuration/org.eclipse.equinox.simpleconfigurator/", open the "Bundles.inf" file, in order to prevent confusion is not Is our own after add things, in the back of the car several times, and then paste the 4th step after running the code, save
6. Restart MyEclipse
MyEclipse Installing the SVN plugin is a sure way