Using the External Tools feature in Eclipse
Eclipse is one of the best things to happen to the world of Java development. An open source community development project it may be…but planned well it is….
The code is strong in this one…..
All right that’s enough of me tryin to speak like Yoda.
So let’s talk about some hidden gems in eclipse. Here’s something most of developers may not use effectively. The external tools set of power tools that eclipse.
If I were to describe it 2 words Simbhu style “Chanceless !! Super !!”
Anyway through the course of my learning I have used it following configurations:
There are times when most of us developers would have used the command prompt in tandem with eclipse.
The legendry command prompt
This is my personal favorite; I mean there’s never been a time when I could do without this one. So the Console view we have in eclipse it logs at the data. So I was wondering if it’s possible to have the command prompt running from the Eclipse itself. Turns out that it can be done and it’s easier than what I would have expected.
So here how we do it:
Open the External Tools window:
In the location just specify the windows executable that needs to be run.
Let give a suitable name for the Lauch configuration like:
Command Prompt Launch
All right once this is done the launch target can be viewed by clicking
Run External Tools
This illustration is an indication of the same.
So when we click on 2 that’s Command Prompt Launch
Tadaaa!!!
A sweet command prompt just for me and that too within eclipse, wow how cool is that.
So that cool the command prompt shell gets embedded in the SWT window or view or whatever but what about the AWT or Swing stuff.
I tried to add the PointBase DataBase UI which is a classic Swing/AWT program.
So went ahead with the standard configuration and ran the external target.
Alright opens up the UI as a standard Java Application.