X

Geertjan's Blog

  • December 9, 2005

Create a Multiview Editor in NetBeans IDE 5.0 (Part 1)

Geertjan Wielenga
Product Manager
It's not always easy to get just the right sample code for the NetBeans Module Development tutorials. I've been really lucky in some cases, especially with Andrei Badea's Manifest File Syntax Highlighting module (which forms the basis of the Syntax Highlighting tutorial). But today it was just as good—Dave Havrda, a colleague from the States, who I never met but regularly e-mail with, sent me a module that very nicely demonstrates the NetBeans MultiView API. Here's what it does—you open an XML file of a certain type and you notice that you have two views in the Source Editor (click to enlarge them):



Not bad, huh? Several people have asked about how this is done and, now that I have a working sample (with one or two small issues that need to be resolved), I can create a tutorial. So, if anyone out there has a simple-ish module that illustrates code completion, code folding, or identifier hyperlinking, PLEASE let me know! Those are areas that really need to find their way into a tutorial.

By the way, if you want to contribute to (or read up on) docs on NetBeans module development, check out the new (and growing) NetBeans Module & Platform Development Work-in-Progress Page. Your tips and tricks (or anything else) are 100% welcome!

Join the discussion

Comments ( 1 )
  • Keuller Thursday, January 26, 2006
    Hi,
    How can I do a TopComponent with support MultiView Editor ? I need extends something when I create my TopComponent window ?
Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.