<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
JBIDE-1494 was fixed.<br>
Here some results of fixing this bug:<br>
<ol>
  <li>&nbsp;for tag <b>vpe:textFormatting</b> was added attribute <i>use-default-formats</i></li>
</ol>
<ol start="2">
  <li>&nbsp;if user specify <i>&lt;vpe:textFormatting
use-default-formats="yes"&gt;,</i> than formats which&nbsp;&nbsp;&nbsp; specified in
file org.jboss.tools.vpe/resources/textFormatting.xml will be added as
formats for template</li>
  <li>Now in org.jboss.tools.vpe/resources/textFormatting.xml are
specified following formats as default:<br>
  </li>
</ol>
&nbsp;&nbsp;&nbsp; <i>&nbsp;&nbsp; &lt;vpe:format type="UnderlineFormat"&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;vpe:formatAttribute type="style" /&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;/vpe:format&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;vpe:format type="BoldFormat"&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;vpe:formatAttribute type="style" /&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;/vpe:format&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;vpe:format type="ItalicFormat"&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;vpe:formatAttribute type="style" /&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;/vpe:format&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;vpe:format type="FontNameFormat"&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;vpe:formatAttribute type="style" /&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;/vpe:format&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;vpe:format type="FontSizeFormat"&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;vpe:formatAttribute type="style" /&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;/vpe:format&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;vpe:format type="BackgroundColorFormat"&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;vpe:formatAttribute type="style" /&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;/vpe:format&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;vpe:format type="ForegroundColorFormat"&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;vpe:formatAttribute type="style" /&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;/vpe:format&gt;<br>
</i>
<ol start="4">
  <li>Some Examples of using:</li>
</ol>
<ul>
  <li>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &lt;!--Simply adds to template default formats --&gt;</li>
</ul>
<i>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;vpe:textFormatting use-default-formats="yes"&gt;
<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/vpe:textFormatting&gt;</i><br>
<ul>
  <li>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &lt;!-- Doesn't uses default formats, here simply
will be available only one format --&gt;</li>
</ul>
<i> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;vpe:textFormatting&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &lt;vpe:format type="UnderlineFormat"&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;vpe:formatAttribute type="style" /&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/vpe:format&gt; <br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/vpe:textFormatting&gt;</i><br>
<ul>
  <li>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &lt;!--Uses default format&nbsp; and adds own formats you
can see template for 'span'--&gt;</li>
</ul>
<i>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;vpe:textFormatting use-default-formats="yes"&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;vpe:format type="BlockFormat" addChildren="allow"
handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BlockFormatHandler"
/&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;vpe:format type="BoldFormat"&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;vpe:formatAttribute type="style" /&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/vpe:format&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &lt;/vpe:textFormatting&gt;</i><br>
<ul>
  <li>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &lt;!--&nbsp; If use-default-formats="yes" and format with
some type exist in local definition, than will be used format from
local definition of formats--&gt;</li>
</ul>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &lt;vpe:textFormatting use-default-formats="yes"&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;vpe:format type="BlockFormat" addChildren="allow"
handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BlockFormatHandler"
/&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;vpe:format type="BoldFormat"&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;vpe:formatAttribute type="style" /&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/vpe:format&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;vpe:format type="UnderlineFormat"
addChildren="allow"
handler="org.jboss.tools.vpe.editor.toolbar.format.handler.UnderlineFormatHandler"
/&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;vpe:format type="UnderlineFormat"&gt; <b>&lt;!--
will be used this definition but not&nbsp; format from default formats --&gt;</b><br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;vpe:formatAttribute type="style" /&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/vpe:format&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;vpe:format type="ItalicFormat" addChildren="allow"
handler="org.jboss.tools.vpe.editor.toolbar.format.handler.ItalicFormatHandler"
/&gt;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;vpe:format type="ItalicFormat"&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;vpe:formatAttribute type="style" /&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/vpe:format&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/vpe:textFormatting&gt;<br>
<ul>
  <li>For mare examples you can see tempates configuration files like
vpe-templates-html.xml<br>
  </li>
</ul>
<br>
</body>
</html>