Kyle
Kyle

Reputation: 22045

In Eclipse, how can I make a toolbar button, or menu command, that modifies my current selection?

I want to make a toolbar button in eclipse that when pressed, removes all newlines from my selection.

How can I do this?

Upvotes: 1

Views: 263

Answers (2)

javamonkey79
javamonkey79

Reputation: 17775

As @Paulo suggested, you'll need an Eclipse plugin. More specifically, it sounds like you'll need a java editor extension. The Eclipse plugin development version that you can download and setup has some fairly easy wizards such as editor extensions and toolbar contributions - from there it is a matter of figuring out how to tie it together.

Upvotes: 1

Paulo Guedes
Paulo Guedes

Reputation: 7279

You'll need to create a plugin for Eclipse. Take a look at PDE: http://www.eclipse.org/pde/

But maybe this plugin does what you need: http://andrei.gmxhome.de/anyedit/

Upvotes: 2

Related Questions