Eclipse Zone
spacer spacer Alex Ruiz
  • Bio
  • Website
  • @alexRuiz
  • spacer
  • spacer

Alex is a programmer with special interest in Java, API design, OOP, Eclipse and testing. He is currently working as a Software Engineer at Google. Alex spends some of his spare time working on Open Source, blogging, writing technical articles, and speaking at international conferences. The opinions expressed here represent his own and not those of his employer. Alex is a DZone MVB and is not an employee of DZone and has posted 44 posts at DZone. You can read more from them at their website. View Full User Profile

Unveiling of New Terminal plug-in for Eclipse!

07.20.2012
spacer Email
Views: 1548
  • Tweet
  • spacer

We Recommend These Resources

Developing .NET/C# Applications with VoltDB

Best Practices for Building High Performance Development Teams

SQL Access to Salesforce.com Data via JDBC? Yes You Can!

Best Practices for Open Source Adoption

Getting Started with Apache Camel - 6/28/2012 - 10:00AM EST

I’m happy to announce the first release of our terminal plug-in for Eclipse!

spacer

This plug-in provides a fully-working, command-line terminal to Eclipse 3.7 or later (yes, even 4.2!). It works on Linux and MacOS only.

Why a terminal?

At Google we have several interactive command-line tools that we need to invoke from Eclipse. It resulted in poor user experience. The terminal opened in its own window. After issuing several commands, managing all those windows was messy. This terminal also does not allow us to copy/paste URLs.

This first release is mostly for users to give the terminal a try. For our next release, we expect to fix all major bugs and have the ability to issue commands from Eclipse.

Standing on the shoulder of giants

The terminal plug-in is based on two great Eclipse projects: Eclipse CDT and Eclipse Target Management. We forked the minimum necessary pieces to make the plug-in work. From Target Management we got the terminal emulator, and from CDT we got the pseudo-terminal (PTY) support.

Improvements

Once we had a minimal terminal working, we added some features to improve the user experience.

1. Quickly open a terminal from almost anywhere in Eclipse

spacer

A new terminal view can be opened in three different ways:

  1. Right-click any file or folder, and select the “Open Terminal Here” context menu (idea borrowed from the Windows XP Power Toy “Command Prompt Here”)
  2. On a terminal view, click the “New Terminal” button in the toolbar
  3. If there are no terminal views open, go to the menu “Window” > “Show View” > “Other” and find “Terminal” under the “General” category

2. Colors and font configuration

spacer

You can change the terminal’s background and foreground colors as well as the font. Go to the “Window” menu (or “Eclipse” menu in Mac OS) and navigate to the “Terminal” > “Colors and Font” preference page.

3. Hyperlinking

spacer

The terminal plug-in recognizes and provides hyperlinks for URLs using the HTTP(S) protocol. We’ll provide an extension point for custom hyperlink detectors.

4. Keyboard shortcuts

Shortcuts for copy/pasting text was one of the most requested features. On Linux, you can use Ctrl+Shift+C and Ctrl+Shift+V. On MacOS, you can use Command+C and Command+V, respectively.

5. Change terminal’s title

By default, the title of a terminal view is the last segment of the path of its working directory. You can change the title by pressing a button in the toolbar.

Project location

The terminal plug-in is hosted at Google Code, under the name ELT (Eclipse Local Terminal).

Feedback is always welcome :)

Published at DZone with permission of Alex Ruiz, author and DZone MVB. (source)

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)

Tags:
  • eclipse terminal
  • IDEs
gipoco.com is neither affiliated with the authors of this page nor responsible for its contents. This is a safe-cache copy of the original web site.