User Tools

Site Tools


eclipse

This is an old revision of the document!


Eclipse

Configuration

Organise Imports

  • Automatically organise imports: Ctrl+Shift+O
  • Static import: Ctrl+Shift+M

To exclude annoying packages or classes when doing automatic organisation of imports with Ctrl+Shift+O create a a “Type Filter” under Windows → Preferences → Java → Appearance → Type Filters.

Most annoying for me are JUnit 3, awt, Joda time:

java.awt.*
junit.*
org.joda.*

Source: http://blog.vogella.com/2009/04/01/eclipse-organize-imports-filter

SubClipse

For *buntu 16.04 and Eclipse Oxygen:

sudo apt-get install libsvnclientadapter-java

Specify the folder where libsvnjavahl-1.so is located as library path in eclipse.ini (the line must come directly after -vmargs)

-vmargs
-Djava.library.path=/usr/lib/x86_64-linux-gnu/jni

see also https://github.com/subclipse/subclipse/wiki/JavaHL-on-Linux

Troubleshooting

eclipse.1501838824.txt.gz · Last modified: 2017/08/04 11:27 by mstraub