Does Eclipse have the same extensibility as Visual Studio without any coding?

In Visual Studio, you can add an external tool and pass the selected text to it as a parameter.

Does eclipse have the same functionality or does someone need to code a plugin to do this?

If so, any specific example code to do just that, because everything I've found is a generic example of a plugin for a custom editor.

+2


source to share


3 answers


From the menu choose: Run> External Tools> Configure External Tools .

This will open a dialog box where you can create an external tool configuration (to run external programs from Eclipse):

9pvvM.png
(source: pascal-martin.fr )



At the bottom of the dialog box, there is an area for Arguments and a button for Variables . If you click on it, you will have a list of variables that you can use.
One of them is " selected_text ", which "returns the text currently selected in the active editor". :

DFSJf.png
(source: pascal-martin.fr )

This should allow you to run almost any program you want / need right from Eclipse, without having to create any plugin ;-)
The only thing is that these programs won't integrate well enough into Eclipse - but they will still be useful!

+5


source


Of course, they are even called "External Instruments". look in Run-> External Tools.

Actually, start by typing "External Tools" in the Eclipse Help search box.



Eclipse has a kitchen sink, do you think they'll leave that behind? :-)

+2


source


As a side note, the ability to add external tools was one of the key features of the eclipse platform when it was revived in those days. VisualAge is having a big problem with external tools.

0


source







All Articles