Eclipse Zone is brought to you in partnership with:

I've been a zone leader with DZone since 2008, and I'm crazy about community. Every day I get to work with the best that JavaScript, HTML5, Android and iOS has to offer, creating apps that truly make at difference, as principal front-end architect at Avego. James is a DZone Zone Leader and has posted 639 posts at DZone. You can read more from them at their website. View Full User Profile

Plugin and Play - Integrating YouTube with Eclipse

  • submit to reddit

The following article describes how to create a YouTube search plugin for Eclipse, that can be integrated into your everyday instance of the IDE. In this article you'll learn how to create a plugin using the Plugin Development Environment and how to use some parts of the Google YouTube API. This article is inspired from Geertjan's lead, where he created the same type of plugin for the IntelliJ IDE.

Getting Started

This example is based on Eclipse 3.3. I would recommend downloading the Eclipse For Plugin Developers Pack as it has all you need to get going. To interact with YouTube, you’ll need to download the YouTube Data API.

Create A New Project

From the File menu, choose to create a New Plug-in Project.


















We want this plug-in to run from within Eclipse, rather than to create a separate RCP application for it. So you can just choose No to create a Rich Client Application, and to tick the choice for contributing to the UI.


















At this stage you can click on Finish, as we won’t be using any of the templates for plug-ins that Eclipse provides. Once you click finish you will be asked if you wish to switch to the Plugin Developers Perspective. Of course, this is a good idea.