It is recommended that you install the following steps when you cannot display: 1. Download svn plugin: Direct download 2. Select an idle disk to create the plug-in file, mine is D:\ProgramData\MyEclipse\svn; 3. Extract the features and plugins folder from the SVN plugin, copy it into D:\PROGRAMDATA\MYECLIPSE\SVN, other *.xml files and other files. 4. Write the following code, find MyEclipse installation directory, in the installation directory Configuration\org.eclipse.equinox.simpleconfigurator this directory has a Bundles.info file, you need to add information about the plugin in this file (the result of the code output below) MyEclipse will not be loaded.
Import Java.io.File;
Import java.util.*; public class Pluginconfigcreato {
Public Pluginconfigcreato () {
}
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 Getformatpath (string path) {
Path = Path.replaceall ("\\\\", "/");
Path = Path.replaceall ("//", "/");
return path;
}
Public String getString (Object object) {
if (object ==null) {
Return "";
}
return String.valueof (object);
}
public static void Main (string[] args) {
String Path = "D:\\PROGRAMDATA\\MYECLIPSE\\SVN";
New Pluginconfigcreato (). print (path);
}
}
5. Restart MyEclipse, and in Window-preferences-team view, if you have SVN instructions to install successfully.