Friday Apr 18, 2014

org.netbeans.spi.palette.PaletteItemRegistration

With APIs from NetBeans IDE 8.0, there's the new annotations @PaletteItemRegistration and @PaletteItemRegistrations for registering items in a palette:

As you can see, you use the annotations in the package-info.java class, which you can create by using the template Java | Java Package Info in the New File dialog.

References:

http://bits.netbeans.org/dev/javadoc/org-netbeans-spi-palette/org/netbeans/spi/palette/PaletteItemRegistrations.html

http://bits.netbeans.org/dev/javadoc/org-netbeans-spi-palette/org/netbeans/spi/palette/PaletteItemRegistration.html

Therefore, will need to update this tutorial with the new annotations:

https://platform.netbeans.org/tutorials/nbm-palette-api1.html

About

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.

Search

Archives
« April 2014 »
SunMonTueWedThuFriSat
  
12
13
26
27
   
       
Today