Difference between revisions of "Eclipse"

From ArchWiki
Jump to: navigation, search
m (Dots, clarification)
(Troubleshooting: White on white quick outline)
 
(52 intermediate revisions by 30 users not shown)
Line 1: Line 1:
 
[[Category:Development]]
 
[[Category:Development]]
 
[[it:Eclipse]]
 
[[it:Eclipse]]
 +
[[ja:Eclipse]]
 
[[ru:Eclipse]]
 
[[ru:Eclipse]]
 
[[zh-CN:Eclipse]]
 
[[zh-CN:Eclipse]]
[http://eclipse.org Eclipse] is an open source community project, which aims to provide a universal development platform. The Eclipse project is most widely known for its cross-platform integrated development environment (IDE). The Arch Linux packages (and this guide) relate specifically to the IDE.
+
[https://eclipse.org Eclipse] is an open source community project, which aims to provide a universal development platform. The Eclipse project is most widely known for its cross-platform integrated development environment (IDE). The Arch Linux packages (and this guide) relate specifically to the IDE.
  
 
The Eclipse IDE is largely written in Java but can be used to develop applications in a number of languages, including Java, C/C++, PHP, Perl and Python. The IDE can also provide subversion support and task management.
 
The Eclipse IDE is largely written in Java but can be used to develop applications in a number of languages, including Java, C/C++, PHP, Perl and Python. The IDE can also provide subversion support and task management.
Line 9: Line 10:
 
== Installation ==
 
== Installation ==
  
[[Pacman|Install]] the {{Pkg|eclipse}} package from the [[official repositories]].
+
[[Install]] one of the following packages:
This base package has [[Java]] development support built in.
+
 
 +
* {{Pkg|eclipse-cpp}}
 +
* {{Pkg|eclipse-java}}
 +
* {{Pkg|eclipse-php}}
 +
 
 +
You cannot install multiple of these at the same time since they conflict, see {{Bug|45577}}: choose the package above which most immediately fulfils your needs, and then add support for any additionally required languages through [[#Plugins]].
  
 
== Plugins ==
 
== Plugins ==
  
Many plugins are easily installed using '''pacman''' (see [[Eclipse plugin package guidelines]] for further informations). This will also keep them up-to-date. Alternatively, you can choose either the [[#Eclipse Marketplace|Eclipse Marketplace]] or the internal [[#plugin manager|plugin manager]].
+
Many plugins are easily installed using '''pacman''' (see [[Eclipse plugin package guidelines]] for further informations). This will also keep them up-to-date. Alternatively, you can choose either the [[#Eclipse Marketplace|Eclipse Marketplace]] or the internal [[#Plugin manager|plugin manager]].
  
 
=== Add the default update site ===
 
=== Add the default update site ===
  
Make sure that you first add the default update site for your installed version of Eclipse so that plugin dependencies can automatically be installed. The most current version of Eclipse is Juno and the default update site for Juno is: http://download.eclipse.org/releases/juno. Go to Help > Install new Software > Add, fill the name to easily identify the update site later - for instance, Juno Software Repository - and fill the location with the url.
+
Make sure that you check that the default update site for your version of Eclipse is configured so that plugin dependencies can automatically be installed. The most current version of Eclipse is Mars and the default update site for it is: http://download.eclipse.org/releases/mars. Go to Help > Install new Software > Add, fill the name to easily identify the update site later - for instance, Mars Software Repository - and fill the location with the url.
  
 
=== Eclipse Marketplace ===
 
=== Eclipse Marketplace ===
  
{{Note|make sure you've followed the [[#Add the default update site|Add the default update site]] section.}}
+
{{Note|make sure you have followed the [[#Add the default update site|Add the default update site]] section.}}
To use the Eclipse Marketplace, first you need to install it (hey, that fells familiar. I wonder why?). Go to Help > Install new software > switch to the default update site > General Purpose Tools > Marketplace Client. Restart Eclipse and it will be available in Help > Eclipse Marketplace.
+
To use the Eclipse Marketplace, install it first: go to Help > Install new software > Switch to the default update site > General Purpose Tools > Marketplace Client. Restart Eclipse and it will be available in Help > Eclipse Marketplace.
  
 
=== Plugin manager ===
 
=== Plugin manager ===
  
{{Note|make sure you've followed the [[#Add the default update site|Add the default update site]] section.}}
+
{{Note|make sure you have followed the [[#Add the default update site|Add the default update site]] section.}}
 
Use Eclipse's plugin manager to download and install plugins from their original repositories: in this case you have to find the needed repository in the plugin's website, then go to ''Help > Install New Software...'', enter the repository in the ''Work with'' field, select the plugin to install from the list below and follow the instructions.
 
Use Eclipse's plugin manager to download and install plugins from their original repositories: in this case you have to find the needed repository in the plugin's website, then go to ''Help > Install New Software...'', enter the repository in the ''Work with'' field, select the plugin to install from the list below and follow the instructions.
  
 
{{Note|
 
{{Note|
* If you install plugins with Eclipse's plugin manager, you are advised to launch Eclipse as root: this way the plugins will be installed in {{ic|/usr/share/eclipse/plugins/}}; if you installed them as normal user, they would be stored in a version-dependent folder inside {{ic|~/.eclipse/}}, and, after upgrading Eclipse, they wouldn't be recognized any longer.
+
* If you install plugins with Eclipse's plugin manager, you are advised to launch Eclipse as root: this way the plugins will be installed in {{ic|/usr/lib/eclipse/plugins/}}; if you installed them as normal user, they would be stored in a version-dependent folder inside {{ic|~/.eclipse/}}, and, after upgrading Eclipse, they would not be recognized any longer.
 
* Do not use Eclipse as root for your everyday work.
 
* Do not use Eclipse as root for your everyday work.
 
}}
 
}}
Line 39: Line 45:
 
Run Eclipse and select ''Help > Check for Updates''. If you have installed them as root as advised in the section above, you have to run Eclipse as root.
 
Run Eclipse and select ''Help > Check for Updates''. If you have installed them as root as advised in the section above, you have to run Eclipse as root.
  
For plugins to be updated, you should check to have their update repositories enabled in ''Window > Preferences > Install/Update > Available Software Sites'': you can find each plugin's repository(es) on the respective project website. To add, edit, remove... repositories just use the buttons on the right of the ''Available Software Sites'' panel. For Eclipse 4.2 (Juno), check you have enabled this repository:
+
For plugins to be updated, you should check to have their update repositories enabled in ''Window > Preferences > Install/Update > Available Software Sites'': you can find each plugin's repository(es) on the respective project website. To add, edit, remove... repositories just use the buttons on the right of the ''Available Software Sites'' panel. For Eclipse 4.5 (Mars), check you have enabled this repository:
  
  http://download.eclipse.org/releases/juno
+
  http://download.eclipse.org/releases/mars
  
 
To receive update notifications, go to ''Window > Preferences > Install/Update > Automatic Updates''. If you want to receive notifications for plugins installed as root, you should run Eclipse as root, go to ''Window > Preferences > Install/Update > Available Software Sites'', select the repositories related to the installed plugins and ''Export'' them, then run Eclipse as normal user and ''Import'' them in the same panel.
 
To receive update notifications, go to ''Window > Preferences > Install/Update > Automatic Updates''. If you want to receive notifications for plugins installed as root, you should run Eclipse as root, go to ''Window > Preferences > Install/Update > Available Software Sites'', select the repositories related to the installed plugins and ''Export'' them, then run Eclipse as normal user and ''Import'' them in the same panel.
Line 48: Line 54:
  
 
* {{App|AVR|AVR microcontroller plugin.|http://avr-eclipse.sourceforge.net/wiki/index.php/The_AVR_Eclipse_Plugin|{{AUR|eclipse-avr}}}}
 
* {{App|AVR|AVR microcontroller plugin.|http://avr-eclipse.sourceforge.net/wiki/index.php/The_AVR_Eclipse_Plugin|{{AUR|eclipse-avr}}}}
* {{App|Aptana|HTML5/CSS3/JavaScript/Ruby/Rails/PHP/Pydev/Django support. Also available as standalone application.|http://www.aptana.com/|{{AUR|eclipse-aptana}} {{AUR|aptana-studio}}}}
+
* {{App|Aptana|HTML5/CSS3/JavaScript/Ruby/Rails/PHP/Pydev/Django support. Also available as standalone application.|http://www.aptana.com/|{{AUR|eclipse-aptana}}{{Broken package link|{{aur-mirror|eclipse-aptana}}}} {{AUR|aptana-studio}}}}
* {{App|Eclipse CDT|C/C++ support.|http://www.eclipse.org/cdt/|{{Pkg|eclipse-cdt}}}}
+
* {{App|Eclipse CDT|C/C++ support.|https://www.eclipse.org/cdt/|{{Pkg|eclipse-cpp}}}}
* {{App|Eclipse PDT|[[PHP]] support.|http://www.eclipse.org/pdt/|{{AUR|eclipse-pdt}}}}
+
* {{App|Eclipse PDT|[[PHP]] support.|https://www.eclipse.org/pdt/|{{AUR|eclipse-pdt}}}}
* {{App|EGit|[[Git]] support.|http://www.eclipse.org/egit|{{AUR|eclipse-egit}}}}
+
* {{App|EclipseFP|[[Haskell]] support.|https://eclipsefp.github.io/|{{AUR|eclipse-eclipsefp}}{{Broken package link|{{aur-mirror|eclipse-eclipsefp}}}}}}
* {{App|EPIC|Perl support.|http://www.epic-ide.org/|{{AUR|eclipse-epic}}}}
+
* {{App|EGit|[[Git]] support.|https://www.eclipse.org/egit|{{AUR|eclipse-egit}}}}
 +
* {{App|EPIC|Perl support.|http://www.epic-ide.org/|{{AUR|eclipse-epic}}{{Broken package link|{{aur-mirror|eclipse-epic}}}}}}
 
* {{App|IvyDE|IvyDE dependency Manager.|https://ant.apache.org/ivy/ivyde/|{{AUR|eclipse-ivyde}}}}
 
* {{App|IvyDE|IvyDE dependency Manager.|https://ant.apache.org/ivy/ivyde/|{{AUR|eclipse-ivyde}}}}
* {{App|Markdown|Markdown editor plugin for Eclipse.|https://ant.apache.org/ivy/ivyde/|{{AUR|eclipse-markdown}}}}
+
* {{App|Markdown|Markdown editor plugin for Eclipse.|http://www.winterwell.com/software/markdown-editor.php|{{AUR|eclipse-markdown}}}}
* {{App|MercurialEclipse|[[Mercurial]] support.|http://www.winterwell.com/software/markdown-editor.php|{{AUR|eclipse-mercurial}}}}
+
* {{App|MercurialEclipse|[[Mercurial]] support.|https://bitbucket.org/mercurialeclipse/main/wiki/Home|{{AUR|eclipse-mercurial}}}}
* {{App|Mylyn|Task lists support.|http://www.eclipse.org/mylyn/|{{AUR|eclipse-mylyn}}}}
+
* {{App|Mylyn|Task lists support.|https://www.eclipse.org/mylyn/|{{AUR|eclipse-mylyn}}}}
 
* {{App|PHPEclipse|Alternative PHP support.|http://www.phpeclipse.com/|{{AUR|eclipse-phpeclipse}}}}
 
* {{App|PHPEclipse|Alternative PHP support.|http://www.phpeclipse.com/|{{AUR|eclipse-phpeclipse}}}}
 
* {{App|PyDev|[[Python]] support.|http://pydev.org/|{{AUR|eclipse-pydev}}}}
 
* {{App|PyDev|[[Python]] support.|http://pydev.org/|{{AUR|eclipse-pydev}}}}
 
* {{App|Subclipse|[[Subversion]] support.|http://subclipse.tigris.org/|{{AUR|eclipse-subclipse}}}}
 
* {{App|Subclipse|[[Subversion]] support.|http://subclipse.tigris.org/|{{AUR|eclipse-subclipse}}}}
* {{App|Subversive|Alternative Subversion support.|http://www.eclipse.org/subversive/|{{AUR|eclipse-subversive}}}}
+
* {{App|Subversive|Alternative Subversion support.|https://www.eclipse.org/subversive/|{{AUR|eclipse-subversive}}}}
 
* {{App|TestNG|TestNG support.|http://testng.org/doc/eclipse.html|{{AUR|eclipse-testng}}}}
 
* {{App|TestNG|TestNG support.|http://testng.org/doc/eclipse.html|{{AUR|eclipse-testng}}}}
* {{App|TeXlipse|[[LaTeX]] support.|http://texlipse.sourceforge.net/|{{AUR|texlipse}}}}
+
* {{App|TeXlipse|[[LaTeX]] support.|http://texlipse.sourceforge.net/|{{AUR|eclipse-texlipse}}}}
 +
* {{App|Eclipse PTP|Parallel Programming C/C++ support.|https://www.eclipse.org/ptp/|{{AUR|eclipse-ptp}}}}
 +
* {{App|Checkstyle|Eclipse Checkstyle support.|http://eclipse-cs.sourceforge.net/|{{AUR|eclipse-checkstyle}}}}
  
 
== Enable javadoc integration ==
 
== Enable javadoc integration ==
Line 75: Line 84:
 
# There should be one named "java" with the type "Standard VM". Select this and click ''Edit''.
 
# There should be one named "java" with the type "Standard VM". Select this and click ''Edit''.
 
# Select the {{ic|/opt/java/jre/lib/rt.jar}} item under "JRE system libraries:", then click ''Javadoc Location...''.
 
# Select the {{ic|/opt/java/jre/lib/rt.jar}} item under "JRE system libraries:", then click ''Javadoc Location...''.
# Enter "http://docs.oracle.com/javase/7/docs/api/" in the "Javadoc location path:" text field.
+
# Enter "https://docs.oracle.com/javase/8/docs/api/" in the "Javadoc location path:" text field.
  
 
=== Offline version ===
 
=== Offline version ===
  
If you have no internet connection on your development machine or do not want to constantly consume bandwidth for the documentation, you can store the documentation locally, by installing the {{Pkg|openjdk7-src}} package. Eclipse should find the javadocs automatically.
+
You can store the documentation locally by installing the {{Pkg|openjdk8-doc}} package. Eclipse may be able to find the javadocs automatically.  If that does not work, set Javadoc location for rt.jar to {{ic|file:/usr/share/doc/java8-openjdk/api}}.
  
 
== Troubleshooting ==
 
== Troubleshooting ==
  
=== Autocompletion and javadoc render crash ===
+
=== Crash on first boot or when choosing ''Help > Welcome'' ===
 
+
For some reason, libxul may crash Eclipse with a traceback like:
+
 
+
# Problematic frame:
+
# C  [libxul.so+0xd07552]  NS_InvokeByIndex_P+0x5e9a
+
  
To fix this issue, you can try installing {{Pkg|libwebkit}} and adding the following lines in your {{ic|/usr/share/eclipse/eclipse.ini}}:  
+
Add the following line to {{ic|/usr/share/eclipse/eclipse.ini}}:
  
 
  -Dorg.eclipse.swt.browser.UseWebKitGTK=true
 
  -Dorg.eclipse.swt.browser.UseWebKitGTK=true
  
If that does not work (or if you do not want to use libwebkit) download:
+
If Firefox is installed try also:
http://ftp.mozilla.org/pub/mozilla.org/xulrunner/releases/1.9.0.17/runtimes/xulrunner-1.9.0.17.en-US.linux-i686.tar.bz2
+
Unpack it into {{ic|~/.local/xulrunner}} (or another location) and add this line to your Eclipse configuration file {{ic|/usr/share/eclipse/eclipse.ini}}:
+
  
  -Dorg.eclipse.swt.browser.XULRunnerPath=/home/<Username>/.local/xulrunner
+
  -Dorg.eclipse.swt.browser.DefaultType=mozilla
 
+
Now everything should just work fine and tooltips should display correctly. To prevent overwriting this configuration on update, append {{ic|/usr/share/eclipse/eclipse.ini}} to the {{ic|NoUpgrade}} line in {{ic|/etc/pacman.conf}} as follows:
+
{{hc|/etc/pacman.conf|
+
NoUpgrade &#61; usr/share/eclipse/eclipse.ini
+
}}
+
 
+
=== Crash on first boot or when choosing ''Help > Welcome'' ===
+
 
+
See [[#Autocompletion and javadoc render crash]].
+
  
 
=== Ctrl+X closes Eclipse ===
 
=== Ctrl+X closes Eclipse ===
  
Part of [https://bugs.eclipse.org/bugs/show_bug.cgi?id=318177 this] bug. Just look in {{ic|~/workspace/.metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi}} and delete the wrong {{Keypress|Ctrl+X}} combination. Usually it is the first one.
+
Part of [https://bugs.eclipse.org/bugs/show_bug.cgi?id=318177 this] bug. Just look in {{ic|~/workspace/.metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi}} and delete the wrong {{ic|Ctrl+X}} combination. Usually it is the first one.
  
=== Eclipse 4.2.0 not respecting dark/custom gtk themes resulting in white background ===
+
=== Eclipse 4 not respecting dark/custom gtk themes resulting in white background ===
  
 +
====4.2.0 and 4.3.0====
 
Remove or move to backup sub folder all of the .css files from:
 
Remove or move to backup sub folder all of the .css files from:
 
/usr/share/eclipse/plugins/org.eclipse.platform_4.2.0.v201206081400/css/
 
/usr/share/eclipse/plugins/org.eclipse.platform_4.2.0.v201206081400/css/
  
Solution source: http://www.eclipse.org/forums/index.php/m/872214/
+
Solution source: https://www.eclipse.org/forums/index.php/m/872214/
  
=== Tooltips have dark background color with Gnome 3.6 Adwaita theme ===
+
This also works with version 4.3.x (Kepler) by backing up the css folder from /usr/share/eclipse/plugins/org.eclipse.platform_4.3.xxx/css/
  
Comment out the second-to-last line in {{ic|/usr/share/themes/Adwaita/gtk-2.0/gtkrc}} like this
+
====4.4.0 (Luna)====
  
#widget "gtk-tooltip*"  style "tooltips"
+
Luna Supplies a Dark theme which can be enabled in Preferences > Appearance and selecting the 'Dark' theme.
  
Related bugs:  
+
The dark theme uses its own colours rather than the GTK theme colours, if you prefer it to fully respect GTK colour settings, then remove or move to backup sub folder all of the .css files from: /usr/share/eclipse/plugins/org.eclipse.ui.themes_1.0.0.xxxx/css/
  
* https://bugzilla.gnome.org/show_bug.cgi?id=688285
+
=== Tooltips have dark background color with Adwaita theme ===
* https://bugs.eclipse.org/bugs/show_bug.cgi?id=381010 (WONTFIX)
+
 
 +
You can first follow the [[#Disable gtk3]] section disable the SWT_GTK3 and then install the {{Pkg|webkitgtk2}} package from the official repository to use the old theme.
  
 
=== Toggle buttons states are the same for selected/not selected ===
 
=== Toggle buttons states are the same for selected/not selected ===
Line 142: Line 137:
  
 
* https://bugzilla.gnome.org/show_bug.cgi?id=687519
 
* https://bugzilla.gnome.org/show_bug.cgi?id=687519
 +
 +
=== Change Default Window Title Font Size ===
 +
 +
You cannot change the window title font size using the Eclipse preferences, you must edit the actual theme .css files. Note, that you will have to redo this when you upgrade eclipse.
 +
They are located under
 +
/usr/share/eclipse/plugins/org.eclipse.platform_4.3.<your version number>/css
 +
Open the appropriate file with your text editor, ie e4_default_gtk.css if you are using the "GTK theme".
 +
Search for .MPartStack, and change the font-size to your desired size
 +
.MPartStack {
 +
        font-size: 9;
 +
        swt-simple: false;
 +
        swt-mru-visible: false;
 +
}
 +
 +
=== Disable GTK+ 3 ===
 +
 +
When the SWT GTK+ 3 UI is buggy and sometimes unusable, You can try to disable the use of GTK+ 3 with the SWT_GTK3=0 environment variable when you start eclipse:
 +
SWT_GTK3=0 eclipse
 +
 +
Another option to achieve the same effect is to add the follwoing to {{ic|/usr/lib/eclipse/eclipse.ini}}.
 +
--launcher.GTK_version
 +
2
 +
 +
Those two lines must be added '''before''':
 +
--launcher.appendVmargs
 +
 +
Also note that if you do this, the Javadoc pop ups do not get rendered properly anymore if the package {{Pkg|webkitgtk2}} is not installed.
 +
 +
=== White on white quick outline and type hierarchy ===
 +
 +
When using GTK2 backend the workaround is to edit the theme. Append the following to {{ic|e4_default_gtk.css}}.
 +
  Tree {
 +
    color: black;
 +
  }
 +
 +
For GTK3 backend this should already be fixed. See https://bugs.eclipse.org/bugs/show_bug.cgi?id=492376 for the relevant info.
  
 
== See also ==
 
== See also ==
  
* [http://www-128.ibm.com/developerworks/opensource/library/os-ecl-subversion/ How to use Subversion with Eclipse]
+
* [https://www.ibm.com/developerworks/library/os-ecl-subversion/ How to use Subversion with Eclipse]

Latest revision as of 15:57, 25 April 2016

Eclipse is an open source community project, which aims to provide a universal development platform. The Eclipse project is most widely known for its cross-platform integrated development environment (IDE). The Arch Linux packages (and this guide) relate specifically to the IDE.

The Eclipse IDE is largely written in Java but can be used to develop applications in a number of languages, including Java, C/C++, PHP, Perl and Python. The IDE can also provide subversion support and task management.

Installation

Install one of the following packages:

You cannot install multiple of these at the same time since they conflict, see FS#45577: choose the package above which most immediately fulfils your needs, and then add support for any additionally required languages through #Plugins.

Plugins

Many plugins are easily installed using pacman (see Eclipse plugin package guidelines for further informations). This will also keep them up-to-date. Alternatively, you can choose either the Eclipse Marketplace or the internal plugin manager.

Add the default update site

Make sure that you check that the default update site for your version of Eclipse is configured so that plugin dependencies can automatically be installed. The most current version of Eclipse is Mars and the default update site for it is: http://download.eclipse.org/releases/mars. Go to Help > Install new Software > Add, fill the name to easily identify the update site later - for instance, Mars Software Repository - and fill the location with the url.

Eclipse Marketplace

Note: make sure you have followed the Add the default update site section.

To use the Eclipse Marketplace, install it first: go to Help > Install new software > Switch to the default update site > General Purpose Tools > Marketplace Client. Restart Eclipse and it will be available in Help > Eclipse Marketplace.

Plugin manager

Note: make sure you have followed the Add the default update site section.

Use Eclipse's plugin manager to download and install plugins from their original repositories: in this case you have to find the needed repository in the plugin's website, then go to Help > Install New Software..., enter the repository in the Work with field, select the plugin to install from the list below and follow the instructions.

Note:
  • If you install plugins with Eclipse's plugin manager, you are advised to launch Eclipse as root: this way the plugins will be installed in /usr/lib/eclipse/plugins/; if you installed them as normal user, they would be stored in a version-dependent folder inside ~/.eclipse/, and, after upgrading Eclipse, they would not be recognized any longer.
  • Do not use Eclipse as root for your everyday work.

Updates via plugin manager

Run Eclipse and select Help > Check for Updates. If you have installed them as root as advised in the section above, you have to run Eclipse as root.

For plugins to be updated, you should check to have their update repositories enabled in Window > Preferences > Install/Update > Available Software Sites: you can find each plugin's repository(es) on the respective project website. To add, edit, remove... repositories just use the buttons on the right of the Available Software Sites panel. For Eclipse 4.5 (Mars), check you have enabled this repository:

http://download.eclipse.org/releases/mars

To receive update notifications, go to Window > Preferences > Install/Update > Automatic Updates. If you want to receive notifications for plugins installed as root, you should run Eclipse as root, go to Window > Preferences > Install/Update > Available Software Sites, select the repositories related to the installed plugins and Export them, then run Eclipse as normal user and Import them in the same panel.

List of plugins

  • AVR — AVR microcontroller plugin.
http://avr-eclipse.sourceforge.net/wiki/index.php/The_AVR_Eclipse_Plugin || eclipse-avrAUR
  • Aptana — HTML5/CSS3/JavaScript/Ruby/Rails/PHP/Pydev/Django support. Also available as standalone application.
http://www.aptana.com/ || eclipse-aptanaAUR[broken link: archived in aur-mirror] aptana-studioAUR
  • Eclipse CDT — C/C++ support.
https://www.eclipse.org/cdt/ || eclipse-cpp
  • Eclipse PDTPHP support.
https://www.eclipse.org/pdt/ || eclipse-pdtAUR
https://eclipsefp.github.io/ || eclipse-eclipsefpAUR[broken link: archived in aur-mirror]
  • EGitGit support.
https://www.eclipse.org/egit || eclipse-egitAUR
  • EPIC — Perl support.
http://www.epic-ide.org/ || eclipse-epicAUR[broken link: archived in aur-mirror]
  • IvyDE — IvyDE dependency Manager.
https://ant.apache.org/ivy/ivyde/ || eclipse-ivydeAUR
  • Markdown — Markdown editor plugin for Eclipse.
http://www.winterwell.com/software/markdown-editor.php || eclipse-markdownAUR
https://bitbucket.org/mercurialeclipse/main/wiki/Home || eclipse-mercurialAUR
  • Mylyn — Task lists support.
https://www.eclipse.org/mylyn/ || eclipse-mylynAUR
  • PHPEclipse — Alternative PHP support.
http://www.phpeclipse.com/ || eclipse-phpeclipseAUR
http://pydev.org/ || eclipse-pydevAUR
http://subclipse.tigris.org/ || eclipse-subclipseAUR
  • Subversive — Alternative Subversion support.
https://www.eclipse.org/subversive/ || eclipse-subversiveAUR
  • TestNG — TestNG support.
http://testng.org/doc/eclipse.html || eclipse-testngAUR
  • TeXlipseLaTeX support.
http://texlipse.sourceforge.net/ || eclipse-texlipseAUR
  • Eclipse PTP — Parallel Programming C/C++ support.
https://www.eclipse.org/ptp/ || eclipse-ptpAUR
  • Checkstyle — Eclipse Checkstyle support.
http://eclipse-cs.sourceforge.net/ || eclipse-checkstyleAUR

Enable javadoc integration

Want to see API entries when hovering the mouse pointer over standard Java methods?

Online version

If you have constant Internet access on your machine, you can use the on-line documentation:

  1. Go to Window > Preferences, then go to Java > Installed JREs.
  2. There should be one named "java" with the type "Standard VM". Select this and click Edit.
  3. Select the /opt/java/jre/lib/rt.jar item under "JRE system libraries:", then click Javadoc Location....
  4. Enter "https://docs.oracle.com/javase/8/docs/api/" in the "Javadoc location path:" text field.

Offline version

You can store the documentation locally by installing the openjdk8-doc package. Eclipse may be able to find the javadocs automatically. If that does not work, set Javadoc location for rt.jar to file:/usr/share/doc/java8-openjdk/api.

Troubleshooting

Crash on first boot or when choosing Help > Welcome

Add the following line to /usr/share/eclipse/eclipse.ini:

-Dorg.eclipse.swt.browser.UseWebKitGTK=true

If Firefox is installed try also:

-Dorg.eclipse.swt.browser.DefaultType=mozilla

Ctrl+X closes Eclipse

Part of this bug. Just look in ~/workspace/.metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi and delete the wrong Ctrl+X combination. Usually it is the first one.

Eclipse 4 not respecting dark/custom gtk themes resulting in white background

4.2.0 and 4.3.0

Remove or move to backup sub folder all of the .css files from: /usr/share/eclipse/plugins/org.eclipse.platform_4.2.0.v201206081400/css/

Solution source: https://www.eclipse.org/forums/index.php/m/872214/

This also works with version 4.3.x (Kepler) by backing up the css folder from /usr/share/eclipse/plugins/org.eclipse.platform_4.3.xxx/css/

4.4.0 (Luna)

Luna Supplies a Dark theme which can be enabled in Preferences > Appearance and selecting the 'Dark' theme.

The dark theme uses its own colours rather than the GTK theme colours, if you prefer it to fully respect GTK colour settings, then remove or move to backup sub folder all of the .css files from: /usr/share/eclipse/plugins/org.eclipse.ui.themes_1.0.0.xxxx/css/

Tooltips have dark background color with Adwaita theme

You can first follow the #Disable gtk3 section disable the SWT_GTK3 and then install the webkitgtk2 package from the official repository to use the old theme.

Toggle buttons states are the same for selected/not selected

Comment out the last line in /usr/share/themes/Adwaita/gtk-2.0/gtkrc like this

#widget "*swt*toolbar*" style "null"

To apply the fixed theme, use gnome-tweak-tool to select a different theme and cycle back to Adwaita.

Related bugs:

Change Default Window Title Font Size

You cannot change the window title font size using the Eclipse preferences, you must edit the actual theme .css files. Note, that you will have to redo this when you upgrade eclipse. They are located under

/usr/share/eclipse/plugins/org.eclipse.platform_4.3.<your version number>/css

Open the appropriate file with your text editor, ie e4_default_gtk.css if you are using the "GTK theme". Search for .MPartStack, and change the font-size to your desired size

.MPartStack {
       font-size: 9;
       swt-simple: false;
       swt-mru-visible: false;
}

Disable GTK+ 3

When the SWT GTK+ 3 UI is buggy and sometimes unusable, You can try to disable the use of GTK+ 3 with the SWT_GTK3=0 environment variable when you start eclipse:

SWT_GTK3=0 eclipse

Another option to achieve the same effect is to add the follwoing to /usr/lib/eclipse/eclipse.ini.

--launcher.GTK_version
2

Those two lines must be added before:

--launcher.appendVmargs

Also note that if you do this, the Javadoc pop ups do not get rendered properly anymore if the package webkitgtk2 is not installed.

White on white quick outline and type hierarchy

When using GTK2 backend the workaround is to edit the theme. Append the following to e4_default_gtk.css.

 Tree {
   color: black;
 }

For GTK3 backend this should already be fixed. See https://bugs.eclipse.org/bugs/show_bug.cgi?id=492376 for the relevant info.

See also