Re: Update Center issue: How to hide/remove items from the Available Plugins tab

Peter Hansson <[email protected]>
Newsgroups gmane.comp.java.netbeans.modules.openide.devel
Message-ID <CAC55jYN6xf-jRhkO3LM0ek5=pUJjvYmMwt_Jn2es803gW9Uktg@mail.gmail.com>
I'm not aware if this can be fixed with the standard UI component in the
Platform.

However:
Are you aware that you are by no means forced to use the standard UI for
Auto Update ?  (i.e. the one you find in Tools --> Plugins)
You can roll your own UI for that if you want. You just need to hook into
the NetBeans Auto Update Services API (
http://bits.netbeans.org/dev/javadoc/org-netbeans-modules-autoupdate-services/org/netbeans/api/autoupdate/package-summary.html).
In fact you can completely get rid of the UI if you want and do everything
in the background if you don't want to leave your users any choice.

The API isn't the most intuitive to work with. It throws a lot of new
terminology at you. Personally I learned a lot about how this works from
"The Definitive Guide To NetBeans Platform 7" by Heiko Böck (chapter 36 and
chapter 25). Try Google. The book is rather old but still the best source I
know of for this particular subject.

If you are creating an NB application where you want to customize how the
module install/update mechanism works, meaning you want full control, then
especially chapter 25 has been an eye opener for me.

Enjoy.

Peter




On Wed, Apr 13, 2016 at 6:07 PM, jhuber <[email protected]> wrote:

> Hello!
>
> I have a Netbeans 8.0.1 platform suite/application App1 that has its own
> update center.  I have another platform application App2 with its own
> modules that uses App1 as a library, but some of the modules from App1 are
> disabled.  App2 also has its own separate update center.
>
> The problem is that when I goto Tools->Plugins in App2, under the
> "Available Plugins" tab, it shows the modules that I have disabled in App1
> as available for install.  This is undesirable, since one of the reasons I
> created App2 is because I do not want the users to have access to those
> disabled App1 modules.
>
> Is there some way to prevent those disabled App1 modules from showing up
> in the "Available Plugins" tab?
>
> Thanks!
>
>
>
>
>
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.