<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-15"
http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Max Rydahl Andersen wrote:
<blockquote cite="mid:op.t8vh3xrdw1tq5a@reddevil" type="cite">
<pre wrap="">cool - have we updated all our tempalates to use this ? Should reduce the number of lines considerably ;)
/max
</pre>
</blockquote>
Yes, all templates have bean updated.<br>
<blockquote cite="mid:op.t8vh3xrdw1tq5a@reddevil" type="cite">
<pre wrap=""></pre>
<blockquote type="cite">
<pre wrap="">JBIDE-1494 was fixed.
Here some results of fixing this bug:
1. for tag *vpe:textFormatting* was added attribute
/use-default-formats/
2. if user specify /<vpe:textFormatting use-default-formats="yes">,/
than formats which specified in file
org.jboss.tools.vpe/resources/textFormatting.xml will be added as
formats for template
3. Now in org.jboss.tools.vpe/resources/textFormatting.xml are
specified following formats as default:
/ <vpe:format type="UnderlineFormat">
<vpe:formatAttribute type="style" />
</vpe:format>
<vpe:format type="BoldFormat">
<vpe:formatAttribute type="style" />
</vpe:format>
<vpe:format type="ItalicFormat">
<vpe:formatAttribute type="style" />
</vpe:format>
<vpe:format type="FontNameFormat">
<vpe:formatAttribute type="style" />
</vpe:format>
<vpe:format type="FontSizeFormat">
<vpe:formatAttribute type="style" />
</vpe:format>
<vpe:format type="BackgroundColorFormat">
<vpe:formatAttribute type="style" />
</vpe:format>
<vpe:format type="ForegroundColorFormat">
<vpe:formatAttribute type="style" />
</vpe:format>
/
4. Some Examples of using:
* <!--Simply adds to template default formats -->
/ <vpe:textFormatting use-default-formats="yes">
</vpe:textFormatting>/
* <!-- Doesn't uses default formats, here simply will
be available only one format -->
/ <vpe:textFormatting>
<vpe:format type="UnderlineFormat">
<vpe:formatAttribute type="style" />
</vpe:format>
</vpe:textFormatting>/
* <!--Uses default format and adds own formats you can
see template for 'span'-->
/ <vpe:textFormatting use-default-formats="yes">
<vpe:format type="BlockFormat" addChildren="allow"
handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BlockFormatHandler"
/>
<vpe:format type="BoldFormat">
<vpe:formatAttribute type="style" />
</vpe:format>
</vpe:textFormatting>/
* <!-- If use-default-formats="yes" and format with some
type exist in local definition, than will be used format from
local definition of formats-->
<vpe:textFormatting use-default-formats="yes">
<vpe:format type="BlockFormat" addChildren="allow"
handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BlockFormatHandler"
/>
<vpe:format type="BoldFormat">
<vpe:formatAttribute type="style" />
</vpe:format>
<vpe:format type="UnderlineFormat" addChildren="allow"
handler="org.jboss.tools.vpe.editor.toolbar.format.handler.UnderlineFormatHandler"
/>
<vpe:format type="UnderlineFormat"> *<!-- will be used
this definition but not format from default formats -->*
<vpe:formatAttribute type="style" />
</vpe:format>
<vpe:format type="ItalicFormat" addChildren="allow"
handler="org.jboss.tools.vpe.editor.toolbar.format.handler.ItalicFormatHandler"
/>
<vpe:format type="ItalicFormat">
<vpe:formatAttribute type="style" />
</vpe:format>
</vpe:textFormatting>
* For mare examples you can see tempates configuration files like
vpe-templates-html.xml
</pre>
</blockquote>
<pre wrap=""><!---->
</pre>
</blockquote>
<br>
</body>
</html>