<!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 /&lt;vpe:textFormatting use-default-formats="yes"&gt;,/
      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:

    /   &lt;vpe:format type="UnderlineFormat"&gt;
        &lt;vpe:formatAttribute type="style" /&gt;
    &lt;/vpe:format&gt;
    &lt;vpe:format type="BoldFormat"&gt;
        &lt;vpe:formatAttribute type="style" /&gt;
    &lt;/vpe:format&gt;
    &lt;vpe:format type="ItalicFormat"&gt;
        &lt;vpe:formatAttribute type="style" /&gt;
    &lt;/vpe:format&gt;
    &lt;vpe:format type="FontNameFormat"&gt;
        &lt;vpe:formatAttribute type="style" /&gt;
    &lt;/vpe:format&gt;
    &lt;vpe:format type="FontSizeFormat"&gt;
        &lt;vpe:formatAttribute type="style" /&gt;
    &lt;/vpe:format&gt;
    &lt;vpe:format type="BackgroundColorFormat"&gt;
        &lt;vpe:formatAttribute type="style" /&gt;
    &lt;/vpe:format&gt;
    &lt;vpe:format type="ForegroundColorFormat"&gt;
        &lt;vpe:formatAttribute type="style" /&gt;
    &lt;/vpe:format&gt;
/

   4. Some Examples of using:

    *              &lt;!--Simply adds to template default formats --&gt;

/                &lt;vpe:textFormatting use-default-formats="yes"&gt;
                &lt;/vpe:textFormatting&gt;/

    *              &lt;!-- Doesn't uses default formats, here simply will
      be available only one format --&gt;

/                 &lt;vpe:textFormatting&gt;
               &lt;vpe:format type="UnderlineFormat"&gt;
                    &lt;vpe:formatAttribute type="style" /&gt;
                &lt;/vpe:format&gt;
                &lt;/vpe:textFormatting&gt;/

    *           &lt;!--Uses default format  and adds own formats you can
      see template for 'span'--&gt;

/            &lt;vpe:textFormatting use-default-formats="yes"&gt;
                &lt;vpe:format type="BlockFormat" addChildren="allow"
handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BlockFormatHandler"
/&gt;
                &lt;vpe:format type="BoldFormat"&gt;
                    &lt;vpe:formatAttribute type="style" /&gt;
                &lt;/vpe:format&gt;
             &lt;/vpe:textFormatting&gt;/

    *           &lt;!--  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;

              &lt;vpe:textFormatting use-default-formats="yes"&gt;
                &lt;vpe:format type="BlockFormat" addChildren="allow"
handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BlockFormatHandler"
/&gt;
                &lt;vpe:format type="BoldFormat"&gt;
                    &lt;vpe:formatAttribute type="style" /&gt;
                &lt;/vpe:format&gt;
                &lt;vpe:format type="UnderlineFormat" addChildren="allow"
handler="org.jboss.tools.vpe.editor.toolbar.format.handler.UnderlineFormatHandler"
/&gt;
                &lt;vpe:format type="UnderlineFormat"&gt; *&lt;!-- will be used
this definition but not  format from default formats --&gt;*
                    &lt;vpe:formatAttribute type="style" /&gt;
                &lt;/vpe:format&gt;
                &lt;vpe:format type="ItalicFormat" addChildren="allow"
handler="org.jboss.tools.vpe.editor.toolbar.format.handler.ItalicFormatHandler"
/&gt;
                &lt;vpe:format type="ItalicFormat"&gt;
                    &lt;vpe:formatAttribute type="style" /&gt;
                &lt;/vpe:format&gt;
            &lt;/vpe:textFormatting&gt;

    * For mare examples you can see tempates configuration files like
      vpe-templates-html.xml



    </pre>
  </blockquote>
  <pre wrap=""><!---->


  </pre>
</blockquote>
<br>
</body>
</html>