Jump to: navigation, search

NetBeans in Eclipse

The Project

Part of the Google Summer of Code 2007


Student: Beyhan Veliev (IRC: beyhan)

Mentor: Philippe Ombredanne (IRC: pombreda)


The plugins models for Eclipse and NetBeans are very similar yet different. This project would provide the ability to run and embed a minimal NetBeans environment within Eclipse -- as Eclipse plugins-- , and support running NetBeans plugins like Matisse (Swing UI painter) or Coyote (dynamic languages toolkit).

The original proposal is available here: Google_Summer_of_Code_2007_Ideas


Primary Goals

Glass.gif Analyze what is needed to get a minimal NetBeans environment within Eclipse.

Glass.gif Support running Netbeans plugins like Matisse.

Design Goals after the analysis of the problem

A Netbeans module can be viewed as a component. It has required functionality, that is implemented from Netbeans. It has provided functionality to Netbeans. We decided to implement an Eclipse plugin, that implements this required functionality (required API). It will transform and forward the calls to Eclipse. This plugin will implement standard wrapper actions, that will be able to run the provided functionality of the Netbeans module. So Eclipse will communicate with the Netbeans module during our wrapper actions, and the Netbeans module will communicate with Eclipse during our required API.


Work Done

  • A Netbeans module:
    • an very simple editor.
    • an main menu action (Window->Open TestEditor Window), that opens this editor.
    • an main toolbar action, that opens an message dialog. The button have an yellow icon.
  • I integrated the code of the Netbeans module in an Eclipse plugin.The Eclipse plugin has:
    • an very simple editor, that is the wrapper of the editor in the Netbeans module.
    • an main toolbar action, that is the wrapper of the equivalent Netbeans module action.
    • an main menu bar action (Window->Open TestEditor Window), that is the wrapper of the equivalent Netbeans module action.
    • The required API for the Netbeans module.

Here ist the source code of this example: org.eclipse.soc.netbeans.

Work to be done

1. Migrate an more complex Netbeans module to Eclipse.

1.1 Extend the wrapper actions and the required API.

2. Find a way to translate the layer.xml to plugin.xml.

3. During the translation automatically creation of the standard action wrappers.


I will try to implement a NetBeans environment plugin for Eclipse that have the following features:

  • Provide an Eclipse perspective.
  • Provide a Wizard to install Netbeans’ plugins.
  • Read and understand the plugin information of a Netbeans plugin.
  • Generate an Eclipse plugin that is able to run the Netbeans plugin within Eclipse.


Glass.gif Needs some investigation

Progress.gif Patch in progress

Ok green.gif Bug fixed / Feature added