Re: very stupid question about lookup
Peter Cheung <[email protected]>
| Newsgroups | gmane.comp.java.netbeans.modules.openide.devel |
|---|---|
| Message-ID | <HKXPR01MB0342D1B9E2F8593EA776A2AAB56E0@HKXPR01MB0342.apcprd01.prod.exchangelabs.com> |
Thanks, your link is working. But why i can only find my api-module in the same module suite? If the module is not in the same module suite, i can't find it in "module dependencies"? thanks from Peter ________________________________ From: geertjan wielenga <[email protected]> Sent: Wednesday, January 4, 2017 12:07 AM To: [email protected] Subject: [platform-dev] Re: very stupid question about lookup https://platform.netbeans.org/tutorials/nbm-quick-start.html NetBeans Platform Quick Start for NetBeans Platform<https://platform.netbeans.org/tutorials/nbm-quick-start.html> platform.netbeans.org NetBeans Platform Quick Start. Welcome to the NetBeans Platform! The NetBeans Platform is a generic application framework primarily for Java desktop applications. Gj On 3-1-2017 17:04, Peter Cheung wrote: What is API module? any tutorial of that? thanks ________________________________ From: Benno Markiewicz <[email protected]><mailto:[email protected]> Sent: Tuesday, January 3, 2017 10:13 PM To: dev Subject: [platform-dev] Re: very stupid question about lookup How about an API-module? Den 3 jan. 2017 2:36 em skrev "Peter Cheung" <[email protected]<mailto:[email protected]>>: Hi I have implemented my own server in a module, in another module i am ok to lookup its instance by : for (MainService s : Lookup.getDefault().lookupAll(MainService.class)) { ModuleLib.log(s + " = " + s.peter()); } But i need to include module A in module B. That is not right i thing, because when i did that, the toolbar button (i meant the actions) from module A will crash when i install module B. Another big question is : how about they both need to lookup each other, do that need to include each other? thanks from Peter