So the line in bold is needed in the layer file:
<folder name="x-java-jar-manifest"><attr name="createDataObject" boolvalue="false"/>
<file name="language.nbs" url="manifest.nbs"/>
And then you can have, for example, a Schliemann-based text editor, within a multiview editor, as shown below:
When the document is opened in the IDE, your own data object is used, and not the Schliemann data object. At the same time, the Schliemann declarations in the NBS file are applied to the document.
In other news. Check out this very concisely favorable and balanced assessment of our book, on Javalobby. Also, in this blog, I found this equally excellent review: "I've had the rough cuts version of Rich Client Programming: Plugging Into the Netbeans Platform for some time now. The print version arrived on my doorstep last week. This book is great. It doesn't have the style of writing you would expect for $49.99, the authors have a more casual tone. However, the information in the book is worth every penny. My favorite thing about this book is that it does not attempt to teach Java to the reader, it assumes the reader already knows Java. What's even better is that it assumes the reader is familiar with Java 1.5 and its features. I've read other books and information resources that try, and fail, to take people from ground zero to professional grade developer in 300 pages. This book goes right into working with Netbeans and the chapters are arranged in a logical, progressive order. Since the chapters build on one another, you don't really have to jump around the book if you're just starting out with the platform. The code samples are all short and sweet. They don't appear to try to do anything more than demonstrate the feature(s) that the author is currently describing. There aren't a whole lot of sections of the book that are purely a code dump. The code printed in the book is relevant to the topic discussed. I find that this makes it a lot easier to read, and a lot easier to learn the concepts quickly. If you are interested in developing desktop applications in Java, this book is a great starting point. The Netbeans platform takes care of a lot of "plumbing" as the book calls it. I'll be playing with the Netbeans API in the coming weeks and see what I can do with it now that I've got something to reveal some of the more mysterious portions of the API. I spent most of my time just looking at the Netbeans code and javadocs to try and figure out how to use it. I wish I'd had this book from the beginning."
Click here to get a 30% discount! And, as in 5.5 and other 6.0 builds... in 6.0 Beta 1 the samples are available in the Plugin Manager: