<!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> for tag <b>vpe:textFormatting</b> was added attribute <i>use-default-formats</i></li>
</ol>
<ol start="2">
<li> if user specify <i><vpe:textFormatting
use-default-formats="yes">,</i> than formats which 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>
<i> <vpe:format type="UnderlineFormat"><br>
<vpe:formatAttribute type="style" /><br>
</vpe:format><br>
<vpe:format type="BoldFormat"><br>
<vpe:formatAttribute type="style" /><br>
</vpe:format><br>
<vpe:format type="ItalicFormat"><br>
<vpe:formatAttribute type="style" /><br>
</vpe:format><br>
<vpe:format type="FontNameFormat"><br>
<vpe:formatAttribute type="style" /><br>
</vpe:format><br>
<vpe:format type="FontSizeFormat"><br>
<vpe:formatAttribute type="style" /><br>
</vpe:format><br>
<vpe:format type="BackgroundColorFormat"><br>
<vpe:formatAttribute type="style" /><br>
</vpe:format><br>
<vpe:format type="ForegroundColorFormat"><br>
<vpe:formatAttribute type="style" /><br>
</vpe:format><br>
</i>
<ol start="4">
<li>Some Examples of using:</li>
</ol>
<ul>
<li> <!--Simply adds to template default formats --></li>
</ul>
<i> <vpe:textFormatting use-default-formats="yes">
<br>
</vpe:textFormatting></i><br>
<ul>
<li> <!-- Doesn't uses default formats, here simply
will be available only one format --></li>
</ul>
<i> <vpe:textFormatting><br>
<vpe:format type="UnderlineFormat"><br>
<vpe:formatAttribute type="style" /><br>
</vpe:format> <br>
</vpe:textFormatting></i><br>
<ul>
<li> <!--Uses default format and adds own formats you
can see template for 'span'--></li>
</ul>
<i> <vpe:textFormatting use-default-formats="yes"><br>
<vpe:format type="BlockFormat" addChildren="allow"
handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BlockFormatHandler"
/><br>
<vpe:format type="BoldFormat"><br>
<vpe:formatAttribute type="style" /><br>
</vpe:format><br>
</vpe:textFormatting></i><br>
<ul>
<li> <!-- If use-default-formats="yes" and format with
some type exist in local definition, than will be used format from
local definition of formats--></li>
</ul>
<vpe:textFormatting use-default-formats="yes"><br>
<vpe:format type="BlockFormat" addChildren="allow"
handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BlockFormatHandler"
/><br>
<vpe:format type="BoldFormat"><br>
<vpe:formatAttribute type="style" /><br>
</vpe:format><br>
<vpe:format type="UnderlineFormat"
addChildren="allow"
handler="org.jboss.tools.vpe.editor.toolbar.format.handler.UnderlineFormatHandler"
/><br>
<vpe:format type="UnderlineFormat"> <b><!--
will be used this definition but not format from default formats --></b><br>
<vpe:formatAttribute type="style" /><br>
</vpe:format><br>
<vpe:format type="ItalicFormat" addChildren="allow"
handler="org.jboss.tools.vpe.editor.toolbar.format.handler.ItalicFormatHandler"
/> <br>
<vpe:format type="ItalicFormat"><br>
<vpe:formatAttribute type="style" /><br>
</vpe:format><br>
</vpe:textFormatting><br>
<ul>
<li>For mare examples you can see tempates configuration files like
vpe-templates-html.xml<br>
</li>
</ul>
<br>
</body>
</html>