<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="PT-BR" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Hi,<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal"><span lang="EN-US">I am investigating the internal code in JBoss Tools, in particular, the pieces that fill up the Palette view.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I have checked out the source code of the plugins, but I am having a hard time finding out how the Palette view is filled with the different options. For instance, when running an Eclipse instance with JBoss Tools, I
 can see the palette view is filled with the same options expected from the manual page at [1]<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">But I&#8217;m having a hard time to find in the source code how the data to fill this tree of categories is found.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I have traced the code, and I see that the categories are fetched as an XModel / Preference Model [2]. So, if the palette view shows the categories HTML, JBoss, JSF, Oracle ADF and others, I would expect to find an XML
 or Properties file that described those.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Can someone give me any pointers on how the current code finds those categories ?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Another question is, I&#8217;m currently checking if we can extend the plugin to add new categories and items in the Palette; can you give me some hint on how to approach this task ?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">&nbsp; [1]: https://docs.jboss.org/tools/4.0.1.Final/en/jsf/html/palette.html<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">&nbsp; [2]: https://github.com/jbosstools/jbosstools-base/blob/jbosstools-4.0.0.Final/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/options/PreferenceModelUtilities.java#L64<o:p></o:p></span></p>
</div>
<p><font face="Arial"><strong><font style="FONT-SIZE: 11pt">Leonel Gayard</font></strong><em><font style="FONT-SIZE: 10pt"></font><br>
</em><font style="FONT-SIZE: 11pt"><font style="FONT-SIZE: 9pt">_______________________________________</font><br>
</font><font style="FONT-SIZE: 9pt"><br>
<font style="FONT-SIZE: 11pt" color="#213e7f"></font><font style="FONT-SIZE: 9pt"><font color="#213e7f"><strong>GFT&nbsp;Brasil Consultoria Inform&aacute;tica Ltda.</strong></font></font><font style="FONT-SIZE: 9pt"><font style="FONT-SIZE: 9pt"><font style="COLOR: black; FONT-SIZE: 9pt; TEXT-DECORATION: none" color="black"><font style="FONT-SIZE: 9pt"><font style="COLOR: black; FONT-SIZE: 9pt; TEXT-DECORATION: none" color="#000000"><br>
Av. Sao Francisco, 98<br>
18.095-450 Sorocaba, Brasil<br>
<br>
T&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&#43;55 15 3332 9731</font><br>
<font style="COLOR: black; FONT-SIZE: 9pt; TEXT-DECORATION: none">F </font><font style="COLOR: black; MARGIN-LEFT: 15px; FONT-SIZE: 9pt; TEXT-DECORATION: none"></font><br>
Leonel.Gayard@gft.com<br>
</font><a href="http://www.gft.com"><font style="FONT-SIZE: 9pt; TEXT-DECORATION: none"></a><a style="TEXT-DECORATION: none" href="http://www.gft.com/ch"><font color="#000000"></a><a style="COLOR: black; TEXT-DECORATION: none" href="http://www.gft.com/br">www.gft.com</font></font><font color="#000000">/br</a></font><br>
<font style="FONT-SIZE: 9pt" color="#000000"><a style="COLOR: black; TEXT-DECORATION: none" href="http://www.gft-blog.com.br">www.gft-blog.com.br</a></font><br>
<font style="COLOR: black; FONT-SIZE: 9pt; TEXT-DECORATION: none" color="#000000"><a style="COLOR: black; TEXT-DECORATION: none" href="http://www.twitter.com/gft_br">www.twitter.com/gft_br</a></font><br>
</font></font></font></font></font><font face="Arial"><font style="FONT-SIZE: 14pt" color="#213e7f"><font style="FONT-SIZE: 14pt"><font style="FONT-SIZE: 12pt"><font style="FONT-SIZE: 12pt"><font style="COLOR: black; TEXT-DECORATION: none" color="#000000"><font style="FONT-SIZE: 11pt"><font style="FONT-SIZE: 9pt">______________________________________</font></font></p>
</font></font></font></font></font></font><br>
</body>
</html>