Apache NetBeans
Apache NetBeans
Latest release

Apache NetBeans 24

Download

How to change the update center URL via code?

Use UpdateUnitProviderFactory UpdateUnitProviderFactory.html

               List<UpdateUnitProvider> updateUnitProviders = UpdateUnitProviderFactory.getDefault().getUpdateUnitProviders(true);
               for (int i = 0; i < updateUnitProviders.size(); i++) {
                   UpdateUnitProvider pr = updateUnitProviders.get(i);
                   String name = pr.getDisplayName();
                   if("MyUpdateCenter".equals(name)){
                           pr.setProviderURL(new URL("http://example.com/updateCenter"));
                           pr.refresh(ProgressHandle.createHandle("UpdateCenter refresh"), true);
                           break;
                   }
               }

or

Taken from platform-dev-mailing list 14.04.2016