Eclipse in a NetBeans Tutorial?

I've completed the draft of a small scenario that will form the basis of a new NetBeans Platform tutorial. The tutorial will have, as one of its first steps, the instruction to start up Eclipse! You will then use Eclipse to model a small scenario, creating a Supplier object with multiple Product objects:

Then, you will be told how to import the EMF-related OSGi bundles into a new NetBeans Platform application. As a next step, you will create a new module and copy the classes generated by Eclipse (e.g., the Supplier and Product classes, together with their supporting classes) into the new module. Finally, you'll create a second module where the suppliers and products will be created and displayed:

That tutorial will, in the end, provide full instructions on a very common need—the need of EMF models to be handled within Swing applications. With NetBeans Platform 6.9, that process is now seamless. It's as easy to import an OSGi bundle as it is to import any other JAR file, while Equinox integration into NetBeans Platform applications ensures that the OSGi framework checks all the dependencies between the bundles when the application starts up. Currently I have all the dependencies correctly set up, the above application now deploys without a single problem message being generated by Equinox. Pretty cool.

In other news. If you understand German, take a look at Michael Müller's new review of Heiko Böck's NetBeans Platform 6.


Has the tutorial been completed? I'm currently working on a large Swing project in Spring STS (required) where I think NetBeans Platform would be very beneficial. I'm having a hard time finding documentation for how to use NBP with Eclipse. Any ideas or suggestions? Thank you and also thanks for your great tutorials.

Posted by miltonh26 on November 22, 2010 at 04:56 PM PST #

Depends on what you're talking about. Do you want to reuse OSGi bundles in a NetBeans Platform application? Then see this tutorial:

If what you want to do is create NetBeans Platform applications in Eclipse IDE, simply create a Maven based NetBeans Platform application and then open the POM file in Eclipse IDE. Many tutorials on Maven and NetBeans Platform are listed here:

Posted by Geertjan Wielenga on November 22, 2010 at 07:40 PM PST #

Post a Comment:
  • HTML Syntax: NOT allowed

Geertjan Wielenga (@geertjanw) is a Principal Product Manager in the Oracle Developer Tools group living & working in Amsterdam. He is a Java technology enthusiast, evangelist, trainer, speaker, and writer. He blogs here daily.

The focus of this blog is mostly on NetBeans (a development tool primarily for Java programmers), with an occasional reference to NetBeans, and sometimes diverging to topics relating to NetBeans. And then there are days when NetBeans is mentioned, just for a change.


« June 2016