User Tools

Site Tools


eclipse

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
eclipse [2017/08/04 11:27]
mstraub [Troubleshooting]
eclipse [2021/07/12 22:27] (current)
mstraub [Scroll bars too small]
Line 2: Line 2:
  
 ===== Configuration ===== ===== Configuration =====
 +
 +==== Migrate launch configurations =====
 +
 +To migrate launch configs between different workspaces simply copy the .launch files from:
 +
 +<​code>​
 +/​eclipse-workspace/​.metadata/​.plugins/​org.eclipse.debug.core/​.launches
 +</​code>​
  
 ==== Organise Imports ==== ==== Organise Imports ====
Line 10: Line 18:
 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''​. 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:+My current list:
 <​code>​ <​code>​
 +scala.*
 java.awt.* java.awt.*
 junit.* junit.*
Line 17: Line 26:
 </​code>​ </​code>​
  
-Source: [[http://​blog.vogella.com/​2009/​04/​01/​eclipse-organize-imports-filter]]+===== SVN support =====
  
-===== SubClipse ===== +As of 2018 the subversive project seems to be dead, so we must use subclipseInstall it from the Eclipse ​Marketplace and then:
- +
-For *buntu 16.04 and Eclipse ​Oxygen:+
  
 <code bash> <code bash>
-sudo apt-get install libsvnclientadapter-java+sudo apt install libsvnclientadapter-java
 </​code>​ </​code>​
  
Line 39: Line 46:
  
 see [[kubuntu|KDE 5 / Kubuntu Tipps &amp; Tricks]] see [[kubuntu|KDE 5 / Kubuntu Tipps &amp; Tricks]]
 +
 +==== Scroll bars hide content ====
 +
 +Start with:
 +<code bash>
 +GTK_OVERLAY_SCROLLING=0 ​
 +</​code>​
 +
 +This will permanently reserve place for the scroll bars and no content will be hidden.
 +
 +See https://​bugs.eclipse.org/​bugs/​show_bug.cgi?​id=519728
 +
 +==== Scroll bars too small ====
 +
 +Using Kubuntu 20.04 I don't like the miniscule scroll bars that slightly widen when hovering over them. Setting a min size works as follows:
 +
 +Edit .config/​gtk-3.0/​gtk.css and add these lines:
 +
 +<​code>​
 +.scrollbar.vertical slider, scrollbar.vertical slider {
 +    min-width: 7px;
 +}
 +.scrollbar.horizontal slider, scrollbar.horizontal slider {
 +    min-height: 7px;
 +}
 +</​code>​
 +
 +==== Autocompletion not working properly =====
 +
 +This happens sometimes when upgrading a workspace to a new version of Eclipse (most recently to me when upgrading vom 2018.09 to 2018.12).
 +
 +Window->​Preferences->​Java->​Editor->​Content Assist->​Advanced
 +
 +Now make sure the following are all ticked in the top and bottom sections:
 +
 +  * Java Non-Type Proposals
 +  * Java Proposals
 +  * Java Type Proposals
 +
 +Apply the changes and then close and re-open your project and it will build the autocompletions which will then become available when you hit Ctrl-Space.
 +
 +Source: https://​www.chrisnewland.com/​solved-eclipse-java-autocomplete-not-working-259
  
eclipse.1501838824.txt.gz · Last modified: 2017/08/04 11:27 by mstraub