Eclipse Tuning
From UbikWiki
(Difference between revisions)
(add category) |
(formatter) |
||
Line 27: |
Line 27: | ||
</source> | </source> | ||
- | == Configuration depending on RAM == | + | === Configuration depending on RAM === |
For 1GO: | For 1GO: | ||
-XX:PermSize=128m | -XX:PermSize=128m | ||
Line 39: |
Line 39: | ||
-Xms1024m | -Xms1024m | ||
-Xmx1024m | -Xmx1024m | ||
+ | |||
+ | == Formatter == | ||
+ | |||
+ | In cooperative work developpers have to use the same format policy for source code. This can be done in Eclipse in: | ||
+ | '''Windows>Preferences>Java>Code style>Formatter''' | ||
+ | |||
+ | There you can create, edit, import or export your formatter profile. | ||
+ | The maximum Line width (Line Wrapping tab) or the identation type can be modified in this preferences menu. | ||
[[Category:Eclipse Tips]] | [[Category:Eclipse Tips]] | ||
[[Category:Tips and Tricks]] | [[Category:Tips and Tricks]] |
Revision as of 13:34, 2 February 2009
Eclipse.ini
In Eclipse folder (where you find eclise.exe), open the file called eclipse.ini:
-showlocation -consolelog -showsplash org.eclipse.platform --launcher.XXMaxPermSize 256M -framework plugins\org.eclipse.osgi_3.4.2.R34x_v20080826-1230.jar -vm C:\JDKs\jdk1.6.0_10\bin\javaw.exe -vmargs -Dosgi.requiredJavaVersion=1.5 -Xms512m -Xmx512m -XX:PermSize=128m -XX:MaxPermSize=128m -XX:+CMSPermGenSweepingEnabled -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -XX:+PrintGCDetails -XX:+UseAdaptiveSizePolicy -XX:MaxGCPauseMillis=5000 -Xloggc:C:/temp/gc
Configuration depending on RAM
For 1GO: -XX:PermSize=128m -XX:MaxPermSize=128m -Xms512m -Xmx512m
For 2GO: -XX:PermSize=256m -XX:MaxPermSize=256m -Xms1024m -Xmx1024m
Formatter
In cooperative work developpers have to use the same format policy for source code. This can be done in Eclipse in: Windows>Preferences>Java>Code style>Formatter
There you can create, edit, import or export your formatter profile. The maximum Line width (Line Wrapping tab) or the identation type can be modified in this preferences menu.