MyEclipse 10 optimization

Source: Internet
Author: User
Tags object object jboss

MyEclipse 10 optimization Blog Category: 
    • Development software

First, Myeclipse10 modify the fontThe MYECLIPSE10 is based on the Eclipse3.7 kernel, but the Courier New font is not found in Eclipse's preferences-〉general-〉appearance->colors and Fonts. It is Consolas font, Chinese look very small very awkward, under Windows7, the system comes with a courier new font, but does not activate the display, you need to activate manually, in order to use the activation method in the software is as follows: In the Win7 Control Panel, font, Find Courier New, right-click, display. Courier General, right-click, display. Window-->preferences--> Search Font-->color and font-->basic-->text font-->edit--> Courier New--> Regular---No. Fourth
Second, MyEclipse modify JSP, XML default open mode  window-->preferences-->general-->editors-->file Associations--> Select File type--> associated editors Select default open with (default) Third, myeclipse modify the compilation compatibility level _compiler compliance levels   Window-->preferences-->java-->compiler--Compiler compliance level-->1.6
Four, Modify MyEclipse Encoding: text+jsp   1. window-->preferences--> Search Jsp-->myeclipse-->files and Editors-->jsp-->encoding-->utf-8 2. Window-->preferences-->general-->workspace-->text file Encoding-->other-->utf-8
V, MyEclipse Modify JBoss Memory size   myeclipse menu bar:preferences--> Search jboss-- >jboss7.x-->jdk--optional Java VM Arguments add the following code:-xms512m-xmx1024m-xx:maxnewsize=256m-xx:maxpermsize=256m

Six, always pop-up quick update error, turn off the myeclipse quick update Automatic Updates featureThe solution to this problem is to turn off automatic UpdatesWindows > Preferences > MyEclipse Enterprise Workbench > Community Essentials, put the option "Search for new FEA Tures on startup "The front hook can be removed.
Seven, close updating indexes Window > Preferences > MyEclipse Enterprise Workbench > Maven4myeclipse > maven> disable Download repository Index updates on startup. Note: To highlight a problem, many people find it impossible to find this because it is actually closed. Eight, close myeclipse automatic validation validation have a bunch, what XML, JSP, JSF, JS and so on, we do not have to go to the automatic check, Only when necessary to manually check, speed immediately improve several grades 8.1 Cancel MyEclipse automatically verify the Project profile at startup by default MyEclipse automatically verifies the profile of each project at startup, which is a time-consuming process that you can select MyEclipse in the Preferences window- Validation, and then just keep the Manual item in the validator list on the right. If you need to verify the time only need to select the file, and then right-click on the Myeclipse-run validation.windows–>perferences–>myeclipse–>validation except manual below all points off, build under only left Classpath dependency Validator 8.2 Manual Verification Method: Right-click on the file you want to verify –>myeclipse–>run validation Nine, close spell checkSpell check will bring us a lot of trouble, our method of naming will be the abbreviation of the word, he will also suggest mistakes, so it is best to remove, not much use: windows–>perferences–>general–>validation-> Editors->text editors->spelling-->enable spell Checking 10, start the optimization, close the module that do not need to useA system 20% function is often able to meet 80% of the requirements, MyEclipse is no exception, we only need 20% of the system function most of the time,so you can disable the loading of some modules that are not in use. Window > Preferences > General > Startup Andy Shutdown is listed here MyEclipse the module loaded at startup I just let it load tomcat5 tick Mye Clipse Easie Tomcat 5. How do you know which startup items are useful?  I now know the use of the start-up to say, there are many do not understand, I hope you understand the reply in the following AH: WTP: A thing similar to MyEclipse, the main difference is that WTP is free, if you use MyEclipse, this can be canceled Mylyn: Team task management tools, similar to CVS, manage project progress in a task-based way, useless to cancel Derby: A database that is saved as a jar, and I don't use it to cancel a large row of MyEclipse Easie start items: myecli PSE supports the server, only choose their own, other cancellations, such as I only chose Tomcat. (Personal configuration:myeclipse Easie only keep Tomcat6 and JBOSS7, others do not move )

Xi. increase the non-heap memory of the JVM

Open Myeclipse.ini-startup . /common\plugins\org.eclipse.equinox.launcher_1.0.101.r34x_v20081125.jar  --launcher.library . /common\plugins\org.eclipse.equinox.launcher.win32.win32.x86_1.0.101.r34x_v20080731  -clean -configuration  configuration -vm  C:\Users\lenovo\AppData\Local\Genuitec\Common\binary\com.sun.java.jdk.win32.x86_ 1.6.0.013\jre\bin\client\jvm.dll -vmargs  -xmx384m -XX:MaxPermSize= 384m -xx:reservedcodecachesize=96m

