Certificate of netbeans.apidesign.org has expired
Hi, I know that netbeans.apidesign.org is just a temporary workaround. However, it is still highly useful for everyone who has to maintain compatibility with NetBeans 8.x. As such, I very much appreciate this service to the community. Unfortunately, the Let's Encrypt HTTPS certificate of netbeans.apidesign.org didn't get renewed; it expired on 25 July 2021. Together with the changes enacted as part of Maven 3.8.1 [1] which effectively banned non-HTTPS repositories, this makes netbeans.apidesign.org unusable. Thus, could you (I assume this means Jaroslav) please renew the certificate? Best wishes, Andreas Sewe [1] <https://maven.apache.org/docs/3.8.1/release-notes.html> -- Dr. Andreas Sewe | s...@cqse.eu | +49 152 56342856 CQSE GmbH | Centa-Hafenbraedl-Strasse 59 | 81249 Muenchen | www.cqse.eu Amtsgericht Muenchen | HRB 177678 | GF: F. Deissenboeck, M. Feilkas - To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org For additional commands, e-mail: users-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
How to determine ProjectCustomizer.Registration.projectType of project
Hi, I want to find out the @ProjectCustomizer.Registration.projectType (something like "org-netbeans-modules-maven") of an existing project in my IDE, which seems to be missed by my own @Registrations. But I have no idea what projectType ID I need to register my customizer for. The Properties explorer doesn't help here (as it does in so many other places in NetBeans), so I am at a bit of a loss how to figure out the projectType ID so that my plug-in matches this type of project as well. Alternatively, does there exist something akin to "folder/any" for project types? Having to manually list all elements of an infinite set seems ... not the best idea. Best wishes, Andreas -- Dr. Andreas Sewe | s...@cqse.eu | +49 152 56342856 CQSE GmbH | Centa-Hafenbraedl-Strasse 59 | 81249 Muenchen | www.cqse.eu Amtsgericht Muenchen | HRB 177678 | GF: F. Deissenboeck, M. Feilkas signature.asc Description: OpenPGP digital signature
Re: How to best implement action for a large number of different context types?
Boris Heithecker wrote: > I think you'll have to implement an action (extending Action or > AbstractAction, not ActionListener) that implements > "org.openide.util.ContextAwareAction". > Its business method is expected to create a proxy action for the context > passed to it. This context is the current user selection of nodes, or > the content of these nodes. > I guess you'd have to find various methods to extract your URI from this > lookup and pass it to the proxy action created. For example look-up a > Project and, if present, extract an URI. > If no URI at all can be extracted, nevertheless return an action, but > its state should be disabled. > Hope it helps, Thank you very much for this suggestion, Boris. That sounds like a good direction to explore. Best wishes, Andreas -- Dr. Andreas Sewe | s...@cqse.eu | +49 152 56342856 CQSE GmbH | Lichtenbergstrasse 8 | 85748 Garching | www.cqse.eu Amtsgericht Muenchen | HRB 177678 | GF: F. Deissenboeck, M. Feilkas signature.asc Description: OpenPGP digital signature
How to get the default icon for a MIME type?
Hi, is there a way to get the plain, unadorned icon for a FileObject's MIME type? Going through DataNode.find(fileObject).getNodeDelegate().getIcon(type) produces an icon with badges, which is something I don't want as these badges may distract the user; the user should see plainly that it's a text/x-java file, but whether there are compile errors in it is immaterial in this context. Directly accessing the system file system with FileUtil.getSystemConfigFile("Loaders/" + fileObject.getMIMEType()) and then looking for the "SystemFileSystem.icon" or "iconBase" attributes doesn't work for me. Neither attribute is present, although I can see them in the layer.xml. Maybe this is because "Loaders/text/x-java" is a folder rather than a file? Or am I simply doing something wrong? Any help with this is greatly appreciated. In particular, advice about possible performance gotchas is probably needed as well, as I want to return the resulting Image from AbstractNode.getIcon, which seems to be called very frequently. Best wishes, Andreas -- Dr. Andreas Sewe | s...@cqse.eu | +49 152 56342856 CQSE GmbH | Lichtenbergstrasse 8 | 85748 Garching | www.cqse.eu Amtsgericht Muenchen | HRB 177678 | GF: F. Deissenboeck, M. Feilkas signature.asc Description: OpenPGP digital signature
Explorer views: How to create intermediate Node layers not present in the data model?
Hi, I'm a currently working my way through the NetBeans Platform for Beginners book and struggling with the following: I want to extend the example in section 7.1.6.2 (an explorer view to create and delete Car objects) such that the node tree gets an intermediate layer like this: Root - Brands starting with 'A' - Aston Martin Brands starting with 'B' - Bugatti - BMW Brands starting with 'M' - Mercedes So, my requirements are this: - I don't want to represent the intermediate layer in my data model; it should still be just a list of Car objects with a brand property. - I want to display the intermediate "Brands starting with 'X'" nodes only if a brand starting with the letter actually exists in my data model. We don't want to clutter the user interface with 26 nodes for letters A to Z. - If the user deletes the last Car with a brand starting with, say, 'M', then the respective node should vanish from the UI. After several hours of experimentation I am stuck. Hence, any pointer how to achieve that, e.g., where to attach what listeners are greatly appreciated. Best wishes, Andreas -- Dr. Andreas Sewe | s...@cqse.eu | +49 152 56342856 CQSE GmbH | Lichtenbergstrasse 8 | 85748 Garching | www.cqse.eu Amtsgericht Muenchen | HRB 177678 | GF: F. Deissenboeck, M. Feilkas signature.asc Description: OpenPGP digital signature
Re: How to show filtered views of single ExplorerManager's nodes?
Emilian Bold wrote: > I don't believe FilterNode is designed for filtering that changes much the > hierarchy structure. > > I recommend reading about > http://bits.netbeans.org/8.1/javadoc/org-netbeans-spi-viewmodel/org/netbeans/spi/viewmodel/package-summary.html#package_description > which is more generic but should allow you easily to redesign the hierarchy. Thank for you for the pointer; I wasn't aware of org-netbeans-spi-viewmodel. (New to NetBeans and re-reading _The NetBeans Platform for Beginners_, which doesn't cover that API.) It looks to be more low-level, though. In particular, how would I react to changes in the underlying mode? Currently, my Node and ChildFactory subclasses listen to property changes of the model at the respective levels. Who would be responsible to listen to model changes using the view model API? Best wishes, Andreas -- Dr. Andreas Sewe | s...@cqse.eu | +49 152 56342856 CQSE GmbH | Lichtenbergstrasse 8 | 85748 Garching | www.cqse.eu Amtsgericht Muenchen | HRB 177678 | GF: F. Deissenboeck, M. Feilkas - To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org For additional commands, e-mail: users-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists