X

Geertjan's Blog

  • July 16, 2010

Eclipse in a NetBeans Tutorial?

Geertjan Wielenga
Product Manager
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.

Join the discussion

Comments ( 2 )
  • miltonh26 Tuesday, November 23, 2010

    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.


  • Geertjan Wielenga Tuesday, November 23, 2010

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

    http://platform.netbeans.org/tutorials/nbm-emf.html

    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:

    http://netbeans.org/kb/trails/platform.html


Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.