In the part 4, we created a NetBeans plugin. Now we want to turn it into a standalone plugin so that Netbeans users can use it.
Producing a Standalone plugin
If you were expecting this to be tricky, you are going to be disappointed. If you are creating a simple plugin, a single menu option will create the nbm (NetBeans Module file) to make a standalone plugin. This is a self-contained file with all the jars and code required.
If you select the menu option, you will find inside the build directory of your project a brand new nbm file, ready to install.
Installing Your plugin
This guide shows you how to install the plugin. Note that once you have done this, NetBeans will use this version. If you want to develop the plugin further, you will need to uninstall the plugin.
Choose Window – plugins from the menu and there is an option to add a plugin. Locate the nbm file on your machine
Click on install and click Next, Accept terms. Lastly, you will be offered a warning if the plugin is not trusted or signed. Click on continue and Finish.
Close all windows and restart NetBeans, and you will now find the feature is available in the NetBeans IDE!
NetBeans plugin portal
Once you have an nbm file, you can upload it to the NetBeans plugin portal. This provides a central location so that anyone can find your plugin. Here is the link to our new plugin. You will need to add a description, license and author to your project and build it again – the portal will not accept plugins which do not have this set.
Downloading the project or Jar
If you would like to download the source code for the project or the jpedalFX.jar file, please click here.
This week we have created a plugin from scratch. We will be expanding it over the course of 2014 to add lots of new features and show off additional features of the NetBeans IDE (we may even have to fix the odd bug or 2 and we will also update it for NetBeans 8). So stay tuned, and let us have your feedback and suggestions.
This post is part of our “NetBeans article Index” series. In these articles, we aim to explore NetBeans in different ways, from useful hint and tips, to our how-to’s, experiences and usage of the NetBeans IDE.
Latest posts by Mark Stephens (see all)
- My experience of a Turkish bath (visiting Istanbul for DevFest) - November 24, 2017
- My 5 key takeaways from JavaOne 2017 - October 6, 2017
- My notes and pictures from thursday JavaOne 2017 - October 5, 2017
- My notes and pictures from Wednesday JavaOne 2017 - October 5, 2017
- My notes and pictures from Tuesday JavaOne 2017 - October 4, 2017