Re: two modules can't have same preferredID ?
Peter Cheung <[email protected]> Sat, 7 Oct 2017 18:03:09 +0000
| Newsgroups | gmane.comp.java.netbeans.modules.openide.devel |
|---|---|
| Message-ID | <ME1PR01MB026091212A0E14F217ACE798B5760@ME1PR01MB0260.ausprd01.prod.outlook.com> |
--_005_ME1PR01MB026091212A0E14F217ACE798B5760ME1PR01MB0260ausp_ Content-Type: multipart/alternative; boundary="_000_ME1PR01MB026091212A0E14F217ACE798B5760ME1PR01MB0260ausp_" --_000_ME1PR01MB026091212A0E14F217ACE798B5760ME1PR01MB0260ausp_ Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable If two different person developed their own module with same TopComponent p= referredID, they just crash, why don't avoid it? ________________________________ From: Peter Cheung <[email protected]> Sent: Sunday, October 8, 2017 1:28 AM To: [email protected] Subject: [platform-dev] Re: two modules can't have same preferredID ? Thanks, but how can I make sure no other module has already used my preferr= edID ? @TopComponent.OpenActionRegistration( displayName =3D "#CTL_TreeAction", preferredID =3D "XXXXTreeTopComponent" <---- If i change this to a ver= y very wreid preferredID , now two modules's menu are showing correct TopCo= mponent after clicking on it ) Thanks ________________________________ From: [email protected] <[email protected]> Sent: Sunday, October 8, 2017 1:18 AM To: [email protected] Subject: [platform-dev] Re: two modules can't have same preferredID ? That=92s right, the preferredID should be unique. [cid:[email protected]] Geertjan Wielenga | Principal Product Manager Phone: +31620320056 | Oracle Developer Tools ORACLE Netherlands | Hertogswetering 163-167 | 3543 AS Utrecht | Netherland= s [cid:[email protected]] Oracle is committed to developing practices and products that help protect = the environment On 7 Oct 2017, at 19:16, Peter Cheung <[email protected]<mailto:mcheung= [email protected]>> wrote: Hi I have two independent modules, each has a TopComponent with same prefer= redID, when i click on the menu, they messed up together. Is that we can't = have same preferredID in two different modules? @TopComponent.Description( preferredID =3D "TreeTopComponent", //iconBase=3D"SET/PATH/TO/ICON/HERE", persistenceType =3D TopComponent.PERSISTENCE_ALWAYS ) thanks from Peter --_000_ME1PR01MB026091212A0E14F217ACE798B5760ME1PR01MB0260ausp_ Content-Type: text/html; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable <html> <head> <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3DWindows-1= 252"> <style type=3D"text/css" style=3D"display:none;"><!-- P {margin-top:0;margi= n-bottom:0;} --></style> </head> <body dir=3D"ltr"> <div id=3D"divtagdefaultwrapper" style=3D"font-size:12pt;color:#000000;font= -family:Calibri,Helvetica,sans-serif;" dir=3D"ltr"> <p>If two different person developed their own module with same TopComponen= t preferredID, they just crash, why don't avoid it?</p> <br> <br> <div style=3D"color: rgb(0, 0, 0);"> <hr tabindex=3D"-1" style=3D"display:inline-block; width:98%"> <div id=3D"divRplyFwdMsg" dir=3D"ltr"><font face=3D"Calibri, sans-serif" co= lor=3D"#000000" style=3D"font-size:11pt"><b>From:</b> Peter Cheung <mche= [email protected]><br> <b>Sent:</b> Sunday, October 8, 2017 1:28 AM<br> <b>To:</b> [email protected]<br> <b>Subject:</b> [platform-dev] Re: two modules can't have same preferredID = ?</font> <div> </div> </div> <div> <div id=3D"divtagdefaultwrapper" dir=3D"ltr" style=3D"font-size:12pt; color= :rgb(0,0,0); font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple= Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI= Symbol","Android Emoji",EmojiSymbols"> <p>Thanks, but how can I make sure no other module has already used my= <span style=3D"font-family:Calibri,Helvetica,sans-serif,EmojiFont,&qu= ot;Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"= Segoe UI Symbol","Android Emoji",EmojiSymbols; font-size:16p= x">preferredID ? </span></p> <p><span style=3D"font-family:Calibri,Helvetica,sans-serif,EmojiFont,"= Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Seg= oe UI Symbol","Android Emoji",EmojiSymbols; font-size:16px">= <br> </span></p> <p><span style=3D"font-family:Calibri,Helvetica,sans-serif,EmojiFont,"= Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Seg= oe UI Symbol","Android Emoji",EmojiSymbols; font-size:16px">= </span></p> <div>@TopComponent.OpenActionRegistration(</div> <div><span style=3D"white-space:pre"></span>displayName =3D "#CTL_Tree= Action",</div> <div><span style=3D"white-space:pre"></span>preferredID =3D "XXXXTreeT= opComponent" <b><span style=3D"color:rgb(255,0,0)"> <---- If i change this to a= very very </span> <span style=3D"color:rgb(255,0,0)">wreid </span></b><span style=3D"fon= t-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji&quo= t;,"Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol",&q= uot;Android Emoji",EmojiSymbols; font-size:16px; color:rgb(255,0,0)"><= b>preferredID , now two modules's menu are showing correct TopComponent after clicking o= n it</b></span></div> <div>)</div> <br> <p></p> <p><span style=3D"font-family:Calibri,Helvetica,sans-serif,EmojiFont,"= Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Seg= oe UI Symbol","Android Emoji",EmojiSymbols; font-size:16px">= Thanks</span></p> <br> <br> <div style=3D"color:rgb(0,0,0)"> <hr tabindex=3D"-1" style=3D"display:inline-block; width:98%"> <div id=3D"divRplyFwdMsg" dir=3D"ltr"><font face=3D"Calibri, sans-serif" co= lor=3D"#000000" style=3D"font-size:11pt"><b>From:</b> geertjan.wielenga@ora= cle.com <[email protected]><br> <b>Sent:</b> Sunday, October 8, 2017 1:18 AM<br> <b>To:</b> [email protected]<br> <b>Subject:</b> [platform-dev] Re: two modules can't have same preferredID = ?</font> <div> </div> </div> <div> <div class=3D""><br class=3D""> </div> <div class=3D"">That=92s right, the preferredID should be unique.</div> <br class=3D""> <div class=3D""><span><img naturalheight=3D"26" naturalwidth=3D"114" id=3D"= BD68C0FE-180C-48A1-8D70-964BA9CAE542" class=3D"" tabindex=3D"0" style=3D"" = src=3D"cid:[email protected]"></span><br class=3D""> Geertjan Wielenga | Principal Product Manager<br class=3D""> Phone: +31620320056 | <br class=3D""> Oracle Developer Tools<br class=3D""> <br class=3D""> ORACLE Netherlands | Hertogswetering 163-167 | 3543 AS Utrec= ht | Netherlands<br class=3D""> <span><img naturalheight=3D"28" naturalwidth=3D"44" id=3D"74A2AACF-027D-402= 7-9F7A-959D917A3817" class=3D"" tabindex=3D"0" style=3D"" src=3D"cid:part4.= [email protected]"></span><br class=3D""> <br class=3D""> Oracle is committed to developing practices and products that help protect = the environment<br class=3D""> </div> <br class=3D""> <blockquote type=3D"cite" class=3D"">On 7 Oct 2017, at 19:16, Peter Cheung = <<a href=3D"mailto:[email protected]" class=3D"">[email protected]= om</a>> wrote:<br class=3D""> <br class=3D""> Hi<br class=3D""> I have two independent modules, each has a TopComponent with s= ame preferredID, when i click on the menu, they messed up togethe= r. Is that we can't have same preferredID in two different modules?<br= class=3D""> <br class=3D""> @TopComponent.Description(<br class=3D""> preferredID =3D "TreeTopComponent",<br class=3D""> //iconBase=3D"SET/PATH/TO/ICON/HERE", <br class=3D""> persistenceType =3D TopComponent.PERSISTENCE_ALWAYS<br class=3D""> )<br class=3D""> thanks<br class=3D""> from Peter<br class=3D""> </blockquote> <br class=3D""> </div> </div> </div> </div> </div> </div> </body> </html> --_000_ME1PR01MB026091212A0E14F217ACE798B5760ME1PR01MB0260ausp_-- --_005_ME1PR01MB026091212A0E14F217ACE798B5760ME1PR01MB0260ausp_ Content-Type: image/gif; name="Mail Attachment.gif" Content-Description: Mail Attachment.gif Content-Disposition: inline; filename="Mail Attachment.gif"; size=658; creation-date="Sat, 07 Oct 2017 17:18:41 GMT"; modification-date="Sat, 07 Oct 2017 17:18:41 GMT" Content-ID: <[email protected]> Content-Transfer-Encoding: base64 R0lGODlhcgAaAMQAAP8QEP/w8P/Q0P/g4P8wMP9gYP8gIP+goP9QUP+QkP+wsP9wcP+AgP9AQP/A wP8AAP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAAA AAAALAAAAAByABoAAAX/ICSOZGmeaKqubOu+cCzPdC0GCqPvvBKUDp5wp1gFdIPVIDfcOQa6A8yR aO4gweQoUHh4v2Bw4SdihM9egyBF8ALIpkEXDR44vA2XwkD/IgYGAAZbbX1nBGRmhl8AWiUJYicC AIsPDFh4LXOGjQ4NAAhrEIUPBQcOqKmoB5sEZV4JqqoHhQVxlGAOJQG4AAunsqg/dw95KwdfBgzB qKIEBMaQDwCiKpOwEIq6KANuJg14igZwEHPULMTGKbxetjF8D1ItxK7aKl8lCl8DAfALW1+2rUi3 QtqgGN2mwYCXzYvAON624LoEQZ9DEfRcEFSBIE2DjyBDfnyIqRgMcA8a/z5AZQWXOxEdHxwUgfIg sX/zMqlAWclVCQFefLpAqdJBAFJn3owgtpJEQkslEWjUmYLnomokcDlS4s0eFzQNqvXDEyzmAwFP yaXYmGJBuxlzELWIacueiE0AFGyF4HbaNTquUEpFRxUFUC9YXQzARYAkEJSNipKQ9kDu0i9SKKNZ 9iXswMIoYgI4oJYFskpgzkkmcdrviELqmPVt1HpRAaaLqCE1lBgjvEpqRtgl8Tevygd7TcCuiKvP m8OVEkAIYLYPThSsRIpEQJr1x94QBIT09FH6QJC6AiRAoB1kEb7tRb4MvyB+AwSlbejfz7+///8A BijggAQWaOCBCCao4A+CDDbo4IMQRijhhBQKGAIAOw== --_005_ME1PR01MB026091212A0E14F217ACE798B5760ME1PR01MB0260ausp_ Content-Type: image/gif; name="Mail Attachment.gif" Content-Description: Mail Attachment.gif Content-Disposition: inline; filename="Mail Attachment.gif"; size=356; creation-date="Sat, 07 Oct 2017 17:18:41 GMT"; modification-date="Sat, 07 Oct 2017 17:18:41 GMT" Content-ID: <[email protected]> Content-Transfer-Encoding: base64 R0lGODlhLAAcAMQAAP///0x9RHmec9Pf0aa+oleFULHGrmKNW+nv6I+uivT39N7n3W6VZ7zPuZu2 lsjXxYSmfwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAAA AAAALAAAAAAsABwAQAXhICCOZGmeaDoaReC+sKAMR7GopIA6boIvLgPAVSAgALxjSYdrOp/Q6NPg YqIEPkTBV2taTwgGbEw+PAZo3FfKbqMQQfeJ8DoY0Hg0wxhAKBgHCl5XLgMqDwFCAAIFPIYDgidr OUQGkSh0cQMJAQyXOXKhoqOkpaanI2aoIwMErq+uCY0BMlANKpxkYwQGBH82TpMicD0pAgQACToD AchqhAG3KQ4HIlQNnErG0IYqB9EAiEQvwEsozC43hy0CAeXMwsLDLS8MAvf497ruCZ+gOA0gfNt3 AIK0J/JWKVzIsEQIADs= --_005_ME1PR01MB026091212A0E14F217ACE798B5760ME1PR01MB0260ausp_--