MyEclipse Install SVN plugin does not show problem resolution

Source: Internet
Author: User
Tags object object svn
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.