Author: dmaliarevich
Date: 2008-05-28 04:38:22 -0400 (Wed, 28 May 2008)
New Revision: 8389
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe.html/templates/vpe-templates-html.xml
Log:
http://jira.jboss.com/jira/browse/JBIDE-2043,
Template was added for <img> tag, if there is an alt attribute it is displayed,
otherwise unknown images is displayed.
Method in VpeStyleUtil was corrected, references to this method in Panel Menu Group and
Item were corrected.
Modified: trunk/vpe/plugins/org.jboss.tools.vpe.html/templates/vpe-templates-html.xml
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe.html/templates/vpe-templates-html.xml 2008-05-27
19:23:23 UTC (rev 8388)
+++ trunk/vpe/plugins/org.jboss.tools.vpe.html/templates/vpe-templates-html.xml 2008-05-28
08:38:22 UTC (rev 8389)
@@ -1077,35 +1077,15 @@
</vpe:tag>
<vpe:tag name="img" case-sensitive="no">
- <!-- in this case the tag is a facelets's tag -->
- <vpe:if test="attrpresent('jsfc')" >
- <vpe:template children="no" modify="no">
- <vpe:copy
- attrs="style,class,width,height,border,hspace,vspace">
- <vpe:attribute name="src" value="{src(@value)}" />
- </vpe:copy>
- <vpe:resize>
- <vpe:width width-attr="style.width" />
- <vpe:height height-attr="style.height" />
- </vpe:resize>
- <vpe:dnd>
- <vpe:drag start-enable="yes" />
- </vpe:dnd>
- </vpe:template>
- </vpe:if>
- <!-- default template -->
- <vpe:template children="no" modify="no">
- <vpe:copy
- attrs="style,class,width,height,border,hspace,vspace">
- <vpe:attribute name="src" value="{src(@src)}" />
- </vpe:copy>
- <vpe:resize>
- <vpe:width width-attr="style.width" />
- <vpe:height height-attr="style.height" />
- </vpe:resize>
- <vpe:dnd>
- <vpe:drag start-enable="yes" />
- </vpe:dnd>
+ <vpe:template children="no" modify="no"
+ class="org.jboss.tools.vpe.html.template.HtmlImgTemplate">
+ <vpe:resize>
+ <vpe:width width-attr="style.width" />
+ <vpe:height height-attr="style.height" />
+ </vpe:resize>
+ <vpe:dnd>
+ <vpe:drag start-enable="yes" />
+ </vpe:dnd>
</vpe:template>
</vpe:tag>