Re: two modules can't have same preferredID ?

Peter Cheung <[email protected]> Sat, 7 Oct 2017 17:28:18 +0000
Newsgroups gmane.comp.java.netbeans.modules.openide.devel
Message-ID <ME1PR01MB0260B3C729C27C2EF97820B4B5760@ME1PR01MB0260.ausprd01.prod.outlook.com>
--_005_ME1PR01MB0260B3C729C27C2EF97820B4B5760ME1PR01MB0260ausp_
Content-Type: multipart/alternative;
	boundary="_000_ME1PR01MB0260B3C729C27C2EF97820B4B5760ME1PR01MB0260ausp_"

--_000_ME1PR01MB0260B3C729C27C2EF97820B4B5760ME1PR01MB0260ausp_
Content-Type: text/plain; charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable

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_ME1PR01MB0260B3C729C27C2EF97820B4B5760ME1PR01MB0260ausp_
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: rgb(0, 0,=
 0); font-family: Calibri, Helvetica, sans-serif, EmojiFont, &quot;Apple Co=
lor Emoji&quot;, &quot;Segoe UI Emoji&quot;, NotoColorEmoji, &quot;Segoe UI=
 Symbol&quot;, &quot;Android Emoji&quot;, EmojiSymbols;" dir=3D"ltr">
<p>Thanks, but how can I&nbsp;make sure no other module has already used my=
&nbsp;<span style=3D"font-family: Calibri, Helvetica, sans-serif, EmojiFont=
, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, NotoColorEmoji=
, &quot;Segoe UI Symbol&quot;, &quot;Android Emoji&quot;, EmojiSymbols; fon=
t-size: 16px;">preferredID
 ?&nbsp;</span></p>
<p><span style=3D"font-family: Calibri, Helvetica, sans-serif, EmojiFont, &=
quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, NotoColorEmoji, &=
quot;Segoe UI Symbol&quot;, &quot;Android Emoji&quot;, EmojiSymbols; font-s=
ize: 16px;"><br>
</span></p>
<p><span style=3D"font-family: Calibri, Helvetica, sans-serif, EmojiFont, &=
quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, NotoColorEmoji, &=
quot;Segoe UI Symbol&quot;, &quot;Android Emoji&quot;, EmojiSymbols; font-s=
ize: 16px;"></p>
<div>@TopComponent.OpenActionRegistration(</div>
<div><span style=3D"white-space:pre"></span>displayName =3D &quot;#CTL_Tree=
Action&quot;,</div>
<div><span style=3D"white-space:pre"></span>preferredID =3D &quot;XXXXTreeT=
opComponent&quot;&nbsp; &nbsp;
<b><span style=3D"color: rgb(255, 0, 0);">&nbsp; &lt;---- If i change this =
to a very very </span>
<span style=3D"color: rgb(255, 0, 0);">wreid&nbsp;</span></b><span style=3D=
"font-family: Calibri, Helvetica, sans-serif, EmojiFont, &quot;Apple Color =
Emoji&quot;, &quot;Segoe UI Emoji&quot;, NotoColorEmoji, &quot;Segoe UI Sym=
bol&quot;, &quot;Android Emoji&quot;, 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>
</span>
<p></p>
<p><span style=3D"font-family: Calibri, Helvetica, sans-serif, EmojiFont, &=
quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, NotoColorEmoji, &=
quot;Segoe UI Symbol&quot;, &quot;Android Emoji&quot;, EmojiSymbols; font-s=
ize: 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 &lt;[email protected]&gt;<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>&nbsp;</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"us=
er-select: none;" src=3D"cid:[email protected]"></span><br=
 class=3D"">
Geertjan Wielenga | Principal&nbsp;Product&nbsp;Manager<br class=3D"">
Phone:&nbsp;&#43;31620320056&nbsp;|&nbsp;<br class=3D"">
Oracle&nbsp;Developer Tools<br class=3D"">
<br class=3D"">
ORACLE Netherlands |&nbsp;Hertogswetering 163-167 |&nbsp;3543 AS&nbsp;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"user-select: none;"=
 src=3D"cid:[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 =
&lt;<a href=3D"mailto:[email protected]" class=3D"">[email protected]=
om</a>&gt; wrote:<br class=3D"">
<br class=3D"">
Hi<br class=3D"">
&nbsp; &nbsp;I have two independent modules, each has a TopComponent with s=
ame&nbsp;preferredID, when i click on the menu, they messed up&nbsp;togethe=
r. Is that we can't have same&nbsp;preferredID in two different modules?<br=
 class=3D"">
<br class=3D"">
@TopComponent.Description(<br class=3D"">
preferredID =3D &quot;TreeTopComponent&quot;,<br class=3D"">
//iconBase=3D&quot;SET/PATH/TO/ICON/HERE&quot;,&nbsp;<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>
</body>
</html>

--_000_ME1PR01MB0260B3C729C27C2EF97820B4B5760ME1PR01MB0260ausp_--

--_005_ME1PR01MB0260B3C729C27C2EF97820B4B5760ME1PR01MB0260ausp_
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_ME1PR01MB0260B3C729C27C2EF97820B4B5760ME1PR01MB0260ausp_
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_ME1PR01MB0260B3C729C27C2EF97820B4B5760ME1PR01MB0260ausp_--