Re: Programmatic modification of update center URL

Ernest C Lötter <[email protected]>
Newsgroups gmane.comp.java.netbeans.modules.openide.devel
Message-ID <[email protected]>
Thanks Arsi, this solved my problem!

Best regards,
Ernest

On 15/04/16 01:43, arsi wrote:
> Hi,
>                 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;
>                     }
>                 }
>
> Arsi
> ------------------------------------------------------------------------
>
> *From:* Ernest C Lötter
> *Sent:* Thursday, April 14, 2016 5:14PM
> *To:* Dev
> *Subject:* [platform-dev] Programmatic modification of update center URL
>
>
>> Dear Group
>>
>> Is there a way to programmatically modify the URL of a saved update
>> center as available via Tools->Plugins->Settings ? My alternative route
>> here is to make the change via an update of my module (which registers
>> the update center), however I'd like to give the user the option to do
>> this (in this unique case) by just running a particular action. Any
>> ideas will be greatly appreciated.
>>
>> Best regards,
>> Ernest
>>
>
>
>
>
>
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.