The above is my myeclipse.ini, need to modify is-xmx,-xx:maxpermsize,-xx:reservedcodecachesize, will be the value of these three items to increase, but not bigger the better, Once tested under the same conditions (memory 2GB), the value of-xmx,-xx:maxpermsize 384m is faster than 512m (depending on the specific computer), -xmx,-xx:maxpermsize is set to the same size and the sum of the two cannot exceed the memory size of your computer itself

12, myeclipse10 add SVN plugin

Speaking of plugins, myeclipse since 8. x start, plug-in installation becomes very difficult to use, usually preferably offline installation, online installation is likely to be problematic, the following is only an example of SVN installation, other such as Adt15,aptana, etc. can be used

1. First download the SVN package: svn-1.6 2. Unpack the SVN package and find two of the folders: Features and plugins 3. Create a folder (location and name It's OK, Mine is E:\MYECLIPSEPLUGIN\SVN), Then put the second step of the extracted features and plugins into this folder 4. Find the installation directory for MyEclipse, there is a configuration\ Org.eclipse.equinox.simpleconfigurator\bundles.info file. Now all you have to do is add something inside the file 5. The added content is generated using the following class:

Java code 
  1. Import java.io.File;
  2. Import java.util.ArrayList;
  3. Import java.util.List;
  4. /**
  5. * MYECLIPSE9 plug-in Configuration code generator
  6. */
  7. Public class pluginconfigcreator
  8. {
  9. Public pluginconfigcreator ()
  10. {
  11. }
  12. Public void print (String path)
  13. {
  14. list<string> list = getfilelist (path);
  15. If (list = = null)
  16. {
  17. Return
  18. }
  19. int length = List.size ();
  20. For (int i = 0; i < length; i++)
  21. {
  22. String result = "";
  23. String thepath = Getformatpath (getString (List.get (i)));
  24. File File = new file (thepath);
  25. If (File.isdirectory ())
  26. {
  27. String fileName = File.getname ();
  28. If (Filename.indexof ("_") < 0)
  29. {
  30. Print (Thepath);
  31. Continue
  32. }
  33. string[] filenames = Filename.split ("_");
  34. String filename1 = filenames[0];
  35. String filename2 = filenames[1];
  36. result = filename1 + "," + filename2 + ", file:/" + path + "/"
  37. + fileName + "\\,4,false";
  38. SYSTEM.OUT.PRINTLN (result);
  39. } Else if (File.isfile ())
  40. {
  41. String fileName = File.getname ();
  42. If (Filename.indexof ("_") < 0)
  43. {
  44. Continue
  45. }
  46. int last = Filename.lastindexof ("_"); The position of the last underline
  47. String filename1 = filename.substring (0, last);
  48. String filename2 = filename.substring (last + 1, fileName
  49. . Length ()- 4);
  50. result = filename1 + "," + filename2 + ", file:/" + path + "/"
  51. + fileName + ", 4,false";
  52. SYSTEM.OUT.PRINTLN (result);
  53. }
  54. }
  55. }
  56. Public list<string> getfilelist (String path)
  57. {
  58. Path = Getformatpath (path);
  59. Path = path + "/";
  60. File FilePath = new file (path);
  61. If (!filepath.isdirectory ())
  62. {
  63. return null;
  64. }
  65. string[] filelist = Filepath.list ();
  66. list<string> filelistfilter = new arraylist<string> ();
  67. For (int i = 0; i < filelist.length; i++)
  68. {
  69. String tempfilename = getformatpath (path + filelist[i]);
  70. Filelistfilter.add (TempFileName);
  71. }
  72. return Filelistfilter;
  73. }
  74. Public String getString (Object object)
  75. {
  76. If (object = = null)
  77. {
  78. return "";
  79. }
  80. Return string.valueof (object);
  81. }
  82. Public string Getformatpath (string path)
  83. {
  84. Path = Path.replaceall ("\\\\", "/");
  85. Path = Path.replaceall ("//", "/");
  86. return path;
  87. }
  88. Public static void main (string[] args)
  89. {
  90. */* Your SVN's features and plugins directory after copying */
  91. String plugin = "F:\\MYECLIPSE10.0\\MYECLIPSEPLUGIN\\SVN";
  92. New Pluginconfigcreator (). print (plugin);
  93. }
  94. }

6. Add the above generated string (a lot of) to the fourth step after the Bundles.info file, and then restart the myeclipse.

MyEclipse 10 optimization

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.