Register default TopComponent location via annotations
Nov 30 '10; API spec. version: 6.37; affected top-level classes: TopComponent; made by: jtulach; issues: #191407
Use TopComponent.Registration, TopComponent.Description and TopComponent.OpenActionRegistration to register default location of a TopComponent, some of its properties and action to open it.
It's a really big step, in my humble opinion. Now, when you use the New Window wizard in the IDE, you get this:
Above, there's no .settings file and no .wstcref file. There is one single class, with annotations.
At compile time, you end up with a generated layer.xml file, with content such as this:
Now, when I'm in IntelliJ IDEA, I can simply create a plain Java class, annotate it, and bob's your uncle... I have a new window in a NetBeans Platform application, with code completion to help me:
So, now that the Actions can be created via annotations, as well as the TopComponents, there's no real reason for not using any IDE at all. Start with a Maven archetype, open it into the IDE of your choice, use annotations, and create your rich-client applications without needing to worry about the fact that NetBeans IDE has wizards for these artifacts while your own IDE doesn't.
That's what I mean by the liberation of the NetBeans Platform from the NetBeans IDE. Now, for the first time, you have a real choice, from scratch. Sure, many developers have been figuring things out without NetBeans IDE for a long time, but now it is many times easier than before. Time to write a "hello world" NetBeans Platform tutorial for IntelliJ IDEA.