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)
- How we are improving our code quality with IDEA in 2018 - March 7, 2018
- How we are improving our code quality with NetBeans in 2018 - March 1, 2018
- 3 ways that the European Union is changing the way Companies write software in 2018 - January 31, 2018
- IDRsolutions product range update for 2018 - January 22, 2018
- 4 ways Companies can make remote working successful - December 21, 2017