Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

5 Best Eclipse Plugins: #2 (AnyEdit Tools)

DZone's Guide to

5 Best Eclipse Plugins: #2 (AnyEdit Tools)

· Java Zone
Free Resource

Just released, a free O’Reilly book on Reactive Microsystems: The Evolution of Microservices at Scale. Brought to you in partnership with Lightbend.

Small little helpers are the things in a developers hand which can make his life easier and simpler. The advantage with the Eclipse IDE is that there are many such helpers and extensions in the form of extra plugins you can install and use. And one of such a kind are the AnyEdit Tools provided by Andrey Loskutov. That Eclipse plugin comes with a wealth of useful extensions and utilities:

  • Import and Export of Eclipse Working Sets
  • Text Conversion and Sorting actions
  • Extended Compare and Replace
  • Save Console View
  • Open File under Cursor

Installation

Installing AnyEdit Tools and plugins is easy: simply point the Eclipse updater (menu Help > Install New Software…) and point to following update site:

http://andrei.gmxhome.de/eclipse/
Installing AnyEdit Plugins

Installing AnyEdit Plugins

That update site offers more than just the AnyEdit tools. See http://andrei.gmxhome.de/eclipse.html for details on all the plugins.

Export and Import of Working Sets

The Eclipse framework has the great (and mostly unknown?) feature of Working Sets. AnyEdit Tools include an importer and exporter File action for Working Sets:

Working Set Exporter

Working Set Exporter

Working Set Importer

Working Set Importer

Text Conversions

The plugin offers an extra context menu I can use on a selected text:

Editor Convert Menu

Editor Convert Menu

This makes it really easy to convert tabs to spaces and vice versa.

Sorting Actions

The plugin implementsl a context menu to sort source lines in multiple ways:

Sort Context Menu

Sort Context Menu

Compare With… and Replace With…

On an editor selection I have the feature to compare and replace with the Clipboard, a workspace file, external file.

Compare and Replace With

Compare and Replace With

Note: The thing with the Opened Editor… is something I was not able to use. Not sure why.

Both actions work on selected text or on selected files in the project view.

Console Extensions

The Console View extends with a button to save the content to a file:

Console Save to File Button

Console Save to File Button

The other feature is to select a file in the console view or editor view and open it:

Open File under cursor

Open File under cursor

Note: here seems to be an Eclipse limitation that this file has to be part of the project structure/resource list. At least I was not able to open other files. Too bad. But still this feature is valuable.

Preferences

Last but not least, AnyEdit has tons of preferences where I can configure it to my needs:

AnyEdit Preferences

AnyEdit Preferences

Not only it has workspace level preferences: you can set preferences on a project by project level as well. See http://andrei.gmxhome.de/anyedit/preferences.html for additional information and details.

Summary

This only lists the major features of the AnyEdit Tools. The Eclipse IDE already comes with a wealth of features, but the AnyEdit ones takes it up to the next level. After using them a while, I really don’t want to miss them, and wish that at least some of them are making it into the normal Eclipse distribution.

Happy AnyEditing :-)

Strategies and techniques for building scalable and resilient microservices to refactor a monolithic application step-by-step, a free O'Reilly book. Brought to you in partnership with Lightbend.

Topics:

Published at DZone with permission of Erich Styger, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}