Stop HTML and XHTML line wrapping

I’m always using the eclipse formatter but formatting XHTML or HTML files simply destroys readability with default settings. To get rid of this simply change the line width to 999 in Web -> HTML Files -> Editor -> Line width. You can also turn it of for XML under XML > XML Files > Editor > Line width

Eclipse Luna Performance

To speedup eclipse I first edited the eclipse.ini file to look like this (don’t just copy paste my file – compare it with yours):

I removed lines setting MaxPermSize as this is deprecated in Java 8. What I added:

  • Using vm argument to have eclipse running as “eclipse” and not “java”. I think this also brings a performance boost.
  • Changed requiredJavaVersion to 1.7 as 1.6 is dead.
  • Added more memory to Xms and Xmx.
  • Added Xss to configure stack memory.
  • Added verify:none to disable java class verification. Here some explanation I found what this does (till today I had no problems with this):
  • Configured the author name to override logged in username.

Method must have signature “String method(), String method(),…

Under Eclipse Luna (4.4) M6 my JSF project gave exceptions like the following when I had EL snipplets like

And here the error in eclipse:

I could not figure out what should be wrong with my code and it works well and there were no complaints in older eclipse versions. So I decided to switch off the responsible validation  under Window > Preferences > Web > JavaServer Faces Tools > Validation > Type Assignment Problems > Method expression signature incompatibility.

Remove Eclipse Search Field / Quick Search

I never used the quick search field and there is no possibility to remove it from within eclipse as the request to be able to disable it seems to have very low priority in the dev team.

I’m watching the bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=362420 from the very beginning and now someone posted the hint to remove it via css.

Open the file eclipse/plugins/org.eclipse.platform_<version>/css/e4_basestyle.css and add the following at the end of the file:

After that you have to restart eclipse. After that the quick search should be gone.

m2e Java heap space

I got the following error during eclipse startup:

To solve this just delete the .cache folder in your M2_REPO directory (default ~/.m2/repository/.cache)

Eclipse: JBoss very slow in Debug mode

I had the problem that starting my jboss application server was veeeeery slow – don’t know how long it would have taken as I always killed it after a few minutes. After some experiments with more memory without a change I removed all my breakpoints in the debug view of eclipse and voilá – it works again.

So just delete all your breakpoints under window => show view => other… => breakpoints.

JBoss AS 7.1 Eclipse Startup Warning

Since 7.1 the following warning appears during server startup:

WARNING: -logmodule is deprecated. Please use the system property ‘java.util.logging.manager’ or the ‘java.util.logging.LogManager’ service loader.

This can be fixed be removing the following part from the launch configuration in the “Program arguments” section:

-logmodule org.jboss.logmanager