However, it's a little bit of a painful process to register those update centers. You have to go deep into the murky part of the Options window and fiddle around a bit (for each update center). That's a bit of a tiresome process. Wouldn't it be much easier if you had a plug-in module that would register the update center for you? Well... check this out, it's a really cool 'Update Center wizard' and available in post 5.0 dev builds:
The Update Center wizard lets you specify the URL to your update center, together with the display name:
Then you click Finish. Now, what do you have? Let's take a little look:
<!DOCTYPE settings PUBLIC "-//NetBeans//DTD Session settings 1.0//EN"
<instance class="org.netbeans.modules.autoupdate.XMLAutoupdateType" method="createXMLAutoupdateType"/>
<file name="update_center.settings" url="update_centerSettings.xml">
<attr name="enabled" boolvalue="true"/>
<attr name="url_key" stringvalue="org_yourorghere_updatecenterinstaller_update_center"/>
Services/AutoupdateType/update_center.settings=Geertjan's Update Center
As a result, when the user installs this plug-in module, they will automatically (i.e., without even knowing about the Options window and how murky it is down there), have registered your update center. When they open the Update Center Wizard, they will see the display name right away and be able to access your update center just like any of the default NetBeans update centers.
Now, the only question is: How will you distribute this plug-in module? Hmmm... if you put it in your update center, you're still going to have to tell your users to fiddle around in the Options window. Haha. So, maybe the better solution is to just send the URL to the NBM directly to the user (or make it available as a downloadable link on-line somewhere or just send the NBM as a file to the user).
This Update Center wizard is really useful, and, of all all the wizards that the module development team could have created at this stage, I'm really impressed that usability (more than anything else) is being focused on right now. Other new wizards are the JavaHelp Help Set wizard (mentioned recently in this blog), the Options Panel wizard (say goodbye to the NetBeans Options Window Extension Module Tutorial), and the Module Installer wizard (which could be useful in the NetBeans Manifest File Syntax Highlighting Module Tutorial).