The eclipse
commandlet allows to install, configure, and launch the Eclipse IDE.
To launch Eclipse for your current workspace and devonfw-ide installation simply run:
devon eclipse
You may also supply additional arguments as devon eclipse «args»
. These are explained by the following table:
devon eclipse
Argument(s) | Meaning |
---|---|
|
if provided as first arg then to command will be invoked for each workspace |
|
setup Eclipse (install or update) |
|
install an additional plugin |
|
launch Eclipse (default if no argument is given) |
|
same as |
|
update workspace |
|
reverse merge changes from workspace into settings |
|
reverse merge adding new properties |
|
create launch script for this IDE, your current workspace and your OS |
To be productive with Eclipse you need plugins. Of course devonfw-ide
can automate this for your:
In your settings git repository create a folder eclipse/plugins (click this link to see more examples and see which plugins come by default).
Here you can create a properties file for each plugin. This is an example tmterminal.properties:
plugin_url=http://download.eclipse.org/tm/terminal/marketplace
plugin_id=org.eclipse.tm.terminal.feature.feature.group,org.eclipse.tm.terminal.view.feature.feature.group,org.eclipse.tm.terminal.control.feature.feature.group,org.eclipse.tm.terminal.connector.ssh.feature.feature.group,org.eclipse.tm.terminal.connector.telnet.feature.feature.group
plugin_active=true
The variables are defined as following:
-
plugin_url
defines the URL of the Eclipse update site of the plugin -
plugin_id
defines the feature group ID(s) to install. To install multiple features/plugins provide a coma-separated list of IDs. If you want to customizedevonfw-ide
with new plugins you can first install them manually and then go toAbout Eclipse > Installation Details
then you can filter for your newly installed plugin and find the values in theId
column. Copy & paste them from here to make up your own custom config. -
plugin_active
is an optional parameter. If it istrue
(default) the plugin will be installed automatically during the project setup for all developers in your team. Otherwise developers can still install the plugin manually viadevon eclipse add-plugin «plugin-name»
from the config filesettings/eclipse/plugins/«plugin-name».properties
. See thesettings/eclipse/plugins
folder for possible values of «plugin-name».
In general you should try to stick with the configuration pre-defined by your project. But some plugins may be considered as personal flavor and are typically not predefined by the project config. This e.g. applies for devstyle that allows a real dark mode for eclipse and tunes the theming and layout of Eclipse in general. Such plugins should be shipped with your settings as described above with plugin_active=false
allowing you to easily install it manually.
As maintainer of the settings for your project you should avoid to ship too many plugins that may waste resources but are not used by every developer. By configuring additional plugins with plugin_active=false
you can give your developers the freedom to install some additional plugins easily.
For downward compatibility we still support the deprecated legacy configuration if the folder settings/eclipse/plugins
does not exist:
The project configuration typically defines the plugins that will be installed via ECLIPSE_PLUGINS
variable. Otherwise defaults from this eclipse
commandlet will apply.
Be aware that this comes at your own risk and sometimes plugins can conflict and break your IDE.
Here is an example how a project can configure the plugins in its devon.properties
inside the settings:
ECLIPSE_PLUGINS=("AnyEditTools.feature.group" "http://andrei.gmxhome.de/eclipse/" "com.ess.regexutil.feature.group" "http://regex-util.sourceforge.net/update/")
For the above listed plugins you can also use the short form:
ECLIPSE_PLUGINS=("anyedit" "" "regexutil" "")
Of course you may also mix plugin IDs with fully qualified plugins.
Eclipse already comes with a buid-in spellchecker. This is very helpful when writing comments. The default settings of devonfw-ide
ship with a project specific dictionary file and according configurations to enable spellchecking and configuring this dictionary.
When typing JavaDoc, inline comments or other texts the spellchecker will underline unknown words in red.
If your cursor is located at such a word you can hit [Ctrl][1]
to get a context menu with additional options.
There you can either choose similar correct words to correct a typo or you may even add the word (maybe a new buisness term) to your local dictionary.
In the latter case, you should commit the changes to your settings so that it will be available to your entire team. For further details about comitting changes to the settings please consult the admin usage.
In case your project has to write documentation or text in languages other than English, you might want to prefill your project dictionary for that language. Here we collect a list of such dictionaries that you can download and merge into your project dictionary:
-
German: https://sourceforge.net/projects/germandict/ (has to be converted to UTF-8 e.g. with Notepad++ via
Encoding > Convert to UTF-8
)