Workaround for Myeclipse8.5 manual installation of Spket plugin after reinstall system

Source: Internet
Author: User

Because of my company's computer hardware is older, in the last few days the system suddenly appeared all kinds of errors, search on the internet all kinds of solutions can not save the system, only helpless reinstall system (Myeclipse8.5 I am not installed in the system disk), Open Myeclipse8.5, edit the JS code, as long as the JS code more than 200 lines, Myeclipse8.5 will inevitably appear unresponsive, let me very annoyed. Said here, some colleagues may laugh at me, you this kind of broken computer, edit the JS code MyEclipse can die. In fact, I also want to change the computer, unfortunately the company does not change (in fact, the leadership of our department is not capable). My Computer, Pentium E5700 CPU,4GB memory, but my colleague behind the computer is still 2GB of memory, I often see him waiting for the myeclipse compile. I am much relieved to see this. I swear to change places to work, first look at the computer configuration, poor computer configuration not to go (joking, but also to see money).

Hey, back to the point, since it is not possible to use a better-equipped computer, it can only be done in other ways to solve the MyEclipse edit JS code is often unresponsive. Of course, I know there is a call Spket tools, editing JS very good. First, in the Spket official website http://www.spket.com/download.html Download Spket plug-in, the current version is 1.6.23, click on the page "Plugin" to download. Download completed after decompression, 650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/6D/16/wKiom1Vb857C9XLzAABp3IT7hUM723.jpg "title = "11.jpg" alt= "Wkiom1vb857c9xlzaabp3it7hum723.jpg"/>

Then the "Features" and "plugins" copy, placed in the computer disk directory, I am in the e-disk program files under the site-1.10.6 folder. It may be said here that the "features" and "Plugins" folder can be directly placed in the MyEclipse directory under the Dropins directory, I can only say that this method does not pass, and some people say I can also use links to install, Extract the features and plugins folder, copy to D:\MyEclipse\myPlugin\svn inside, other *.xml files do not.
Create a new file Svn.link under E:\MyEclipse\MyEclipse9.0\dropins with the following: Path=e:\\myeclipse \\myPlugin\\svn save and restart MyEclipse. I've tried it, it's no use. Then we have to use the last way. Add the following

Package com;import java.io.file;import java.util.arraylist;import java.util.list;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 =  "";   &nbSp;         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";   &NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;SYSTEM.OUT.PRINTLN (Result) ;             } else if  (File.isfile ())  {                 String fileName  = file.getname ();                 if  (Filename.indexof ("_")  < 0)  {                     continue;                 }                 int last =  Filename.lastindexof ("_");//  the last underlined position                  string filename1 = filename.substring (0, last);          &nBsp;      string filename2 = filename.substring (last +  1,                         filename.length ()  - 4);                 result = filename1 +  ","   + filename2 +  ", file:/"  + path +  "/"                          +  fileName +  ", 4,false";             &NBSP;&NBSP;&NBSP;&NBSP;SYSTEM.OUT.PRINTLN (Result);             }        }    }     public list&Lt 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)  {         /*  your SVN plugin's features  and  plugins storage directory  */         String plugin =  "e:\\program files\\site-1.10.6" ;         new pluginconfigcreator (). Print (plugin);     }}

Run the code, open the MyEclipse installation directory with Notepad D:\Program Files (x86) \myeclipse 8.5\configuration\ Org.eclipse.equinox.simpleconfigurator\bundles.info, copy the contents of the console output, paste it at the bottom of the bundlse.info, and then restart the Myeclipse,spket plug-in installation is complete. As for how to configure the Spket in MyEclipse, please Baidu it yourself.

The above section is referenced from http://www.oschina.net/question/158170_34997

http://cruih.iteye.com/blog/898456, etc.

This article is from the "Java Side dish" blog, be sure to keep this source http://3440684.blog.51cto.com/3430684/1653077

Workaround for Myeclipse8.5 manual installation of Spket plugin after reinstall system

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.