JBoss Tools SVN: r11973 - trunk/jmx/plugins/org.jboss.tools.jmx.core/src/org/jboss/tools/jmx/core.
by jbosstools-commits@lists.jboss.org
Author: max.andersen(a)jboss.com
Date: 2008-11-24 07:55:13 -0500 (Mon, 24 Nov 2008)
New Revision: 11973
Modified:
trunk/jmx/plugins/org.jboss.tools.jmx.core/src/org/jboss/tools/jmx/core/MBeanOperationInfoWrapper.java
Log:
Temporary fix for JBIDE-3264
Modified: trunk/jmx/plugins/org.jboss.tools.jmx.core/src/org/jboss/tools/jmx/core/MBeanOperationInfoWrapper.java
===================================================================
--- trunk/jmx/plugins/org.jboss.tools.jmx.core/src/org/jboss/tools/jmx/core/MBeanOperationInfoWrapper.java 2008-11-24 10:56:28 UTC (rev 11972)
+++ trunk/jmx/plugins/org.jboss.tools.jmx.core/src/org/jboss/tools/jmx/core/MBeanOperationInfoWrapper.java 2008-11-24 12:55:13 UTC (rev 11973)
@@ -67,8 +67,8 @@
p.getReturnType().equals(info.getReturnType()) &&
p.getDescription().equals(info.getDescription()) &&
p.getImpact() == info.getImpact() &&
- arrayEquals(p.getSignature(), info.getSignature()) &&
- p.getDescriptor().equals(info.getDescriptor()));
+ arrayEquals(p.getSignature(), info.getSignature()) /*&&
+ p.getDescriptor().equals(info.getDescriptor()*/);
}
@@ -97,8 +97,8 @@
return true;
return (o1.getName().equals(o2.getName()) &&
o1.getType().equals(o2.getType()) &&
- safeEquals(o1.getDescription(), o2.getDescription()) &&
- o1.getDescriptor().equals(o2.getDescriptor()));
+ safeEquals(o1.getDescription(), o2.getDescription()) /*&&
+ o1.getDescriptor().equals(o2.getDescriptor())*/);
}
private boolean safeEquals(Object o1, Object o2) {
17 years, 4 months
JBoss Tools SVN: r11972 - trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2008-11-24 05:56:28 -0500 (Mon, 24 Nov 2008)
New Revision: 11972
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/SeamXmlComponentDeclaration.java
Log:
JBIDE-2957
Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/SeamXmlComponentDeclaration.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/SeamXmlComponentDeclaration.java 2008-11-24 10:53:51 UTC (rev 11971)
+++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/SeamXmlComponentDeclaration.java 2008-11-24 10:56:28 UTC (rev 11972)
@@ -15,6 +15,7 @@
import java.util.Properties;
import org.jboss.tools.common.model.XModelObject;
+import org.jboss.tools.common.model.util.NamespaceMapping;
import org.jboss.tools.seam.core.ISeamElement;
import org.jboss.tools.seam.core.ISeamXmlComponentDeclaration;
import org.jboss.tools.seam.core.IValueInfo;
@@ -215,8 +216,11 @@
className = XMLScanner.getImpliedClassName(c, source);
isClassNameGuessed = true;
} else {
- // FIXME
- className = XMLScanner.getDefaultClassName(c, null, null);
+ XModelObject f = c;
+ while(f != null && f.getFileType() != XModelObject.FILE) f = f.getParent();
+ NamespaceMapping nm = NamespaceMapping.load(f);
+ SeamProject sp = (SeamProject)context.get("seamProject");
+ className = XMLScanner.getDefaultClassName(c, nm, sp == null ? null : sp.getNamespaces());
isClassNameGuessed = true;
}
}
17 years, 4 months
JBoss Tools SVN: r11971 - branches/jbosstools-3.0.0.Beta1/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2008-11-24 05:53:51 -0500 (Mon, 24 Nov 2008)
New Revision: 11971
Modified:
branches/jbosstools-3.0.0.Beta1/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/SeamXmlComponentDeclaration.java
Log:
Rolled back change committed into branch by mistake
Modified: branches/jbosstools-3.0.0.Beta1/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/SeamXmlComponentDeclaration.java
===================================================================
--- branches/jbosstools-3.0.0.Beta1/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/SeamXmlComponentDeclaration.java 2008-11-24 10:51:29 UTC (rev 11970)
+++ branches/jbosstools-3.0.0.Beta1/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/SeamXmlComponentDeclaration.java 2008-11-24 10:53:51 UTC (rev 11971)
@@ -15,7 +15,6 @@
import java.util.Properties;
import org.jboss.tools.common.model.XModelObject;
-import org.jboss.tools.common.model.util.NamespaceMapping;
import org.jboss.tools.seam.core.ISeamElement;
import org.jboss.tools.seam.core.ISeamXmlComponentDeclaration;
import org.jboss.tools.seam.core.IValueInfo;
@@ -216,11 +215,7 @@
className = XMLScanner.getImpliedClassName(c, source);
isClassNameGuessed = true;
} else {
- XModelObject f = c;
- while(f != null && f.getFileType() != XModelObject.FILE) f = f.getParent();
- NamespaceMapping nm = NamespaceMapping.load(f);
- SeamProject sp = (SeamProject)context.get("seamProject");
- className = XMLScanner.getDefaultClassName(c, nm, sp == null ? null : sp.getNamespaces());
+ className = XMLScanner.getDefaultClassName(c);
isClassNameGuessed = true;
}
}
17 years, 4 months
JBoss Tools SVN: r11970 - trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/actions.
by jbosstools-commits@lists.jboss.org
Author: dgeraskov
Date: 2008-11-24 05:51:29 -0500 (Mon, 24 Nov 2008)
New Revision: 11970
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/actions/OpenFileActionUtils.java
Log:
http://opensource.atlassian.com/projects/hibernate/browse/HBX-1085
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/actions/OpenFileActionUtils.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/actions/OpenFileActionUtils.java 2008-11-24 09:43:46 UTC (rev 11969)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/actions/OpenFileActionUtils.java 2008-11-24 10:51:29 UTC (rev 11970)
@@ -270,16 +270,17 @@
IPackageFragmentRoot[] packageFragmentRoots;
try {
packageFragmentRoots = proj.getAllPackageFragmentRoots();
- for (int i = 0; i < packageFragmentRoots.length && resource == null; i++) {
+ for (int i = 0; i < packageFragmentRoots.length; i++) {
//search in source folders.
if (packageFragmentRoots[i].getClass() == PackageFragmentRoot.class) {
IPackageFragmentRoot packageFragmentRoot = packageFragmentRoots[i];
IPath path = packageFragmentRoot.getPath().append(file.getValue());
resource = ResourcesPlugin.getWorkspace().getRoot().getFile(path);
+
+ if (resource != null && resource.exists() &&
+ elementInResource(consoleConfiguration, resource, element)) return resource;
}
}
- if (resource != null &&
- elementInResource(consoleConfiguration, resource, element)) return resource;
resource = null;
} catch (JavaModelException e) {
HibernateConsolePlugin.getDefault().logErrorMessage(HibernateConsoleMessages.OpenFileActionUtils_problems_while_get_project_package_fragment_roots, e);
17 years, 4 months
JBoss Tools SVN: r11969 - trunk/vpe/plugins/org.jboss.tools.vpe.html/templates.
by jbosstools-commits@lists.jboss.org
Author: sdzmitrovich
Date: 2008-11-24 04:43:46 -0500 (Mon, 24 Nov 2008)
New Revision: 11969
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe.html/templates/vpe-templates-html.xml
Log:
applied patch of yzhishko. This patch was corrected some attributes (dir, id, ...) of all html tags and clean code for "input" tag
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-11-24 08:24:20 UTC (rev 11968)
+++ trunk/vpe/plugins/org.jboss.tools.vpe.html/templates/vpe-templates-html.xml 2008-11-24 09:43:46 UTC (rev 11969)
@@ -1,10 +1,10 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<vpe:templates xmlns:vpe="http://org.jboss.org/tools/vpe/template"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <vpe:tag name="a" case-sensitive="no">
+<?xml version="1.0" encoding="UTF-8"?>
+
+<vpe:templates xmlns:vpe="http://org.jboss.org/tools/vpe/template"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <vpe:tag name="a" case-sensitive="no">
<vpe:template children="yes" modify="yes">
- <vpe:a class="{@class}" style="{@style}"/>
+ <vpe:a class="{@class}" style="{@style}" dir="{@dir}"/>
<vpe:dnd>
<vpe:drag start-enable="yes" />
<vpe:drop container="yes">
@@ -24,2120 +24,2085 @@
</vpe:format>
</vpe:textFormatting>
<vpe:pseudoContent />
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="abbr" case-sensitive="no">
- <vpe:template children="yes" modify="yes">
- <vpe:copy attrs="id,style,class" />
- <vpe:textFormatting>
- <vpe:format type="BlockFormat" addChildren="deny"
- handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BlockFormatHandler" />
- <vpe:format type="BoldFormat" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BoldFormatHandler" />
- <vpe:format type="BoldFormat">
- <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:format type="UnderlineFormat" addChildren="allow"
- handler="org.jboss.tools.vpe.editor.toolbar.format.handler.UnderlineFormatHandler">
- </vpe:format>
- <vpe:format type="UnderlineFormat">
- <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>
- </vpe:textFormatting>
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="acronym" case-sensitive="no">
- <vpe:template children="yes" modify="yes">
- <vpe:copy attrs="id,style,class" />
- <vpe:textFormatting use-default-formats="yes">
- <vpe:format type="BlockFormat" addChildren="deny"
- handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BlockFormatHandler" />
- <vpe:format type="BoldFormat" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BoldFormatHandler" />
- <vpe:format type="BoldFormat">
- <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:format type="UnderlineFormat" addChildren="allow"
- handler="org.jboss.tools.vpe.editor.toolbar.format.handler.UnderlineFormatHandler">
- </vpe:format>
- <vpe:format type="UnderlineFormat">
- <vpe:formatAttribute type="style" />
- </vpe:format>
- </vpe:textFormatting>
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="address" case-sensitive="no">
- <vpe:template children="yes" modify="yes">
- <vpe:copy attrs="id,style,class" />
- <vpe:textFormatting>
- <vpe:format type="BlockFormat" addChildren="allow"
- handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BlockFormatHandler" />
- <vpe:format type="BoldFormat" addChildren="allow" addParent="deny" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BoldFormatHandler" />
- <vpe:format type="BoldFormat">
- <vpe:formatAttribute type="style" />
- </vpe:format>
- <vpe:format type="ItalicFormat" addChildren="allow" addParent="deny" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.ItalicFormatHandler" />
- <vpe:format type="ItalicFormat" setDefault="true">
- <vpe:formatAttribute type="style" />
- </vpe:format>
- <vpe:format type="UnderlineFormat" addChildren="allow"
- addParent="deny" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.UnderlineFormatHandler">
- </vpe:format>
- <vpe:format type="UnderlineFormat">
- <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>
- </vpe:textFormatting>
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="applet" case-sensitive="no">
- <vpe:template children="no" modify="no">
- <img src="/applet.gif" />
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="area" case-sensitive="no">
- <vpe:template children="no" modify="no">
- <!--vpe:copy attrs="style,class,shape,coords"/-->
- <vpe:dnd>
- <vpe:drag start-enable="yes" />
- </vpe:dnd>
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="b" case-sensitive="no">
- <vpe:template children="yes" modify="yes">
- <vpe:copy attrs="id,style,class" />
- <vpe:dnd>
- <vpe:drag start-enable="yes" />
- <vpe:drop container="yes">
- <vpe:container-child tag-name="#text" />
- </vpe:drop>
- </vpe:dnd>
- <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" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BoldFormatHandler" />
- <vpe:format type="ItalicFormat" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.ItalicFormatHandler" />
- <vpe:format type="ItalicFormat">
- <vpe:formatAttribute type="style" />
- </vpe:format>
- <vpe:format type="UnderlineFormat" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.UnderlineFormatHandler" />
- <vpe:format type="UnderlineFormat">
- <vpe:formatAttribute type="style" />
- </vpe:format>
- </vpe:textFormatting>
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="base" case-sensitive="no">
- <vpe:template children="yes" modify="no"></vpe:template>
- </vpe:tag>
-
- <vpe:tag name="basefont" case-sensitive="no">
- <vpe:template children="yes" modify="yes">
- <vpe:copy attrs="id,size,color,face" />
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="bdo" case-sensitive="no">
- <vpe:template children="yes" modify="yes">
- <vpe:copy attrs="id,style,class,dir,lang" />
- <vpe:textFormatting>
- <vpe:format type="BlockFormat" addChildren="deny"
- handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BlockFormatHandler" />
- <vpe:format type="BoldFormat" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BoldFormatHandler" />
- <vpe:format type="BoldFormat">
- <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:format type="UnderlineFormat" addChildren="allow"
- handler="org.jboss.tools.vpe.editor.toolbar.format.handler.UnderlineFormatHandler">
- </vpe:format>
- <vpe:format type="UnderlineFormat">
- <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>
- </vpe:textFormatting>
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="bgsound" case-sensitive="no">
- <vpe:template children="no" modify="no">
- <img src="/bgsound.gif" />
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="big" case-sensitive="no">
- <vpe:template children="yes" modify="yes">
- <vpe:copy attrs="id,style,class" />
- <vpe:textFormatting use-default-formats="yes">
- <vpe:format type="BlockFormat" addChildren="deny"
- handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BlockFormatHandler" />
- <vpe:format type="BoldFormat" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BoldFormatHandler" />
- <vpe:format type="BoldFormat">
- <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:format type="UnderlineFormat" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.UnderlineFormatHandler" />
- <vpe:format type="UnderlineFormat">
- <vpe:formatAttribute type="style" />
- </vpe:format>
- </vpe:textFormatting>
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="blockquote" case-sensitive="no">
- <vpe:template children="yes" modify="yes">
- <vpe:copy attrs="id,style,class" />
- <vpe:textFormatting>
- <vpe:format type="BlockFormat" addParent="deny" addChildren="allow"
- handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BlockFormatHandler" />
- <vpe:format type="BoldFormat" addParent="deny" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BoldFormatHandler" />
- <vpe:format type="BoldFormat">
- <vpe:formatAttribute type="style" />
- </vpe:format>
- <vpe:format type="ItalicFormat" addParent="deny" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.ItalicFormatHandler" />
- <vpe:format type="ItalicFormat">
- <vpe:formatAttribute type="style" />
- </vpe:format>
- <vpe:format type="UnderlineFormat" addChildren="allow" addParent="deny" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.UnderlineFormatHandler" />
- <vpe:format type="UnderlineFormat">
- <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>
- </vpe:textFormatting>
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="blink" case-sensitive="no">
- <vpe:template children="yes" modify="yes">
- <vpe:copy />
- <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" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BoldFormatHandler" />
- <vpe:format type="BoldFormat">
- <vpe:formatAttribute type="style" />
- </vpe:format>
- <vpe:format type="ItalicFormat" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.ItalicFormatHandler" />
- <vpe:format type="ItalicFormat">
- <vpe:formatAttribute type="style" />
- </vpe:format>
- </vpe:textFormatting>
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="body" case-sensitive="no">
- <vpe:template children="yes" modify="yes"
- class="org.jboss.tools.vpe.html.template.HtmlBodyTemplate">
- <vpe:resize>
- <vpe:width width-attr="style.width" />
- <vpe:height height-attr="style.height" />
- </vpe:resize>
- <vpe:dnd>
- <vpe:drag start-enable="yes" />
- <vpe:drop container="no"></vpe:drop>
- </vpe:dnd>
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="br" case-sensitive="no">
- <vpe:template children="no" modify="yes">
- <vpe:copy attrs="id,style,class,clear" />
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="button" case-sensitive="no">
- <vpe:template children="yes" modify="no">
- <vpe:copy attrs="id,style,class,value">
- <!--vpe:attribute name="disabled" value="on"/-->
- </vpe:copy>
- <!--span class="__button__tag" style="{@style}">
- <nobr><vpe:value expr="{@value}"/></nobr>
- </span-->
- <vpe:resize>
- <vpe:width width-attr="style.width" />
- <vpe:height height-attr="style.height" />
- </vpe:resize>
- <vpe:dnd>
- <vpe:drag start-enable="yes" />
- <vpe:drop container="yes">
- <vpe:container-child tag-name="#text" />
- <vpe:container-child tag-name="abbr" />
- <vpe:container-child tag-name="acronym" />
- <vpe:container-child tag-name="address" />
- <vpe:container-child tag-name="applet" />
- <vpe:container-child tag-name="b" />
- <vpe:container-child tag-name="basefont" />
- <vpe:container-child tag-name="bdo" />
- <vpe:container-child tag-name="bgsound" />
- <vpe:container-child tag-name="big" />
- <vpe:container-child tag-name="blink" />
- <vpe:container-child tag-name="blockquote" />
- <vpe:container-child tag-name="br" />
- <vpe:container-child tag-name="center" />
- <vpe:container-child tag-name="cite" />
- <vpe:container-child tag-name="code" />
- <vpe:container-child tag-name="del" />
- <vpe:container-child tag-name="dfn" />
- <vpe:container-child tag-name="dl" />
- <vpe:container-child tag-name="em" />
- <vpe:container-child tag-name="embed" />
- <vpe:container-child tag-name="font" />
- <vpe:container-child tag-name="h1" />
- <vpe:container-child tag-name="h2" />
- <vpe:container-child tag-name="h3" />
- <vpe:container-child tag-name="h4" />
- <vpe:container-child tag-name="h5" />
- <vpe:container-child tag-name="h6" />
- <vpe:container-child tag-name="hr" />
- <vpe:container-child tag-name="i" />
- <vpe:container-child tag-name="img" />
- <vpe:container-child tag-name="ins" />
- <vpe:container-child tag-name="kbd" />
- <vpe:container-child tag-name="map" />
- <vpe:container-child tag-name="marquee" />
- <vpe:container-child tag-name="menu" />
- <vpe:container-child tag-name="nobr" />
- <vpe:container-child tag-name="noframes" />
- <vpe:container-child tag-name="noscript" />
- <vpe:container-child tag-name="object" />
- <vpe:container-child tag-name="ol" />
- <vpe:container-child tag-name="p" />
- <vpe:container-child tag-name="pre" />
- <vpe:container-child tag-name="q" />
- <vpe:container-child tag-name="s" />
- <vpe:container-child tag-name="samp" />
- <vpe:container-child tag-name="script" />
- <vpe:container-child tag-name="small" />
- <vpe:container-child tag-name="span" />
- <vpe:container-child tag-name="strike" />
- <vpe:container-child tag-name="strong" />
- <vpe:container-child tag-name="sub" />
- <vpe:container-child tag-name="sup" />
- <vpe:container-child tag-name="table" />
- <vpe:container-child tag-name="tt" />
- <vpe:container-child tag-name="u" />
- <vpe:container-child tag-name="ul" />
- <vpe:container-child tag-name="var" />
- <vpe:container-child tag-name="wbr" />
- </vpe:drop>
- </vpe:dnd>
- <vpe:textFormatting >
- <vpe:format type="BlockFormat" addParent="deny" addChildren="allow"
- handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BlockFormatHandler" />
- <vpe:format type="BoldFormat" addParent="deny" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BoldFormatHandler" />
- <vpe:format type="BoldFormat">
- <vpe:formatAttribute type="style" />
- </vpe:format>
- <vpe:format type="ItalicFormat" addParent="deny" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.ItalicFormatHandler" />
- <vpe:format type="ItalicFormat">
- <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">
- <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>
- </vpe:textFormatting>
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="caption" case-sensitive="no">
- <vpe:template children="yes" modify="yes">
- <vpe:copy attrs="id,style,class" />
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="center" case-sensitive="no">
- <vpe:template children="yes" modify="yes">
- <vpe:copy attrs="id,style,class" />
- <vpe:textFormatting>
- <vpe:format type="BlockFormat" addParent="deny" addChildren="allow"
- handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BlockFormatHandler" />
- <vpe:format type="BoldFormat" addParent="deny" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BoldFormatHandler" />
- <vpe:format type="BoldFormat">
- <vpe:formatAttribute type="style" />
- </vpe:format>
- <vpe:format type="ItalicFormat" addParent="deny" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.ItalicFormatHandler" />
- <vpe:format type="ItalicFormat">
- <vpe:formatAttribute type="style" />
- </vpe:format>
- <vpe:format type="UnderlineFormat" addParent="deny" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.UnderlineFormatHandler" />
- <vpe:format type="UnderlineFormat">
- <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>
- </vpe:textFormatting>
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="cite" case-sensitive="no">
- <vpe:template children="yes" modify="yes">
- <vpe:copy attrs="id,style,class" />
- <vpe:textFormatting use-default-formats="yes">
- <vpe:format type="BlockFormat" addChildren="deny"
- handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BlockFormatHandler" />
- <vpe:format type="BoldFormat" addParent="deny" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BoldFormatHandler" />
- <vpe:format type="BoldFormat">
- <vpe:formatAttribute type="style" />
- </vpe:format>
- <vpe:format type="ItalicFormat" addParent="deny" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.ItalicFormatHandler" />
- <vpe:format type="ItalicFormat" setDefault="true">
- <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">
- <vpe:formatAttribute type="style" />
- </vpe:format>
- </vpe:textFormatting>
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="code" case-sensitive="no">
- <vpe:template children="yes" modify="yes">
- <vpe:copy attrs="id,style,class" />
- <vpe:textFormatting>
- <vpe:format type="BlockFormat" addChildren="deny"
- handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BlockFormatHandler" />
- <vpe:format type="BoldFormat" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BoldFormatHandler" />
- <vpe:format type="BoldFormat">
- <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:format type="UnderlineFormat" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.UnderlineFormatHandler" />
- <vpe:format type="UnderlineFormat">
- <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>
- </vpe:textFormatting>
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="col" case-sensitive="no">
- <vpe:template children="no" modify="no">
- <vpe:copy
- attrs="style,class,span,width,align,char,charoff,valign" />
- <vpe:dnd>
- <vpe:drop container="no" />
- </vpe:dnd>
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="colgroup" case-sensitive="no">
- <vpe:template children="yes" modify="yes">
- <vpe:copy
- attrs="style,class,span,width,align,char,charoff,valign" />
- <vpe:dnd>
- <vpe:drop container="yes">
- <vpe:container-child tag-name="col" />
- <vpe:container-child tag-name="del" />
- <vpe:container-child tag-name="ins" />
- </vpe:drop>
- </vpe:dnd>
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="dd" case-sensitive="no">
- <vpe:template children="yes" modify="yes">
- <vpe:copy attrs="id,style,class" />
- <vpe:textFormatting use-default-formats="yes">
- <vpe:format type="BlockFormat" addChildren="allow" addParent="deny"
- handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BlockFormatHandler" />
- <vpe:format type="BoldFormat" addParent="deny" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BoldFormatHandler" />
- <vpe:format type="BoldFormat">
- <vpe:formatAttribute type="style" />
- </vpe:format>
- <vpe:format type="ItalicFormat" addParent="deny" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.ItalicFormatHandler" />
- <vpe:format type="ItalicFormat">
- <vpe:formatAttribute type="style" />
- </vpe:format>
- <vpe:format type="UnderlineFormat" addParent="deny" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.UnderlineFormatHandler" />
- <vpe:format type="UnderlineFormat">
- <vpe:formatAttribute type="style" />
- </vpe:format>
- </vpe:textFormatting>
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="del" case-sensitive="no">
- <vpe:template children="yes" modify="yes">
- <vpe:copy attrs="id,style,class" />
- <vpe:textFormatting>
- <vpe:format type="BlockFormat" addChildren="allow"
- handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BlockFormatHandler" />
- <vpe:format type="BoldFormat" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BoldFormatHandler" />
- <vpe:format type="BoldFormat">
- <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:format type="UnderlineFormat" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.UnderlineFormatHandler" />
- <vpe:format type="UnderlineFormat">
- <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>
- </vpe:textFormatting>
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="dfn" case-sensitive="no">
- <vpe:template children="yes" modify="yes">
- <vpe:copy attrs="id,style,class" />
- <vpe:textFormatting use-default-formats="yes">
- <vpe:format type="BlockFormat" addChildren="deny"
- handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BlockFormatHandler" />
- <vpe:format type="BoldFormat" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BoldFormatHandler" />
- <vpe:format type="BoldFormat">
- <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" setDefault="true">
- <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">
- <vpe:formatAttribute type="style" />
- </vpe:format>
- </vpe:textFormatting>
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="dir" case-sensitive="no">
- <vpe:template children="yes" modify="no">
- <vpe:copy attrs="id,style,class" />
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="div" case-sensitive="no">
- <vpe:template children="yes" modify="yes">
- <vpe:copy attrs="id,style,class,align" />
- <vpe:resize>
- <vpe:width width-attr="style.width" />
- <vpe:height height-attr="style.height" />
- </vpe:resize>
- <vpe:dnd>
- <vpe:drag start-enable="yes" />
- <vpe:drop container="yes" />
- </vpe:dnd>
- <vpe:textFormatting>
- <vpe:format type="BlockFormat" addChildren="allow" addParent="deny"
- handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BlockFormatHandler" />
- <vpe:format type="BoldFormat" addParent="deny" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BoldFormatHandler" />
- <vpe:format type="BoldFormat">
- <vpe:formatAttribute type="style" />
- </vpe:format>
- <vpe:format type="ItalicFormat" addParent="deny" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.ItalicFormatHandler" />
- <vpe:format type="ItalicFormat">
- <vpe:formatAttribute type="style" />
- </vpe:format>
- <vpe:format type="UnderlineFormat" addParent="deny" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.UnderlineFormatHandler" />
- <vpe:format type="UnderlineFormat">
- <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>
- </vpe:textFormatting>
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="dl" case-sensitive="no">
- <vpe:template children="yes" modify="no">
- <vpe:copy attrs="id,style,class" />
- <vpe:textFormatting use-default-formats="yes">
- <vpe:format type="BlockFormat" addChildren="deny" addParent="deny"/>
- <vpe:format type="BoldFormat" addParent="deny" addChildren="deny">
- <vpe:formatAttribute type="style" />
- </vpe:format>
- <vpe:format type="ItalicFormat" addParent="deny" addChildren="deny">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- </vpe:textFormatting>
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="dt" case-sensitive="no">
- <vpe:template children="yes" modify="yes">
- <vpe:copy attrs="id,style,class" />
- <vpe:textFormatting>
- <vpe:format type="BlockFormat" addChildren="deny" addParent="deny"/>
- <vpe:format type="BoldFormat" addParent="deny" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BoldFormatHandler" />
- <vpe:format type="BoldFormat">
- <vpe:formatAttribute type="style" />
- </vpe:format>
- <vpe:format type="ItalicFormat" addParent="deny" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.ItalicFormatHandler" />
- <vpe:format type="ItalicFormat">
- <vpe:formatAttribute type="style" />
- </vpe:format>
- <vpe:format type="UnderlineFormat" addParent="deny" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.UnderlineFormatHandler" />
- <vpe:format type="UnderlineFormat">
- <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>
- </vpe:textFormatting>
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="em" case-sensitive="no">
- <vpe:template children="yes" modify="yes">
- <vpe:copy attrs="id,style,class" />
- <vpe:textFormatting use-default-formats="yes">
- <vpe:format type="BlockFormat" addChildren="deny"
- handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BlockFormatHandler" />
- <vpe:format type="BoldFormat" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BoldFormatHandler" />
- <vpe:format type="BoldFormat">
- <vpe:formatAttribute type="style" />
- </vpe:format>
- <vpe:format type="ItalicFormat" addParent="deny" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.ItalicFormatHandler" />
- <vpe:format type="ItalicFormat" setDefault="true">
- <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">
- <vpe:formatAttribute type="style" />
- </vpe:format>
- </vpe:textFormatting>
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="fieldset" case-sensitive="no">
- <vpe:template children="yes" modify="no">
- <vpe:copy attrs="id,style,class" />
- <vpe:resize>
- <vpe:width width-attr="style.width" />
- <vpe:height height-attr="style.height" />
- </vpe:resize>
- <vpe:dnd>
- <vpe:drag start-enable="yes" />
- <vpe:drop container="yes" />
- </vpe:dnd>
- <vpe:textFormatting>
- <vpe:format type="BlockFormat" addChildren="allow" addParent="deny"
- handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BlockFormatHandler" />
- <vpe:format type="BoldFormat" addParent="deny" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BoldFormatHandler" />
- <vpe:format type="BoldFormat">
- <vpe:formatAttribute type="style" />
- </vpe:format>
- <vpe:format type="ItalicFormat" addParent="deny" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.ItalicFormatHandler" />
- <vpe:format type="ItalicFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- <vpe:format type="UnderlineFormat" addParent="deny" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.UnderlineFormatHandler" />
- <vpe:format type="UnderlineFormat">
- <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>
- </vpe:textFormatting>
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="font" case-sensitive="no">
- <vpe:template children="yes" modify="yes">
- <vpe:copy attrs="id,style,class,size,color,face" />
- <vpe:textFormatting use-default-formats="yes">
- <vpe:format type="BlockFormat" addChildren="deny"
- handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BlockFormatHandler" />
- <vpe:format type="BoldFormat" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BoldFormatHandler" />
- <vpe:format type="BoldFormat">
- <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:format type="UnderlineFormat" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.UnderlineFormatHandler" />
- <vpe:format type="UnderlineFormat">
- <vpe:formatAttribute type="style" />
- </vpe:format>
- </vpe:textFormatting>
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="form" case-sensitive="no">
- <vpe:template children="yes" modify="yes">
- <vpe:copy attrs="id,style,class,align" />
- <div />
- <vpe:dnd>
- <vpe:drag start-enable="yes" />
- <vpe:drop container="yes" />
- </vpe:dnd>
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="frame" case-sensitive="no">
- <vpe:template children="yes" modify="no" />
- </vpe:tag>
-
- <vpe:tag name="frameset" case-sensitive="no">
- <vpe:template children="yes" modify="no" />
- </vpe:tag>
-
- <vpe:tag name="h1" case-sensitive="no">
- <vpe:template children="yes" modify="yes">
- <vpe:copy attrs="id,style,class,align" />
- <vpe:dnd>
- <vpe:drag start-enable="yes" />
- <vpe:drop container="yes" />
- </vpe:dnd>
- <vpe:textFormatting>
- <vpe:format type="BlockFormat" addChildren="allow"
- handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BlockFormatHandler" />
- <vpe:format type="BoldFormat" addParent="deny" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BoldFormatHandler" />
- <vpe:format type="BoldFormat" setDefault="true">
- <vpe:formatAttribute type="style" />
- </vpe:format>
- <vpe:format type="ItalicFormat" addParent="deny" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.ItalicFormatHandler" />
- <vpe:format type="ItalicFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- <vpe:format type="UnderlineFormat" addParent="deny" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.UnderlineFormatHandler" />
- <vpe:format type="UnderlineFormat">
- <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>
- </vpe:textFormatting>
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="h2" case-sensitive="no">
- <vpe:template children="yes" modify="yes">
- <vpe:copy attrs="id,style,class,align" />
- <vpe:dnd>
- <vpe:drag start-enable="yes" />
- <vpe:drop container="yes" />
- </vpe:dnd>
- <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" addParent="deny" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BoldFormatHandler" />
- <vpe:format type="BoldFormat" setDefault="true">
- <vpe:formatAttribute type="style" />
- </vpe:format>
- <vpe:format type="ItalicFormat" addParent="deny" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.ItalicFormatHandler" />
- <vpe:format type="ItalicFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- <vpe:format type="UnderlineFormat" addParent="deny" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.UnderlineFormatHandler" />
- <vpe:format type="UnderlineFormat">
- <vpe:formatAttribute type="style" />
- </vpe:format>
- </vpe:textFormatting>
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="h3" case-sensitive="no">
- <vpe:template children="yes" modify="yes">
- <vpe:copy attrs="id,style,class,align" />
- <vpe:dnd>
- <vpe:drag start-enable="yes" />
- <vpe:drop container="yes" />
- </vpe:dnd>
- <vpe:textFormatting>
- <vpe:format type="BlockFormat" addChildren="allow"
- handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BlockFormatHandler" />
- <vpe:format type="BoldFormat" addParent="deny" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BoldFormatHandler" />
- <vpe:format type="BoldFormat" setDefault="true">
- <vpe:formatAttribute type="style" />
- </vpe:format>
- <vpe:format type="ItalicFormat" addParent="deny" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.ItalicFormatHandler" />
- <vpe:format type="ItalicFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- <vpe:format type="UnderlineFormat" addParent="deny" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.UnderlineFormatHandler" />
- <vpe:format type="UnderlineFormat">
- <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>
- </vpe:textFormatting>
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="h4" case-sensitive="no">
- <vpe:template children="yes" modify="yes">
- <vpe:copy attrs="id,style,class,align" />
- <vpe:dnd>
- <vpe:drag start-enable="yes" />
- <vpe:drop container="yes" />
- </vpe:dnd>
- <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" addParent="deny" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BoldFormatHandler" />
- <vpe:format type="BoldFormat" setDefault="true">
- <vpe:formatAttribute type="style" />
- </vpe:format>
- <vpe:format type="ItalicFormat" addParent="deny" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.ItalicFormatHandler" />
- <vpe:format type="ItalicFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- <vpe:format type="UnderlineFormat" addParent="deny" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.UnderlineFormatHandler" />
- <vpe:format type="UnderlineFormat">
- <vpe:formatAttribute type="style" />
- </vpe:format>
- </vpe:textFormatting>
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="h5" case-sensitive="no">
- <vpe:template children="yes" modify="yes">
- <vpe:copy attrs="id,style,class,align" />
- <vpe:dnd>
- <vpe:drag start-enable="yes" />
- <vpe:drop container="yes" />
- </vpe:dnd>
- <vpe:textFormatting>
- <vpe:format type="BlockFormat" addChildren="allow"
- handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BlockFormatHandler" />
- <vpe:format type="BoldFormat" addParent="deny" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BoldFormatHandler" />
- <vpe:format type="BoldFormat" setDefault="true">
- <vpe:formatAttribute type="style" />
- </vpe:format>
- <vpe:format type="ItalicFormat" addParent="deny" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.ItalicFormatHandler" />
- <vpe:format type="ItalicFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- <vpe:format type="UnderlineFormat" addParent="deny" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.UnderlineFormatHandler" />
- <vpe:format type="UnderlineFormat">
- <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>
- </vpe:textFormatting>
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="h6" case-sensitive="no">
- <vpe:template children="yes" modify="yes">
- <vpe:copy attrs="id,style,class,align" />
- <vpe:dnd>
- <vpe:drag start-enable="yes" />
- <vpe:drop container="yes" />
- </vpe:dnd>
- <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" addParent="deny" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BoldFormatHandler" />
- <vpe:format type="BoldFormat" setDefault="true">
- <vpe:formatAttribute type="style" />
- </vpe:format>
- <vpe:format type="ItalicFormat" addParent="deny" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.ItalicFormatHandler" />
- <vpe:format type="ItalicFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- <vpe:format type="UnderlineFormat" addParent="deny" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.UnderlineFormatHandler" />
- <vpe:format type="UnderlineFormat">
- <vpe:formatAttribute type="style" />
- </vpe:format>
- </vpe:textFormatting>
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="head" case-sensitive="no">
- <vpe:template children="yes" modify="no">
- <div style="display:none;" />
- <vpe:dnd>
- <vpe:drop container="yes" />
- </vpe:dnd>
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="hr" case-sensitive="no">
- <vpe:template children="no" modify="no">
- <vpe:copy attrs="id,style,class,align,size,width" />
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="html" case-sensitive="no">
- <vpe:template children="yes" modify="yes">
- <div/>
- <vpe:dnd>
- <vpe:drop container="yes" />
- </vpe:dnd>
- <vpe:textFormatting>
- <vpe:format type="BlockFormat" addParent="deny" addChildren="allow"
- handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BlockFormatHandler" />
- <vpe:format type="BoldFormat" addParent="deny" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BoldFormatHandler" />
- <vpe:format type="ItalicFormat" addParent="deny" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.ItalicFormatHandler" />
- <vpe:format type="UnderlineFormat" addParent="deny" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.UnderlineFormatHandler" />
- </vpe:textFormatting>
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="i" case-sensitive="no">
- <vpe:template children="yes" modify="yes">
- <vpe:copy attrs="id,style,class" />
- <vpe:dnd>
- <vpe:drag start-enable="yes" />
- <vpe:drop container="yes" />
- </vpe:dnd>
- <vpe:textFormatting>
- <vpe:format type="BlockFormat" addChildren="allow"
- handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BlockFormatHandler" />
- <vpe:format type="BoldFormat" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BoldFormatHandler" />
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="abbr" case-sensitive="no">
+ <vpe:template children="yes" modify="yes">
+ <vpe:copy attrs="id,style,class,dir" />
+ <vpe:textFormatting>
+ <vpe:format type="BlockFormat" addChildren="deny"
+ handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BlockFormatHandler" />
+ <vpe:format type="BoldFormat" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BoldFormatHandler" />
<vpe:format type="BoldFormat">
<vpe:formatAttribute type="style" />
</vpe:format>
- <vpe:format type="ItalicFormat" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.ItalicFormatHandler" />
+ <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:format type="UnderlineFormat" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.UnderlineFormatHandler" />
- <vpe:format type="UnderlineFormat">
- <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>
- </vpe:textFormatting>
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="iframe" case-sensitive="no">
- <vpe:template children="yes" modify="no">
- <vpe:dnd>
- <vpe:drag start-enable="yes" />
- </vpe:dnd>
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="img" case-sensitive="no">
- <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>
-
- <vpe:tag name="input" case-sensitive="no">
- <vpe:if test="(@type='text')">
- <vpe:template children="no" modify="no">
- <vpe:copy attrs="id,type,style,class,value,size" />
- <!--span class="__input__tag" style="{@style}">
- <nobr><vpe:value expr="{@value}"/></nobr>
- </span-->
- <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:textFormatting use-default-formats="yes">
- </vpe:textFormatting>
- </vpe:template>
- </vpe:if>
- <vpe:if test="@type='password'">
- <vpe:template children="no" modify="no">
- <vpe:copy attrs="id,type,style,class,value,size" />
- <!--span class="__input__tag" style="{@style}">
- <nobr><vpe:value expr="{@value}"/></nobr>
- </span-->
- <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:textFormatting use-default-formats="yes">
- </vpe:textFormatting>
- </vpe:template>
- </vpe:if>
- <vpe:if test="(@type='checkbox')|(@type='radio')">
- <vpe:template children="no" modify="no">
- <vpe:copy attrs="id,style,class,type,checked">
- <!--vpe:attribute name="disabled" value="disabled"/-->
- </vpe:copy>
- <vpe:dnd>
- <vpe:drag start-enable="yes" />
- </vpe:dnd>
- </vpe:template>
- </vpe:if>
- <vpe:if test="(@type='submit')|(@type='button')">
- <vpe:template children="yes" modify="yes">
- <vpe:copy attrs="id,type,value,style,class" />
- <!--span class="__button__tag" style="{@style}">
- <nobr><vpe:value expr="{@value}"/></nobr>
- </span-->
- <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:textFormatting use-default-formats="yes">
- </vpe:textFormatting>
- </vpe:template>
- </vpe:if>
- <vpe:if test="@type='reset'">
- <vpe:if test="@value=''">
- <vpe:template children="yes" modify="yes">
- <vpe:copy attrs="id,type,checked,class,style">
- <vpe:attribute name="value" value="Reset" />
- </vpe:copy>
- <!--span class="__button__tag" style="{@style}">
- <nobr><vpe:value expr="Reset"/></nobr>
- </span-->
- <vpe:dnd>
- <vpe:drag start-enable="yes" />
- </vpe:dnd>
- <vpe:textFormatting use-default-formats="yes">
- </vpe:textFormatting>
- </vpe:template>
- </vpe:if>
- <vpe:if test="not(@value='')">
- <vpe:template children="yes" modify="yes">
- <vpe:copy attrs="id,type,checked,value,class,style" />
- <!--span class="__button__tag" style="{@style}">
- <nobr><vpe:value expr="{@value}"/></nobr>
- </span-->
- <vpe:textFormatting use-default-formats="yes">
- </vpe:textFormatting>
- </vpe:template>
- </vpe:if>
- </vpe:if>
- <vpe:if test="@type='file'">
- <vpe:template children="no" modify="no">
- <input type="file" value="{@value}"
- class="{@styleClass}" style="{@style}" size="{@size}" />
- <vpe:resize>
- <vpe:width width-attr="style.width" />
- <vpe:height height-attr="style.height" />
- </vpe:resize>
- <vpe:dnd>
- <vpe:drag start-enable="yes" />
- <vpe:drop container="no" />
- </vpe:dnd>
- </vpe:template>
- </vpe:if>
- <vpe:if test="@type='hidden'">
- <vpe:template children="no" modify="no" >
- </vpe:template>
- </vpe:if>
- <vpe:if test="@type='image'">
- <vpe:template children="no" modify="no">
- <img src="{@src}" width="20" height="20" />
- </vpe:template>
- </vpe:if>
- <vpe:template children="no" modify="no">
- <vpe:copy attrs="id,type,style,class,value,size" />
- <!--span class="__input__tag" style="{@style}">
- <nobr><vpe:value expr="{@value}"/></nobr>
- </span-->
- <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:textFormatting use-default-formats="yes">
- </vpe:textFormatting>
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="ins" case-sensitive="no">
- <vpe:template children="yes" modify="no">
- <vpe:copy attrs="id,style,class" />
- <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" setDefault="true">
- <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>
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="isindex" case-sensitive="no">
- <vpe:template children="yes" modify="no">
- <vpe:copy attrs="id,style,class,prompt" />
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="kbd" case-sensitive="no">
- <vpe:template children="yes" modify="yes">
- <vpe:copy attrs="id,style,class" />
- <vpe:textFormatting>
- <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">
- <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: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>
- </vpe:textFormatting>
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="label" case-sensitive="no">
- <vpe:template children="yes" modify="yes">
- <vpe:copy attrs="id,style,class,for" />
- <vpe:dnd>
- <vpe:drag start-enable="yes" />
- <vpe:drop container="yes">
- <vpe:container-child tag-name="#text" />
- <vpe:container-child tag-name="a" />
- <vpe:container-child tag-name="abbr" />
- <vpe:container-child tag-name="acronym" />
- <vpe:container-child tag-name="applet" />
- <vpe:container-child tag-name="b" />
- <vpe:container-child tag-name="baseform" />
- <vpe:container-child tag-name="bdo" />
- <vpe:container-child tag-name="bgsound" />
- <vpe:container-child tag-name="big" />
- <vpe:container-child tag-name="blink" />
- <vpe:container-child tag-name="br" />
- <vpe:container-child tag-name="button" />
- <vpe:container-child tag-name="cite" />
- <vpe:container-child tag-name="code" />
- <vpe:container-child tag-name="del" />
- <vpe:container-child tag-name="dfn" />
- <vpe:container-child tag-name="em" />
- <vpe:container-child tag-name="embed" />
- <vpe:container-child tag-name="font" />
- <vpe:container-child tag-name="i" />
- <vpe:container-child tag-name="iframe" />
- <vpe:container-child tag-name="img" />
- <vpe:container-child tag-name="input" />
- <vpe:container-child tag-name="ins" />
- <vpe:container-child tag-name="kbd" />
- <vpe:container-child tag-name="map" />
- <vpe:container-child tag-name="marguee" />
- <vpe:container-child tag-name="nobr" />
- <vpe:container-child tag-name="object" />
- <vpe:container-child tag-name="q" />
- <vpe:container-child tag-name="s" />
- <vpe:container-child tag-name="samp" />
- <vpe:container-child tag-name="script" />
- <vpe:container-child tag-name="select" />
- <vpe:container-child tag-name="small" />
- <vpe:container-child tag-name="span" />
- <vpe:container-child tag-name="strike" />
- <vpe:container-child tag-name="strong" />
- <vpe:container-child tag-name="sub" />
- <vpe:container-child tag-name="sup" />
- <vpe:container-child tag-name="textarea" />
- <vpe:container-child tag-name="tt" />
- <vpe:container-child tag-name="u" />
- <vpe:container-child tag-name="var" />
- <vpe:container-child tag-name="wbr" />
- </vpe:drop>
- </vpe:dnd>
- <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">
- <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>
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="legend" case-sensitive="no">
- <vpe:template children="yes" modify="yes">
- <vpe:copy attrs="id,style,class,align" />
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="li" case-sensitive="no">
- <vpe:template children="yes" modify="yes">
- <vpe:copy attrs="id,style,class,type,value" />
- <vpe:textFormatting>
- <vpe:format type="BlockFormat" addChildren="allow" addParent="deny"
- handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BlockFormatHandler" />
- <vpe:format type="BoldFormat">
- <vpe:formatAttribute type="style" />
- </vpe:format>
- <vpe:format type="UnderlineFormat" addParent="deny" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.UnderlineFormatHandler" />
- <vpe:format type="UnderlineFormat">
- <vpe:formatAttribute type="style" />
- </vpe:format>
- <vpe:format type="ItalicFormat" addParent="deny" addChildren="allow"
- handler="org.jboss.tools.vpe.editor.toolbar.format.handler.ItalicFormatHandler" />
- <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>
- </vpe:textFormatting>
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="link" case-sensitive="no">
- <vpe:template children="no" modify="no">
- <vpe:link rel="{@rel}" href="{href(@href)}" />
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="map" case-sensitive="no">
- <vpe:template children="yes" modify="no">
- <vpe:copy attrs="id,style,class,name" />
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="menu" case-sensitive="no">
- <vpe:template children="yes" modify="no">
- <vpe:copy attrs="id,style,class" />
- <vpe:textFormatting use-default-formats="yes">
- </vpe:textFormatting>
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="meta" case-sensitive="no">
- <vpe:template children="no" modify="no" />
- </vpe:tag>
-
- <vpe:tag name="nobr" case-sensitive="no">
- <vpe:template children="no" modify="no" />
- </vpe:tag>
-
- <vpe:tag name="noframes" case-sensitive="no">
- <vpe:template children="yes" modify="no" />
- </vpe:tag>
-
- <vpe:tag name="noscript" case-sensitive="no">
- <vpe:template children="no" modify="no" />
- </vpe:tag>
-
- <vpe:tag name="object" case-sensitive="no">
- <vpe:template children="no" modify="no" />
- </vpe:tag>
-
- <vpe:tag name="ol" case-sensitive="no">
- <vpe:template children="yes" modify="no">
- <vpe:copy attrs="id,style,class,type,start" />
- <vpe:dnd>
- <vpe:drop container="yes">
- <vpe:container-child tag-name="del" />
- <vpe:container-child tag-name="ins" />
- <vpe:container-child tag-name="li" />
- </vpe:drop>
- </vpe:dnd>
- <vpe:textFormatting use-default-formats="yes">
- </vpe:textFormatting>
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="optgroup" case-sensitive="no">
- <vpe:template children="yes" modify="no">
- <vpe:copy attrs="id,style,class,label" />
- <vpe:dnd>
- <vpe:drop container="yes">
- <vpe:container-child tag-name="del" />
- <vpe:container-child tag-name="ins" />
- <vpe:container-child tag-name="option" />
- </vpe:drop>
- </vpe:dnd>
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="option" case-sensitive="no">
- <vpe:template children="yes" modify="yes">
- <vpe:copy attrs="id,style,class,value,label" />
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="p" case-sensitive="no">
- <vpe:template children="yes" modify="yes">
- <vpe:copy attrs="id,style,class,align" />
- <vpe:dnd>
- <vpe:drag start-enable="yes" />
- <vpe:drop container="yes" />
- </vpe:dnd>
- <vpe:textFormatting use-default-formats="yes">
- <vpe:format type="BlockFormat" addChildren="allow" addParent="deny"
- handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BlockFormatHandler" />
- <!-- vpe:format type="BoldFormat">
- <vpe:formatAttribute type="style" />
- </vpe:format -->
- <vpe:format type="BoldFormat" addParent="deny" addChildren="allow"
- handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BoldFormatHandler" />
- <vpe:format type="UnderlineFormat" addParent="deny" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.UnderlineFormatHandler" />
- <vpe:format type="UnderlineFormat">
- <vpe:formatAttribute type="style" />
- </vpe:format>
- <vpe:format type="ItalicFormat" addParent="deny" addChildren="allow"
- handler="org.jboss.tools.vpe.editor.toolbar.format.handler.ItalicFormatHandler" />
- <vpe:format type="ItalicFormat">
- <vpe:formatAttribute type="style" />
- </vpe:format>
- </vpe:textFormatting>
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="param" case-sensitive="no">
- <vpe:template children="no" modify="no" />
- </vpe:tag>
-
- <vpe:tag name="pre" case-sensitive="no">
- <vpe:template children="yes" modify="yes">
- <vpe:copy attrs="id,style,class,width" />
- <vpe:textFormatting>
- <vpe:format type="BlockFormat" addChildren="deny" addParent = "deny"
- handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BlockFormatHandler" />
- <vpe:format type="BoldFormat">
- <vpe:formatAttribute type="style" />
- </vpe:format>
- <vpe:format type="UnderlineFormat" addParent="deny" addChildren="deny" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.UnderlineFormatHandler" />
- <vpe:format type="UnderlineFormat">
- <vpe:formatAttribute type="style" />
- </vpe:format>
- <vpe:format type="ItalicFormat" addParent="deny" addChildren= "allow"
- handler="org.jboss.tools.vpe.editor.toolbar.format.handler.ItalicFormatHandler" />
- <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>
- </vpe:textFormatting>
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="q" case-sensitive="no">
- <vpe:template children="yes" modify="yes">
- <vpe:copy attrs="id,style,class" />
- <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">
- <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>
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="s" case-sensitive="no">
- <vpe:template children="yes" modify="yes">
- <vpe:copy attrs="id,style,class" />
- <vpe:textFormatting>
- <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">
- <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: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>
- </vpe:textFormatting>
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="samp" case-sensitive="no">
- <vpe:template children="yes" modify="yes">
- <vpe:copy attrs="id,style,class" />
- <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">
- <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>
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="script" case-sensitive="no">
- <vpe:template children="no" modify="no" />
- </vpe:tag>
-
- <vpe:tag name="select" case-sensitive="no">
- <vpe:template children="yes" modify="yes">
- <vpe:copy attrs="id,style,class,size" />
- <vpe:resize>
- <vpe:width width-attr="style.width" />
- <vpe:height height-attr="style.height" />
- </vpe:resize>
- <vpe:dnd>
- <vpe:drag start-enable="yes" />
- <vpe:drop container="yes">
- <vpe:container-child tag-name="del" />
- <vpe:container-child tag-name="ins" />
- <vpe:container-child tag-name="optgroup" />
- <vpe:container-child tag-name="option" />
- </vpe:drop>
- </vpe:dnd>
- <vpe:textFormatting>
- <vpe:format type="BlockFormat" addChildren="deny" 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="deny" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.UnderlineFormatHandler" />
- <vpe:format type="UnderlineFormat">
- <vpe:formatAttribute type="style" />
- </vpe:format>
- <vpe:format type="ItalicFormat" addChildren="deny" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.ItalicFormatHandler" />
- <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>
- </vpe:textFormatting>
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="small" case-sensitive="no">
- <vpe:template children="yes" modify="yes">
- <vpe:copy attrs="id,style,class" />
- <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">
- <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>
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="span" case-sensitive="no">
- <vpe:template children="yes" modify="yes">
- <vpe:copy attrs="id,style,class" />
- <vpe:dnd>
- <vpe:drag start-enable="yes" />
- <vpe:drop container="yes" />
- </vpe:dnd>
- <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">
- <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>
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="strike" case-sensitive="no">
- <vpe:template children="yes" modify="yes">
- <vpe:copy attrs="id,style,class" />
- <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">
- <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>
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="strong" case-sensitive="no">
- <vpe:template children="yes" modify="yes">
- <vpe:copy attrs="id,style,class" />
- <vpe:textFormatting use-default-formats="yes">
- <vpe:format type="BlockFormat" addChildren="deny" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BlockFormatHandler" />
- <vpe:format type="BoldFormat" setDefault="true">
- <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">
- <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>
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="style" case-sensitive="no">
- <vpe:template children="no" modify="no">
- <vpe:style />
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="sub" case-sensitive="no">
- <vpe:template children="yes" modify="yes">
- <vpe:copy attrs="id,style,class" />
- <vpe:textFormatting>
- <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">
- <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: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>
- </vpe:textFormatting>
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="sup" case-sensitive="no">
- <vpe:template children="yes" modify="yes">
- <vpe:copy attrs="id,style,class" />
- <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">
- <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>
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="table" case-sensitive="no">
- <vpe:template children="yes" modify="yes">
- <vpe:copy
- attrs="style,class,width,border,bordercolor,frame,rules,cellspacing,cellpadding,align,bgcolor,background" />
- <vpe:resize>
- <vpe:width width-attr="style.width" />
- <vpe:height height-attr="style.height" />
- </vpe:resize>
- <vpe:dnd>
- <vpe:drag start-enable="yes" />
- <vpe:drop container="yes">
- <vpe:container-child tag-name="caption" />
- <vpe:container-child tag-name="col" />
- <vpe:container-child tag-name="colgroup" />
- <vpe:container-child tag-name="del" />
- <vpe:container-child tag-name="ins" />
- <vpe:container-child tag-name="tbody" />
- <vpe:container-child tag-name="tfoot" />
- <vpe:container-child tag-name="thead" />
- </vpe:drop>
- </vpe:dnd>
- <vpe:textFormatting use-default-formats="yes">
- </vpe:textFormatting>
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="tbody" case-sensitive="no">
- <vpe:template children="yes" modify="yes">
- <vpe:copy attrs="id,style,class,align,char,charoff,valign" />
- <vpe:dnd>
- <vpe:drop container="yes">
- <vpe:container-child tag-name="del" />
- <vpe:container-child tag-name="ins" />
- <vpe:container-child tag-name="tr" />
- </vpe:drop>
- </vpe:dnd>
- <vpe:textFormatting use-default-formats="yes">
- </vpe:textFormatting>
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="td" case-sensitive="no">
- <vpe:if test="attrpresent('background')">
- <vpe:template children="yes" modify="yes">
- <vpe:copy
- attrs="style,class,rowspan,colspan,headers,abbr,scope,axis,align,char,charoff,valign,width,height,bgcolor">
- <vpe:attribute name="background"
- value="{src(@background)}" />
- </vpe:copy>
- <vpe:resize>
- <vpe:width width-attr="width"
- disable-absolute-position="yes" />
- <vpe:height height-attr="style.height"
- tag-xpath="tr" test="{hasinparents('tr')}"
- disable-absolute-position="yes" />
- <vpe:height height-attr="style.height"
- disable-absolute-position="yes" />
- </vpe:resize>
- <vpe:dnd>
- <vpe:drag start-enable="no" />
- <vpe:drop container="yes" />
- </vpe:dnd>
- <vpe:textFormatting>
- <vpe:format type="BlockFormat" addChildren="allow" addParent="deny" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BlockFormatHandler" />
- <vpe:format type="UnderlineFormat" addChildren="allow" addParent="deny" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.UnderlineFormatHandler" />
- <vpe:format type="UnderlineFormat">
- <vpe:formatAttribute type="style" />
- </vpe:format>
- <vpe:format type="BoldFormat">
- <vpe:formatAttribute type="style" />
- </vpe:format>
- <vpe:format type="ItalicFormat" addChildren="allow" addParent="deny" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.ItalicFormatHandler" />
- <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>
- </vpe:textFormatting>
- </vpe:template>
- </vpe:if>
- <vpe:template children="yes" modify="yes">
- <vpe:copy
- attrs="style,class,rowspan,colspan,headers,abbr,scope,axis,align,char,charoff,valign,width,height,bgcolor" />
- <vpe:resize>
- <vpe:width width-attr="width"
- disable-absolute-position="yes" />
- <vpe:height height-attr="style.height" tag-xpath="tr"
- test="{hasinparents('tr')}" disable-absolute-position="yes" />
- <vpe:height height-attr="style.height"
- disable-absolute-position="yes" />
- </vpe:resize>
- <vpe:dnd>
- <vpe:drag start-enable="no" />
- <vpe:drop container="yes" />
- </vpe:dnd>
- <vpe:textFormatting use-default-formats="yes">
- <vpe:format type="BlockFormat" addChildren="allow" addParent="deny" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BlockFormatHandler" />
- <vpe:format type="UnderlineFormat" addChildren="allow" addParent="deny" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.UnderlineFormatHandler" />
- <vpe:format type="UnderlineFormat">
- <vpe:formatAttribute type="style" />
- </vpe:format>
- <vpe:format type="BoldFormat">
- <vpe:formatAttribute type="style" />
- </vpe:format>
- <vpe:format type="ItalicFormat" addChildren="allow" addParent="deny"
- handler="org.jboss.tools.vpe.editor.toolbar.format.handler.ItalicFormatHandler" />
- <vpe:format type="ItalicFormat">
- <vpe:formatAttribute type="style" />
- </vpe:format>
- </vpe:textFormatting>
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="textarea" case-sensitive="no">
- <vpe:template children="yes" modify="no">
- <vpe:copy attrs="id,style,class,rows,cols" />
- <vpe:resize>
- <vpe:width width-attr="style.width" />
- <vpe:height height-attr="style.height" />
- </vpe:resize>
- <vpe:dnd>
- <vpe:drag start-enable="yes" />
- <vpe:drop container="yes">
- <vpe:container-child tag-name="#text" />
- </vpe:drop>
- </vpe:dnd>
- <vpe:textFormatting use-default-formats="yes">
- </vpe:textFormatting>
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="tfoot" case-sensitive="no">
- <vpe:template children="yes" modify="no">
- <vpe:copy attrs="id,style,class,align,char,charoff,valign" />
- <vpe:textFormatting use-default-formats="yes">
- </vpe:textFormatting>
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="th" case-sensitive="no">
- <vpe:template children="yes" modify="yes">
- <vpe:copy
- attrs="style,class,rowspan,colspan,headers,abbr,scope,axis,align,char,charoff,valign,width,height,bgcolor" />
- <vpe:textFormatting>
- <vpe:format type="BlockFormat" addChildren="allow" addParent="deny" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BlockFormatHandler" />
- <vpe:format type="UnderlineFormat" addChildren="allow" addParent="deny" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.UnderlineFormatHandler" />
- <vpe:format type="UnderlineFormat">
- <vpe:formatAttribute type="style" />
- </vpe:format>
- <vpe:format type="BoldFormat" setDefault = "true">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- <vpe:format type="ItalicFormat" addChildren="allow" addParent="deny" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.ItalicFormatHandler" />
- <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>
- </vpe:textFormatting>
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="thead" case-sensitive="no">
- <vpe:template children="yes" modify="no">
- <vpe:copy attrs="id,style,class,align,char,charoff,valign" />
- <vpe:dnd>
- <vpe:drop container="yes">
- <vpe:container-child tag-name="del" />
- <vpe:container-child tag-name="ins" />
- <vpe:container-child tag-name="tr" />
- </vpe:drop>
- </vpe:dnd>
- <vpe:textFormatting use-default-formats="yes">
- </vpe:textFormatting>
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="title" case-sensitive="no">
- <vpe:template children="no" modify="no" />
- </vpe:tag>
-
- <vpe:tag name="tr" case-sensitive="no">
- <vpe:template children="yes" modify="yes">
- <vpe:copy
- attrs="style,class,align,char,charoff,valign,bgcolor" />
- <vpe:resize>
- <vpe:width width-attr="style.width"
- disable-absolute-position="yes" />
- <vpe:height height-attr="style.height"
- disable-absolute-position="yes" />
- </vpe:resize>
- <vpe:dnd>
- <vpe:drop container="yes">
- <vpe:container-child tag-name="del" />
- <vpe:container-child tag-name="ins" />
- <vpe:container-child tag-name="td" />
- <vpe:container-child tag-name="th" />
- </vpe:drop>
- </vpe:dnd>
- <vpe:breaker type="ignore" />
- <vpe:textFormatting use-default-formats="yes">
- </vpe:textFormatting>
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="tt" case-sensitive="no">
- <vpe:template children="yes" modify="yes">
- <vpe:copy attrs="id,style,class" />
- <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="UnderlineFormat" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.UnderlineFormatHandler" />
- <vpe:format type="UnderlineFormat">
- <vpe:formatAttribute type="style" />
- </vpe:format>
- <vpe:format type="BoldFormat">
- <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>
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="u" case-sensitive="no">
- <vpe:template children="yes" modify="yes">
- <vpe:copy attrs="id,style,class" />
- <vpe:textFormatting>
- <vpe:format type="BlockFormat" addChildren="allow"
- handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BlockFormatHandler" />
- <vpe:format type="UnderlineFormat" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.UnderlineFormatHandler" />
- <vpe:format type="UnderlineFormat" setDefault="true">
- <vpe:formatAttribute type="style" />
- </vpe:format>
- <vpe:format type="BoldFormat" addChildren="allow"
- handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BoldFormatHandler" />
+ <vpe:format type="UnderlineFormat" addChildren="allow"
+ handler="org.jboss.tools.vpe.editor.toolbar.format.handler.UnderlineFormatHandler">
+ </vpe:format>
+ <vpe:format type="UnderlineFormat">
+ <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>
+ </vpe:textFormatting>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="acronym" case-sensitive="no">
+ <vpe:template children="yes" modify="yes">
+ <vpe:copy attrs="id,style,class,dir" />
+ <vpe:textFormatting use-default-formats="yes">
+ <vpe:format type="BlockFormat" addChildren="deny"
+ handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BlockFormatHandler" />
+ <vpe:format type="BoldFormat" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BoldFormatHandler" />
+ <vpe:format type="BoldFormat">
+ <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:format type="UnderlineFormat" addChildren="allow"
+ handler="org.jboss.tools.vpe.editor.toolbar.format.handler.UnderlineFormatHandler">
+ </vpe:format>
+ <vpe:format type="UnderlineFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ </vpe:textFormatting>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="address" case-sensitive="no">
+ <vpe:template children="yes" modify="yes">
+ <vpe:copy attrs="id,style,class,dir" />
+ <vpe:textFormatting>
+ <vpe:format type="BlockFormat" addChildren="allow"
+ handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BlockFormatHandler" />
+ <vpe:format type="BoldFormat" addChildren="allow" addParent="deny" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BoldFormatHandler" />
+ <vpe:format type="BoldFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="ItalicFormat" addChildren="allow" addParent="deny" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.ItalicFormatHandler" />
+ <vpe:format type="ItalicFormat" setDefault="true">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="UnderlineFormat" addChildren="allow"
+ addParent="deny" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.UnderlineFormatHandler">
+ </vpe:format>
+ <vpe:format type="UnderlineFormat">
+ <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>
+ </vpe:textFormatting>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="applet" case-sensitive="no">
+ <vpe:template children="no" modify="no">
+ <img src="/applet.gif" />
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="area" case-sensitive="no">
+ <vpe:template children="no" modify="no">
+ <!--vpe:copy attrs="style,class,shape,coords"/-->
+ <vpe:dnd>
+ <vpe:drag start-enable="yes" />
+ </vpe:dnd>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="b" case-sensitive="no">
+ <vpe:template children="yes" modify="yes">
+ <vpe:copy attrs="id,style,class,dir" />
+ <vpe:dnd>
+ <vpe:drag start-enable="yes" />
+ <vpe:drop container="yes">
+ <vpe:container-child tag-name="#text" />
+ </vpe:drop>
+ </vpe:dnd>
+ <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" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BoldFormatHandler" />
+ <vpe:format type="ItalicFormat" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.ItalicFormatHandler" />
+ <vpe:format type="ItalicFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="UnderlineFormat" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.UnderlineFormatHandler" />
+ <vpe:format type="UnderlineFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ </vpe:textFormatting>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="base" case-sensitive="no">
+ <vpe:template children="yes" modify="no"></vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="basefont" case-sensitive="no">
+ <vpe:template children="yes" modify="yes">
+ <vpe:copy attrs="id,size,color,face" />
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="bdo" case-sensitive="no">
+ <vpe:template children="yes" modify="yes">
+ <vpe:copy attrs="id,style,class,dir,lang" />
+ <vpe:textFormatting>
+ <vpe:format type="BlockFormat" addChildren="deny"
+ handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BlockFormatHandler" />
+ <vpe:format type="BoldFormat" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BoldFormatHandler" />
+ <vpe:format type="BoldFormat">
+ <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:format type="UnderlineFormat" addChildren="allow"
+ handler="org.jboss.tools.vpe.editor.toolbar.format.handler.UnderlineFormatHandler">
+ </vpe:format>
+ <vpe:format type="UnderlineFormat">
+ <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>
+ </vpe:textFormatting>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="bgsound" case-sensitive="no">
+ <vpe:template children="no" modify="no">
+ <img src="/bgsound.gif" />
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="big" case-sensitive="no">
+ <vpe:template children="yes" modify="yes">
+ <vpe:copy attrs="id,style,class,dir" />
+ <vpe:textFormatting use-default-formats="yes">
+ <vpe:format type="BlockFormat" addChildren="deny"
+ handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BlockFormatHandler" />
+ <vpe:format type="BoldFormat" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BoldFormatHandler" />
+ <vpe:format type="BoldFormat">
+ <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:format type="UnderlineFormat" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.UnderlineFormatHandler" />
+ <vpe:format type="UnderlineFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ </vpe:textFormatting>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="blockquote" case-sensitive="no">
+ <vpe:template children="yes" modify="yes">
+ <vpe:copy attrs="id,style,class,dir" />
+ <vpe:textFormatting>
+ <vpe:format type="BlockFormat" addParent="deny" addChildren="allow"
+ handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BlockFormatHandler" />
+ <vpe:format type="BoldFormat" addParent="deny" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BoldFormatHandler" />
+ <vpe:format type="BoldFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="ItalicFormat" addParent="deny" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.ItalicFormatHandler" />
+ <vpe:format type="ItalicFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="UnderlineFormat" addChildren="allow" addParent="deny" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.UnderlineFormatHandler" />
+ <vpe:format type="UnderlineFormat">
+ <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>
+ </vpe:textFormatting>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="blink" case-sensitive="no">
+ <vpe:template children="yes" modify="yes">
+ <vpe:copy />
+ <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" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BoldFormatHandler" />
+ <vpe:format type="BoldFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="ItalicFormat" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.ItalicFormatHandler" />
+ <vpe:format type="ItalicFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ </vpe:textFormatting>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="body" case-sensitive="no">
+ <vpe:template children="yes" modify="yes"
+ class="org.jboss.tools.vpe.html.template.HtmlBodyTemplate">
+ <vpe:resize>
+ <vpe:width width-attr="style.width" />
+ <vpe:height height-attr="style.height" />
+ </vpe:resize>
+ <vpe:dnd>
+ <vpe:drag start-enable="yes" />
+ <vpe:drop container="no"></vpe:drop>
+ </vpe:dnd>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="br" case-sensitive="no">
+ <vpe:template children="no" modify="yes">
+ <vpe:copy attrs="id,style,class,clear" />
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="button" case-sensitive="no">
+ <vpe:template children="yes" modify="no">
+ <vpe:copy attrs="id,style,class,value,dir">
+ <!--vpe:attribute name="disabled" value="on"/-->
+ </vpe:copy>
+ <!--span class="__button__tag" style="{@style}">
+ <nobr><vpe:value expr="{@value}"/></nobr>
+ </span-->
+ <vpe:resize>
+ <vpe:width width-attr="style.width" />
+ <vpe:height height-attr="style.height" />
+ </vpe:resize>
+ <vpe:dnd>
+ <vpe:drag start-enable="yes" />
+ <vpe:drop container="yes">
+ <vpe:container-child tag-name="#text" />
+ <vpe:container-child tag-name="abbr" />
+ <vpe:container-child tag-name="acronym" />
+ <vpe:container-child tag-name="address" />
+ <vpe:container-child tag-name="applet" />
+ <vpe:container-child tag-name="b" />
+ <vpe:container-child tag-name="basefont" />
+ <vpe:container-child tag-name="bdo" />
+ <vpe:container-child tag-name="bgsound" />
+ <vpe:container-child tag-name="big" />
+ <vpe:container-child tag-name="blink" />
+ <vpe:container-child tag-name="blockquote" />
+ <vpe:container-child tag-name="br" />
+ <vpe:container-child tag-name="center" />
+ <vpe:container-child tag-name="cite" />
+ <vpe:container-child tag-name="code" />
+ <vpe:container-child tag-name="del" />
+ <vpe:container-child tag-name="dfn" />
+ <vpe:container-child tag-name="dl" />
+ <vpe:container-child tag-name="em" />
+ <vpe:container-child tag-name="embed" />
+ <vpe:container-child tag-name="font" />
+ <vpe:container-child tag-name="h1" />
+ <vpe:container-child tag-name="h2" />
+ <vpe:container-child tag-name="h3" />
+ <vpe:container-child tag-name="h4" />
+ <vpe:container-child tag-name="h5" />
+ <vpe:container-child tag-name="h6" />
+ <vpe:container-child tag-name="hr" />
+ <vpe:container-child tag-name="i" />
+ <vpe:container-child tag-name="img" />
+ <vpe:container-child tag-name="ins" />
+ <vpe:container-child tag-name="kbd" />
+ <vpe:container-child tag-name="map" />
+ <vpe:container-child tag-name="marquee" />
+ <vpe:container-child tag-name="menu" />
+ <vpe:container-child tag-name="nobr" />
+ <vpe:container-child tag-name="noframes" />
+ <vpe:container-child tag-name="noscript" />
+ <vpe:container-child tag-name="object" />
+ <vpe:container-child tag-name="ol" />
+ <vpe:container-child tag-name="p" />
+ <vpe:container-child tag-name="pre" />
+ <vpe:container-child tag-name="q" />
+ <vpe:container-child tag-name="s" />
+ <vpe:container-child tag-name="samp" />
+ <vpe:container-child tag-name="script" />
+ <vpe:container-child tag-name="small" />
+ <vpe:container-child tag-name="span" />
+ <vpe:container-child tag-name="strike" />
+ <vpe:container-child tag-name="strong" />
+ <vpe:container-child tag-name="sub" />
+ <vpe:container-child tag-name="sup" />
+ <vpe:container-child tag-name="table" />
+ <vpe:container-child tag-name="tt" />
+ <vpe:container-child tag-name="u" />
+ <vpe:container-child tag-name="ul" />
+ <vpe:container-child tag-name="var" />
+ <vpe:container-child tag-name="wbr" />
+ </vpe:drop>
+ </vpe:dnd>
+ <vpe:textFormatting >
+ <vpe:format type="BlockFormat" addParent="deny" addChildren="allow"
+ handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BlockFormatHandler" />
+ <vpe:format type="BoldFormat" addParent="deny" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BoldFormatHandler" />
+ <vpe:format type="BoldFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="ItalicFormat" addParent="deny" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.ItalicFormatHandler" />
+ <vpe:format type="ItalicFormat">
+ <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">
+ <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>
+ </vpe:textFormatting>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="caption" case-sensitive="no">
+ <vpe:template children="yes" modify="yes">
+ <vpe:copy attrs="id,style,class,dir" />
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="center" case-sensitive="no">
+ <vpe:template children="yes" modify="yes">
+ <vpe:copy attrs="id,style,class,dir" />
+ <vpe:textFormatting>
+ <vpe:format type="BlockFormat" addParent="deny" addChildren="allow"
+ handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BlockFormatHandler" />
+ <vpe:format type="BoldFormat" addParent="deny" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BoldFormatHandler" />
+ <vpe:format type="BoldFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="ItalicFormat" addParent="deny" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.ItalicFormatHandler" />
+ <vpe:format type="ItalicFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="UnderlineFormat" addParent="deny" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.UnderlineFormatHandler" />
+ <vpe:format type="UnderlineFormat">
+ <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>
+ </vpe:textFormatting>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="cite" case-sensitive="no">
+ <vpe:template children="yes" modify="yes">
+ <vpe:copy attrs="id,style,class,dir" />
+ <vpe:textFormatting use-default-formats="yes">
+ <vpe:format type="BlockFormat" addChildren="deny"
+ handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BlockFormatHandler" />
+ <vpe:format type="BoldFormat" addParent="deny" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BoldFormatHandler" />
+ <vpe:format type="BoldFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="ItalicFormat" addParent="deny" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.ItalicFormatHandler" />
+ <vpe:format type="ItalicFormat" setDefault="true">
+ <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">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ </vpe:textFormatting>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="code" case-sensitive="no">
+ <vpe:template children="yes" modify="yes">
+ <vpe:copy attrs="id,style,class,dir" />
+ <vpe:textFormatting>
+ <vpe:format type="BlockFormat" addChildren="deny"
+ handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BlockFormatHandler" />
+ <vpe:format type="BoldFormat" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BoldFormatHandler" />
+ <vpe:format type="BoldFormat">
+ <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:format type="UnderlineFormat" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.UnderlineFormatHandler" />
+ <vpe:format type="UnderlineFormat">
+ <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>
+ </vpe:textFormatting>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="col" case-sensitive="no">
+ <vpe:template children="no" modify="no">
+ <vpe:copy
+ attrs="id,style,class,span,width,align,char,charoff,valign,dir" />
+ <vpe:dnd>
+ <vpe:drop container="no" />
+ </vpe:dnd>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="colgroup" case-sensitive="no">
+ <vpe:template children="yes" modify="yes">
+ <vpe:copy
+ attrs="id,style,class,span,width,align,char,charoff,valign,dir" />
+ <vpe:dnd>
+ <vpe:drop container="yes">
+ <vpe:container-child tag-name="col" />
+ <vpe:container-child tag-name="del" />
+ <vpe:container-child tag-name="ins" />
+ </vpe:drop>
+ </vpe:dnd>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="dd" case-sensitive="no">
+ <vpe:template children="yes" modify="yes">
+ <vpe:copy attrs="id,style,class,dir" />
+ <vpe:textFormatting use-default-formats="yes">
+ <vpe:format type="BlockFormat" addChildren="allow" addParent="deny"
+ handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BlockFormatHandler" />
+ <vpe:format type="BoldFormat" addParent="deny" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BoldFormatHandler" />
+ <vpe:format type="BoldFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="ItalicFormat" addParent="deny" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.ItalicFormatHandler" />
+ <vpe:format type="ItalicFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="UnderlineFormat" addParent="deny" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.UnderlineFormatHandler" />
+ <vpe:format type="UnderlineFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ </vpe:textFormatting>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="del" case-sensitive="no">
+ <vpe:template children="yes" modify="yes">
+ <vpe:copy attrs="id,style,class,dir" />
+ <vpe:textFormatting>
+ <vpe:format type="BlockFormat" addChildren="allow"
+ handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BlockFormatHandler" />
+ <vpe:format type="BoldFormat" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BoldFormatHandler" />
+ <vpe:format type="BoldFormat">
+ <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:format type="UnderlineFormat" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.UnderlineFormatHandler" />
+ <vpe:format type="UnderlineFormat">
+ <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>
+ </vpe:textFormatting>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="dfn" case-sensitive="no">
+ <vpe:template children="yes" modify="yes">
+ <vpe:copy attrs="id,style,class,dir" />
+ <vpe:textFormatting use-default-formats="yes">
+ <vpe:format type="BlockFormat" addChildren="deny"
+ handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BlockFormatHandler" />
+ <vpe:format type="BoldFormat" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BoldFormatHandler" />
+ <vpe:format type="BoldFormat">
+ <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" setDefault="true">
+ <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">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ </vpe:textFormatting>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="dir" case-sensitive="no">
+ <vpe:template children="yes" modify="no">
+ <vpe:copy attrs="id,style,class,dir" />
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="div" case-sensitive="no">
+ <vpe:template children="yes" modify="yes">
+ <vpe:copy attrs="id,style,class,align,dir" />
+ <vpe:resize>
+ <vpe:width width-attr="style.width" />
+ <vpe:height height-attr="style.height" />
+ </vpe:resize>
+ <vpe:dnd>
+ <vpe:drag start-enable="yes" />
+ <vpe:drop container="yes" />
+ </vpe:dnd>
+ <vpe:textFormatting>
+ <vpe:format type="BlockFormat" addChildren="allow" addParent="deny"
+ handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BlockFormatHandler" />
+ <vpe:format type="BoldFormat" addParent="deny" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BoldFormatHandler" />
+ <vpe:format type="BoldFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="ItalicFormat" addParent="deny" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.ItalicFormatHandler" />
+ <vpe:format type="ItalicFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="UnderlineFormat" addParent="deny" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.UnderlineFormatHandler" />
+ <vpe:format type="UnderlineFormat">
+ <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>
+ </vpe:textFormatting>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="dl" case-sensitive="no">
+ <vpe:template children="yes" modify="no">
+ <vpe:copy attrs="id,style,class,dir" />
+ <vpe:textFormatting use-default-formats="yes">
+ <vpe:format type="BlockFormat" addChildren="deny" addParent="deny"/>
+ <vpe:format type="BoldFormat" addParent="deny" addChildren="deny">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="ItalicFormat" addParent="deny" addChildren="deny">
+ <vpe:formatAttribute type="style"/>
+ </vpe:format>
+ </vpe:textFormatting>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="dt" case-sensitive="no">
+ <vpe:template children="yes" modify="yes">
+ <vpe:copy attrs="id,style,class,dir" />
+ <vpe:textFormatting>
+ <vpe:format type="BlockFormat" addChildren="deny" addParent="deny"/>
+ <vpe:format type="BoldFormat" addParent="deny" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BoldFormatHandler" />
+ <vpe:format type="BoldFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="ItalicFormat" addParent="deny" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.ItalicFormatHandler" />
+ <vpe:format type="ItalicFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="UnderlineFormat" addParent="deny" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.UnderlineFormatHandler" />
+ <vpe:format type="UnderlineFormat">
+ <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>
+ </vpe:textFormatting>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="em" case-sensitive="no">
+ <vpe:template children="yes" modify="yes">
+ <vpe:copy attrs="id,style,class,dir" />
+ <vpe:textFormatting use-default-formats="yes">
+ <vpe:format type="BlockFormat" addChildren="deny"
+ handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BlockFormatHandler" />
+ <vpe:format type="BoldFormat" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BoldFormatHandler" />
+ <vpe:format type="BoldFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="ItalicFormat" addParent="deny" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.ItalicFormatHandler" />
+ <vpe:format type="ItalicFormat" setDefault="true">
+ <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">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ </vpe:textFormatting>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="fieldset" case-sensitive="no">
+ <vpe:template children="yes" modify="no">
+ <vpe:copy attrs="id,style,class,dir" />
+ <vpe:resize>
+ <vpe:width width-attr="style.width" />
+ <vpe:height height-attr="style.height" />
+ </vpe:resize>
+ <vpe:dnd>
+ <vpe:drag start-enable="yes" />
+ <vpe:drop container="yes" />
+ </vpe:dnd>
+ <vpe:textFormatting>
+ <vpe:format type="BlockFormat" addChildren="allow" addParent="deny"
+ handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BlockFormatHandler" />
+ <vpe:format type="BoldFormat" addParent="deny" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BoldFormatHandler" />
+ <vpe:format type="BoldFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="ItalicFormat" addParent="deny" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.ItalicFormatHandler" />
+ <vpe:format type="ItalicFormat">
+ <vpe:formatAttribute type="style"/>
+ </vpe:format>
+ <vpe:format type="UnderlineFormat" addParent="deny" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.UnderlineFormatHandler" />
+ <vpe:format type="UnderlineFormat">
+ <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>
+ </vpe:textFormatting>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="font" case-sensitive="no">
+ <vpe:template children="yes" modify="yes">
+ <vpe:copy attrs="id,style,class,size,color,face,dir" />
+ <vpe:textFormatting use-default-formats="yes">
+ <vpe:format type="BlockFormat" addChildren="deny"
+ handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BlockFormatHandler" />
+ <vpe:format type="BoldFormat" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BoldFormatHandler" />
+ <vpe:format type="BoldFormat">
+ <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:format type="UnderlineFormat" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.UnderlineFormatHandler" />
+ <vpe:format type="UnderlineFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ </vpe:textFormatting>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="form" case-sensitive="no">
+ <vpe:template children="yes" modify="yes">
+ <vpe:copy attrs="id,style,class,align,dir" />
+ <div />
+ <vpe:dnd>
+ <vpe:drag start-enable="yes" />
+ <vpe:drop container="yes" />
+ </vpe:dnd>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="frame" case-sensitive="no">
+ <vpe:template children="yes" modify="no" />
+ </vpe:tag>
+
+ <vpe:tag name="frameset" case-sensitive="no">
+ <vpe:template children="yes" modify="no" />
+ </vpe:tag>
+
+ <vpe:tag name="h1" case-sensitive="no">
+ <vpe:template children="yes" modify="yes">
+ <vpe:copy attrs="id,style,class,align,dir" />
+ <vpe:dnd>
+ <vpe:drag start-enable="yes" />
+ <vpe:drop container="yes" />
+ </vpe:dnd>
+ <vpe:textFormatting>
+ <vpe:format type="BlockFormat" addChildren="allow"
+ handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BlockFormatHandler" />
+ <vpe:format type="BoldFormat" addParent="deny" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BoldFormatHandler" />
+ <vpe:format type="BoldFormat" setDefault="true">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="ItalicFormat" addParent="deny" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.ItalicFormatHandler" />
+ <vpe:format type="ItalicFormat">
+ <vpe:formatAttribute type="style"/>
+ </vpe:format>
+ <vpe:format type="UnderlineFormat" addParent="deny" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.UnderlineFormatHandler" />
+ <vpe:format type="UnderlineFormat">
+ <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>
+ </vpe:textFormatting>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="h2" case-sensitive="no">
+ <vpe:template children="yes" modify="yes">
+ <vpe:copy attrs="id,style,class,align,dir" />
+ <vpe:dnd>
+ <vpe:drag start-enable="yes" />
+ <vpe:drop container="yes" />
+ </vpe:dnd>
+ <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" addParent="deny" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BoldFormatHandler" />
+ <vpe:format type="BoldFormat" setDefault="true">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="ItalicFormat" addParent="deny" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.ItalicFormatHandler" />
+ <vpe:format type="ItalicFormat">
+ <vpe:formatAttribute type="style"/>
+ </vpe:format>
+ <vpe:format type="UnderlineFormat" addParent="deny" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.UnderlineFormatHandler" />
+ <vpe:format type="UnderlineFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ </vpe:textFormatting>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="h3" case-sensitive="no">
+ <vpe:template children="yes" modify="yes">
+ <vpe:copy attrs="id,style,class,align,dir" />
+ <vpe:dnd>
+ <vpe:drag start-enable="yes" />
+ <vpe:drop container="yes" />
+ </vpe:dnd>
+ <vpe:textFormatting>
+ <vpe:format type="BlockFormat" addChildren="allow"
+ handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BlockFormatHandler" />
+ <vpe:format type="BoldFormat" addParent="deny" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BoldFormatHandler" />
+ <vpe:format type="BoldFormat" setDefault="true">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="ItalicFormat" addParent="deny" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.ItalicFormatHandler" />
+ <vpe:format type="ItalicFormat">
+ <vpe:formatAttribute type="style"/>
+ </vpe:format>
+ <vpe:format type="UnderlineFormat" addParent="deny" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.UnderlineFormatHandler" />
+ <vpe:format type="UnderlineFormat">
+ <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>
+ </vpe:textFormatting>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="h4" case-sensitive="no">
+ <vpe:template children="yes" modify="yes">
+ <vpe:copy attrs="id,style,class,align,dir" />
+ <vpe:dnd>
+ <vpe:drag start-enable="yes" />
+ <vpe:drop container="yes" />
+ </vpe:dnd>
+ <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" addParent="deny" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BoldFormatHandler" />
+ <vpe:format type="BoldFormat" setDefault="true">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="ItalicFormat" addParent="deny" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.ItalicFormatHandler" />
+ <vpe:format type="ItalicFormat">
+ <vpe:formatAttribute type="style"/>
+ </vpe:format>
+ <vpe:format type="UnderlineFormat" addParent="deny" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.UnderlineFormatHandler" />
+ <vpe:format type="UnderlineFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ </vpe:textFormatting>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="h5" case-sensitive="no">
+ <vpe:template children="yes" modify="yes">
+ <vpe:copy attrs="id,style,class,align,dir" />
+ <vpe:dnd>
+ <vpe:drag start-enable="yes" />
+ <vpe:drop container="yes" />
+ </vpe:dnd>
+ <vpe:textFormatting>
+ <vpe:format type="BlockFormat" addChildren="allow"
+ handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BlockFormatHandler" />
+ <vpe:format type="BoldFormat" addParent="deny" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BoldFormatHandler" />
+ <vpe:format type="BoldFormat" setDefault="true">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="ItalicFormat" addParent="deny" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.ItalicFormatHandler" />
+ <vpe:format type="ItalicFormat">
+ <vpe:formatAttribute type="style"/>
+ </vpe:format>
+ <vpe:format type="UnderlineFormat" addParent="deny" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.UnderlineFormatHandler" />
+ <vpe:format type="UnderlineFormat">
+ <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>
+ </vpe:textFormatting>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="h6" case-sensitive="no">
+ <vpe:template children="yes" modify="yes">
+ <vpe:copy attrs="id,style,class,align,dir" />
+ <vpe:dnd>
+ <vpe:drag start-enable="yes" />
+ <vpe:drop container="yes" />
+ </vpe:dnd>
+ <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" addParent="deny" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BoldFormatHandler" />
+ <vpe:format type="BoldFormat" setDefault="true">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="ItalicFormat" addParent="deny" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.ItalicFormatHandler" />
+ <vpe:format type="ItalicFormat">
+ <vpe:formatAttribute type="style"/>
+ </vpe:format>
+ <vpe:format type="UnderlineFormat" addParent="deny" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.UnderlineFormatHandler" />
+ <vpe:format type="UnderlineFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ </vpe:textFormatting>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="head" case-sensitive="no">
+ <vpe:template children="yes" modify="no">
+ <div style="display:none;" />
+ <vpe:dnd>
+ <vpe:drop container="yes" />
+ </vpe:dnd>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="hr" case-sensitive="no">
+ <vpe:template children="no" modify="no">
+ <vpe:copy attrs="id,style,class,align,size,width,color,dir" />
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="html" case-sensitive="no">
+ <vpe:template children="yes" modify="yes">
+ <div/>
+ <vpe:dnd>
+ <vpe:drop container="yes" />
+ </vpe:dnd>
+ <vpe:textFormatting>
+ <vpe:format type="BlockFormat" addParent="deny" addChildren="allow"
+ handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BlockFormatHandler" />
+ <vpe:format type="BoldFormat" addParent="deny" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BoldFormatHandler" />
+ <vpe:format type="ItalicFormat" addParent="deny" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.ItalicFormatHandler" />
+ <vpe:format type="UnderlineFormat" addParent="deny" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.UnderlineFormatHandler" />
+ </vpe:textFormatting>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="i" case-sensitive="no">
+ <vpe:template children="yes" modify="yes">
+ <vpe:copy attrs="id,style,class,dir" />
+ <vpe:dnd>
+ <vpe:drag start-enable="yes" />
+ <vpe:drop container="yes" />
+ </vpe:dnd>
+ <vpe:textFormatting>
+ <vpe:format type="BlockFormat" addChildren="allow"
+ handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BlockFormatHandler" />
+ <vpe:format type="BoldFormat" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BoldFormatHandler" />
+ <vpe:format type="BoldFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="ItalicFormat" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.ItalicFormatHandler" />
+ <vpe:format type="ItalicFormat">
+ <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">
+ <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>
+ </vpe:textFormatting>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="iframe" case-sensitive="no">
+ <vpe:template children="yes" modify="no">
+ <vpe:dnd>
+ <vpe:drag start-enable="yes" />
+ </vpe:dnd>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="img" case-sensitive="no">
+ <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>
+
+ <vpe:tag name="input" case-sensitive="no">
+ <vpe:if test="(@type='checkbox')|(@type='radio')">
+ <vpe:template children="no" modify="no">
+ <vpe:copy attrs="id,style,class,type,checked">
+ <!--vpe:attribute name="disabled" value="disabled"/-->
+ </vpe:copy>
+ <vpe:dnd>
+ <vpe:drag start-enable="yes" />
+ </vpe:dnd>
+ </vpe:template>
+ </vpe:if>
+ <vpe:if test="(@type='submit')|(@type='button')">
+ <vpe:template children="yes" modify="yes">
+ <vpe:copy attrs="id,type,value,style,class,dir" />
+ <!--span class="__button__tag" style="{@style}">
+ <nobr><vpe:value expr="{@value}"/></nobr>
+ </span-->
+ <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:textFormatting use-default-formats="yes">
+ </vpe:textFormatting>
+ </vpe:template>
+ </vpe:if>
+ <vpe:if test="@type='reset'">
+ <vpe:if test="@value=''">
+ <vpe:template children="yes" modify="yes">
+ <vpe:copy attrs="id,type,checked,class,style,dir">
+ <vpe:attribute name="value" value="Reset" />
+ </vpe:copy>
+ <!--span class="__button__tag" style="{@style}">
+ <nobr><vpe:value expr="Reset"/></nobr>
+ </span-->
+ <vpe:dnd>
+ <vpe:drag start-enable="yes" />
+ </vpe:dnd>
+ <vpe:textFormatting use-default-formats="yes">
+ </vpe:textFormatting>
+ </vpe:template>
+ </vpe:if>
+ <vpe:if test="not(@value='')">
+ <vpe:template children="yes" modify="yes">
+ <vpe:copy attrs="id,type,checked,value,class,style" />
+ <!--span class="__button__tag" style="{@style}">
+ <nobr><vpe:value expr="{@value}"/></nobr>
+ </span-->
+ <vpe:textFormatting use-default-formats="yes">
+ </vpe:textFormatting>
+ </vpe:template>
+ </vpe:if>
+ </vpe:if>
+ <vpe:if test="@type='file'">
+ <vpe:template children="no" modify="no">
+ <input type="file" value="{@value}"
+ class="{@styleClass}" style="{@style}" size="{@size}" />
+ <vpe:resize>
+ <vpe:width width-attr="style.width" />
+ <vpe:height height-attr="style.height" />
+ </vpe:resize>
+ <vpe:dnd>
+ <vpe:drag start-enable="yes" />
+ <vpe:drop container="no" />
+ </vpe:dnd>
+ </vpe:template>
+ </vpe:if>
+ <vpe:if test="@type='hidden'">
+ <vpe:template children="no" modify="no" >
+ </vpe:template>
+ </vpe:if>
+ <vpe:if test="@type='image'">
+ <vpe:template children="no" modify="no">
+ <img src="{@src}" width="20" height="20" />
+ </vpe:template>
+ </vpe:if>
+ <vpe:template children="no" modify="no">
+ <vpe:copy attrs="id,type,style,class,value,size,dir" />
+ <!--span class="__input__tag" style="{@style}">
+ <nobr><vpe:value expr="{@value}"/></nobr>
+ </span-->
+ <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:textFormatting use-default-formats="yes">
+ </vpe:textFormatting>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="ins" case-sensitive="no">
+ <vpe:template children="yes" modify="no">
+ <vpe:copy attrs="id,style,class,dir" />
+ <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" setDefault="true">
+ <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>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="isindex" case-sensitive="no">
+ <vpe:template children="yes" modify="no">
+ <vpe:copy attrs="id,style,class,prompt,dir" />
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="kbd" case-sensitive="no">
+ <vpe:template children="yes" modify="yes">
+ <vpe:copy attrs="id,style,class,dir" />
+ <vpe:textFormatting>
+ <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">
+ <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: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>
+ </vpe:textFormatting>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="label" case-sensitive="no">
+ <vpe:template children="yes" modify="yes">
+ <vpe:copy attrs="id,style,class,for,dir" />
+ <vpe:dnd>
+ <vpe:drag start-enable="yes" />
+ <vpe:drop container="yes">
+ <vpe:container-child tag-name="#text" />
+ <vpe:container-child tag-name="a" />
+ <vpe:container-child tag-name="abbr" />
+ <vpe:container-child tag-name="acronym" />
+ <vpe:container-child tag-name="applet" />
+ <vpe:container-child tag-name="b" />
+ <vpe:container-child tag-name="baseform" />
+ <vpe:container-child tag-name="bdo" />
+ <vpe:container-child tag-name="bgsound" />
+ <vpe:container-child tag-name="big" />
+ <vpe:container-child tag-name="blink" />
+ <vpe:container-child tag-name="br" />
+ <vpe:container-child tag-name="button" />
+ <vpe:container-child tag-name="cite" />
+ <vpe:container-child tag-name="code" />
+ <vpe:container-child tag-name="del" />
+ <vpe:container-child tag-name="dfn" />
+ <vpe:container-child tag-name="em" />
+ <vpe:container-child tag-name="embed" />
+ <vpe:container-child tag-name="font" />
+ <vpe:container-child tag-name="i" />
+ <vpe:container-child tag-name="iframe" />
+ <vpe:container-child tag-name="img" />
+ <vpe:container-child tag-name="input" />
+ <vpe:container-child tag-name="ins" />
+ <vpe:container-child tag-name="kbd" />
+ <vpe:container-child tag-name="map" />
+ <vpe:container-child tag-name="marguee" />
+ <vpe:container-child tag-name="nobr" />
+ <vpe:container-child tag-name="object" />
+ <vpe:container-child tag-name="q" />
+ <vpe:container-child tag-name="s" />
+ <vpe:container-child tag-name="samp" />
+ <vpe:container-child tag-name="script" />
+ <vpe:container-child tag-name="select" />
+ <vpe:container-child tag-name="small" />
+ <vpe:container-child tag-name="span" />
+ <vpe:container-child tag-name="strike" />
+ <vpe:container-child tag-name="strong" />
+ <vpe:container-child tag-name="sub" />
+ <vpe:container-child tag-name="sup" />
+ <vpe:container-child tag-name="textarea" />
+ <vpe:container-child tag-name="tt" />
+ <vpe:container-child tag-name="u" />
+ <vpe:container-child tag-name="var" />
+ <vpe:container-child tag-name="wbr" />
+ </vpe:drop>
+ </vpe:dnd>
+ <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">
+ <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>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="legend" case-sensitive="no">
+ <vpe:template children="yes" modify="yes">
+ <vpe:copy attrs="id,style,class,align,dir" />
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="li" case-sensitive="no">
+ <vpe:template children="yes" modify="yes">
+ <vpe:copy attrs="id,style,class,type,value,dir" />
+ <vpe:textFormatting>
+ <vpe:format type="BlockFormat" addChildren="allow" addParent="deny"
+ handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BlockFormatHandler" />
+ <vpe:format type="BoldFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="UnderlineFormat" addParent="deny" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.UnderlineFormatHandler" />
+ <vpe:format type="UnderlineFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="ItalicFormat" addParent="deny" addChildren="allow"
+ handler="org.jboss.tools.vpe.editor.toolbar.format.handler.ItalicFormatHandler" />
+ <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>
+ </vpe:textFormatting>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="link" case-sensitive="no">
+ <vpe:template children="no" modify="no">
+ <vpe:link rel="{@rel}" href="{href(@href)}"/>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="map" case-sensitive="no">
+ <vpe:template children="yes" modify="no">
+ <vpe:copy attrs="id,style,class,name,dir" />
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="menu" case-sensitive="no">
+ <vpe:template children="yes" modify="no">
+ <vpe:copy attrs="id,style,class,dir" />
+ <vpe:textFormatting use-default-formats="yes">
+ </vpe:textFormatting>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="meta" case-sensitive="no">
+ <vpe:template children="no" modify="no" />
+ </vpe:tag>
+
+ <vpe:tag name="nobr" case-sensitive="no">
+ <vpe:template children="no" modify="no" />
+ </vpe:tag>
+
+ <vpe:tag name="noframes" case-sensitive="no">
+ <vpe:template children="yes" modify="no" />
+ </vpe:tag>
+
+ <vpe:tag name="noscript" case-sensitive="no">
+ <vpe:template children="no" modify="no" />
+ </vpe:tag>
+
+ <vpe:tag name="object" case-sensitive="no">
+ <vpe:template children="no" modify="no" />
+ </vpe:tag>
+
+ <vpe:tag name="ol" case-sensitive="no">
+ <vpe:template children="yes" modify="no">
+ <vpe:copy attrs="id,style,class,type,start,dir" />
+ <vpe:dnd>
+ <vpe:drop container="yes">
+ <vpe:container-child tag-name="del" />
+ <vpe:container-child tag-name="ins" />
+ <vpe:container-child tag-name="li" />
+ </vpe:drop>
+ </vpe:dnd>
+ <vpe:textFormatting use-default-formats="yes">
+ </vpe:textFormatting>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="optgroup" case-sensitive="no">
+ <vpe:template children="yes" modify="no">
+ <vpe:copy attrs="id,style,class,label,dir"/>
+ <vpe:dnd>
+ <vpe:drop container="yes">
+ <vpe:container-child tag-name="del" />
+ <vpe:container-child tag-name="ins" />
+ <vpe:container-child tag-name="option" />
+ </vpe:drop>
+ </vpe:dnd>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="option" case-sensitive="no">
+ <vpe:template children="yes" modify="yes">
+ <vpe:copy attrs="id,style,class,value,label,dir" />
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="p" case-sensitive="no">
+ <vpe:template children="yes" modify="yes">
+ <vpe:copy attrs="id,style,class,align,dir" />
+ <vpe:dnd>
+ <vpe:drag start-enable="yes" />
+ <vpe:drop container="yes" />
+ </vpe:dnd>
+ <vpe:textFormatting use-default-formats="yes">
+ <vpe:format type="BlockFormat" addChildren="allow" addParent="deny"
+ handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BlockFormatHandler" />
+ <!-- vpe:format type="BoldFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format -->
+ <vpe:format type="BoldFormat" addParent="deny" addChildren="allow"
+ handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BoldFormatHandler" />
+ <vpe:format type="UnderlineFormat" addParent="deny" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.UnderlineFormatHandler" />
+ <vpe:format type="UnderlineFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="ItalicFormat" addParent="deny" addChildren="allow"
+ handler="org.jboss.tools.vpe.editor.toolbar.format.handler.ItalicFormatHandler" />
+ <vpe:format type="ItalicFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ </vpe:textFormatting>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="param" case-sensitive="no">
+ <vpe:template children="no" modify="no" />
+ </vpe:tag>
+
+ <vpe:tag name="pre" case-sensitive="no">
+ <vpe:template children="yes" modify="yes">
+ <vpe:copy attrs="id,style,class,width,dir" />
+ <vpe:textFormatting>
+ <vpe:format type="BlockFormat" addChildren="deny" addParent = "deny"
+ handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BlockFormatHandler" />
+ <vpe:format type="BoldFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="UnderlineFormat" addParent="deny" addChildren="deny" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.UnderlineFormatHandler" />
+ <vpe:format type="UnderlineFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="ItalicFormat" addParent="deny" addChildren= "allow"
+ handler="org.jboss.tools.vpe.editor.toolbar.format.handler.ItalicFormatHandler" />
+ <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>
+ </vpe:textFormatting>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="q" case-sensitive="no">
+ <vpe:template children="yes" modify="yes">
+ <vpe:copy attrs="id,style,class,dir" />
+ <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">
+ <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>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="s" case-sensitive="no">
+ <vpe:template children="yes" modify="yes">
+ <vpe:copy attrs="id,style,class,dir" />
+ <vpe:textFormatting>
+ <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">
+ <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: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>
+ </vpe:textFormatting>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="samp" case-sensitive="no">
+ <vpe:template children="yes" modify="yes">
+ <vpe:copy attrs="id,style,class,dir" />
+ <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">
+ <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>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="script" case-sensitive="no">
+ <vpe:template children="no" modify="no" />
+ </vpe:tag>
+
+ <vpe:tag name="select" case-sensitive="no">
+ <vpe:template children="yes" modify="yes">
+ <vpe:copy attrs="id,style,class,size,dir,disabled" />
+ <vpe:resize>
+ <vpe:width width-attr="style.width" />
+ <vpe:height height-attr="style.height" />
+ </vpe:resize>
+ <vpe:dnd>
+ <vpe:drag start-enable="yes" />
+ <vpe:drop container="yes">
+ <vpe:container-child tag-name="del" />
+ <vpe:container-child tag-name="ins" />
+ <vpe:container-child tag-name="optgroup" />
+ <vpe:container-child tag-name="option" />
+ </vpe:drop>
+ </vpe:dnd>
+ <vpe:textFormatting>
+ <vpe:format type="BlockFormat" addChildren="deny" 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="deny" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.UnderlineFormatHandler" />
+ <vpe:format type="UnderlineFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="ItalicFormat" addChildren="deny" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.ItalicFormatHandler" />
+ <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>
+ </vpe:textFormatting>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="small" case-sensitive="no">
+ <vpe:template children="yes" modify="yes">
+ <vpe:copy attrs="id,style,class,dir" />
+ <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">
+ <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>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="span" case-sensitive="no">
+ <vpe:template children="yes" modify="yes">
+ <vpe:copy attrs="id,style,class,dir" />
+ <vpe:dnd>
+ <vpe:drag start-enable="yes" />
+ <vpe:drop container="yes" />
+ </vpe:dnd>
+ <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">
+ <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>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="strike" case-sensitive="no">
+ <vpe:template children="yes" modify="yes">
+ <vpe:copy attrs="id,style,class,dir" />
+ <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">
+ <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>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="strong" case-sensitive="no">
+ <vpe:template children="yes" modify="yes">
+ <vpe:copy attrs="id,style,class,dir" />
+ <vpe:textFormatting use-default-formats="yes">
+ <vpe:format type="BlockFormat" addChildren="deny" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BlockFormatHandler" />
+ <vpe:format type="BoldFormat" setDefault="true">
+ <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">
+ <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>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="style" case-sensitive="no">
+ <vpe:template children="no" modify="no">
+ <vpe:style />
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="sub" case-sensitive="no">
+ <vpe:template children="yes" modify="yes">
+ <vpe:copy attrs="id,style,class,dir" />
+ <vpe:textFormatting>
+ <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">
+ <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: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>
+ </vpe:textFormatting>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="sup" case-sensitive="no">
+ <vpe:template children="yes" modify="yes">
+ <vpe:copy attrs="id,style,class,dir" />
+ <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">
+ <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>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="table" case-sensitive="no">
+ <vpe:template children="yes" modify="yes">
+ <vpe:copy
+ attrs="id,style,class,width,border,bordercolor,frame,rules,cellspacing,cellpadding,align,bgcolor,background,height,dir" />
+ <vpe:resize>
+ <vpe:width width-attr="style.width" />
+ <vpe:height height-attr="style.height" />
+ </vpe:resize>
+ <vpe:dnd>
+ <vpe:drag start-enable="yes" />
+ <vpe:drop container="yes">
+ <vpe:container-child tag-name="caption" />
+ <vpe:container-child tag-name="col" />
+ <vpe:container-child tag-name="colgroup" />
+ <vpe:container-child tag-name="del" />
+ <vpe:container-child tag-name="ins" />
+ <vpe:container-child tag-name="tbody" />
+ <vpe:container-child tag-name="tfoot" />
+ <vpe:container-child tag-name="thead" />
+ </vpe:drop>
+ </vpe:dnd>
+ <vpe:textFormatting use-default-formats="yes">
+ </vpe:textFormatting>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="tbody" case-sensitive="no">
+ <vpe:template children="yes" modify="yes">
+ <vpe:copy attrs="id,style,class,align,char,charoff,valign,dir,bgcolor" />
+ <vpe:dnd>
+ <vpe:drop container="yes">
+ <vpe:container-child tag-name="del" />
+ <vpe:container-child tag-name="ins" />
+ <vpe:container-child tag-name="tr" />
+ </vpe:drop>
+ </vpe:dnd>
+ <vpe:textFormatting use-default-formats="yes">
+ </vpe:textFormatting>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="td" case-sensitive="no">
+ <vpe:if test="attrpresent('background')">
+ <vpe:template children="yes" modify="yes">
+ <vpe:copy
+ attrs="id,style,class,rowspan,colspan,headers,abbr,scope,axis,align,char,charoff,valign,width,height,bgcolor,dir">
+ <vpe:attribute name="background"
+ value="{src(@background)}" />
+ </vpe:copy>
+ <vpe:resize>
+ <vpe:width width-attr="width"
+ disable-absolute-position="yes" />
+ <vpe:height height-attr="style.height"
+ tag-xpath="tr" test="{hasinparents('tr')}"
+ disable-absolute-position="yes" />
+ <vpe:height height-attr="style.height"
+ disable-absolute-position="yes" />
+ </vpe:resize>
+ <vpe:dnd>
+ <vpe:drag start-enable="no" />
+ <vpe:drop container="yes" />
+ </vpe:dnd>
+ <vpe:textFormatting>
+ <vpe:format type="BlockFormat" addChildren="allow" addParent="deny" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BlockFormatHandler" />
+ <vpe:format type="UnderlineFormat" addChildren="allow" addParent="deny" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.UnderlineFormatHandler" />
+ <vpe:format type="UnderlineFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
<vpe:format type="BoldFormat">
<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: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>
- </vpe:textFormatting>
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="ul" case-sensitive="no">
- <vpe:template children="yes" modify="yes">
- <vpe:copy attrs="id,style,class,type" />
- <vpe:dnd>
- <vpe:drop container="yes">
- <vpe:container-child tag-name="del" />
- <vpe:container-child tag-name="ins" />
- <vpe:container-child tag-name="li" />
- </vpe:drop>
- </vpe:dnd>
- <vpe:textFormatting use-default-formats="yes">
- </vpe:textFormatting>
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="var" case-sensitive="no">
- <vpe:template children="yes" modify="no">
- <vpe:copy attrs="id,style,class" />
- <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="UnderlineFormat" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.UnderlineFormatHandler" />
- <vpe:format type="UnderlineFormat" >
- <vpe:formatAttribute type="style" />
- </vpe:format>
- <vpe:format type="BoldFormat">
- <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" setDefault="true">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- </vpe:textFormatting>
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="#comment" case-sensitive="no">
- <vpe:template children="no" modify="yes"
- class="org.jboss.tools.vpe.html.template.HtmlCommentTemplate">
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="#text" case-sensitive="no">
- <vpe:template children="no" modify="yes"
- class="org.jboss.tools.vpe.html.template.HtmlTextTemplate">
- </vpe:template>
- </vpe:tag>
+ </vpe:format>
+ <vpe:format type="ItalicFormat" addChildren="allow" addParent="deny" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.ItalicFormatHandler" />
+ <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>
+ </vpe:textFormatting>
+ </vpe:template>
+ </vpe:if>
+ <vpe:template children="yes" modify="yes">
+ <vpe:copy
+ attrs="id,style,class,rowspan,colspan,headers,abbr,scope,axis,align,char,charoff,valign,width,height,bgcolor,dir" />
+ <vpe:resize>
+ <vpe:width width-attr="width"
+ disable-absolute-position="yes" />
+ <vpe:height height-attr="style.height" tag-xpath="tr"
+ test="{hasinparents('tr')}" disable-absolute-position="yes" />
+ <vpe:height height-attr="style.height"
+ disable-absolute-position="yes" />
+ </vpe:resize>
+ <vpe:dnd>
+ <vpe:drag start-enable="no" />
+ <vpe:drop container="yes" />
+ </vpe:dnd>
+ <vpe:textFormatting use-default-formats="yes">
+ <vpe:format type="BlockFormat" addChildren="allow" addParent="deny" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BlockFormatHandler" />
+ <vpe:format type="UnderlineFormat" addChildren="allow" addParent="deny" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.UnderlineFormatHandler" />
+ <vpe:format type="UnderlineFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="BoldFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="ItalicFormat" addChildren="allow" addParent="deny"
+ handler="org.jboss.tools.vpe.editor.toolbar.format.handler.ItalicFormatHandler" />
+ <vpe:format type="ItalicFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ </vpe:textFormatting>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="textarea" case-sensitive="no">
+ <vpe:template children="yes" modify="no">
+ <vpe:copy attrs="id,style,class,rows,cols" />
+ <vpe:resize>
+ <vpe:width width-attr="style.width" />
+ <vpe:height height-attr="style.height" />
+ </vpe:resize>
+ <vpe:dnd>
+ <vpe:drag start-enable="yes" />
+ <vpe:drop container="yes">
+ <vpe:container-child tag-name="#text" />
+ </vpe:drop>
+ </vpe:dnd>
+ <vpe:textFormatting use-default-formats="yes">
+ </vpe:textFormatting>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="tfoot" case-sensitive="no">
+ <vpe:template children="yes" modify="no">
+ <vpe:copy attrs="id,style,class,align,char,charoff,valign,dir,bgcolor" />
+ <vpe:textFormatting use-default-formats="yes">
+ </vpe:textFormatting>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="th" case-sensitive="no">
+ <vpe:template children="yes" modify="yes">
+ <vpe:copy
+ attrs="id,style,class,rowspan,colspan,headers,abbr,scope,axis,align,char,charoff,valign,width,height,bgcolor,dir" />
+ <vpe:textFormatting>
+ <vpe:format type="BlockFormat" addChildren="allow" addParent="deny" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BlockFormatHandler" />
+ <vpe:format type="UnderlineFormat" addChildren="allow" addParent="deny" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.UnderlineFormatHandler" />
+ <vpe:format type="UnderlineFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="BoldFormat" setDefault = "true">
+ <vpe:formatAttribute type="style"/>
+ </vpe:format>
+ <vpe:format type="ItalicFormat" addChildren="allow" addParent="deny" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.ItalicFormatHandler" />
+ <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>
+ </vpe:textFormatting>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="thead" case-sensitive="no">
+ <vpe:template children="yes" modify="no">
+ <vpe:copy attrs="id,style,class,align,char,charoff,valign,dir,bgcolor" />
+ <vpe:dnd>
+ <vpe:drop container="yes">
+ <vpe:container-child tag-name="del" />
+ <vpe:container-child tag-name="ins" />
+ <vpe:container-child tag-name="tr" />
+ </vpe:drop>
+ </vpe:dnd>
+ <vpe:textFormatting use-default-formats="yes">
+ </vpe:textFormatting>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="title" case-sensitive="no">
+ <vpe:template children="no" modify="no" />
+ </vpe:tag>
+
+ <vpe:tag name="tr" case-sensitive="no">
+ <vpe:template children="yes" modify="yes">
+ <vpe:copy
+ attrs="id,style,class,align,char,charoff,valign,bgcolor,dir" />
+ <vpe:resize>
+ <vpe:width width-attr="style.width"
+ disable-absolute-position="yes" />
+ <vpe:height height-attr="style.height"
+ disable-absolute-position="yes" />
+ </vpe:resize>
+ <vpe:dnd>
+ <vpe:drop container="yes">
+ <vpe:container-child tag-name="del" />
+ <vpe:container-child tag-name="ins" />
+ <vpe:container-child tag-name="td" />
+ <vpe:container-child tag-name="th" />
+ </vpe:drop>
+ </vpe:dnd>
+ <vpe:breaker type="ignore" />
+ <vpe:textFormatting use-default-formats="yes">
+ </vpe:textFormatting>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="tt" case-sensitive="no">
+ <vpe:template children="yes" modify="yes">
+ <vpe:copy attrs="id,style,class,dir" />
+ <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="UnderlineFormat" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.UnderlineFormatHandler" />
+ <vpe:format type="UnderlineFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="BoldFormat">
+ <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>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="u" case-sensitive="no">
+ <vpe:template children="yes" modify="yes">
+ <vpe:copy attrs="id,style,class,dir" />
+ <vpe:textFormatting>
+ <vpe:format type="BlockFormat" addChildren="allow"
+ handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BlockFormatHandler" />
+ <vpe:format type="UnderlineFormat" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.UnderlineFormatHandler" />
+ <vpe:format type="UnderlineFormat" setDefault="true">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="BoldFormat" addChildren="allow"
+ handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BoldFormatHandler" />
+ <vpe:format type="BoldFormat">
+ <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: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>
+ </vpe:textFormatting>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="ul" case-sensitive="no">
+ <vpe:template children="yes" modify="yes">
+ <vpe:copy attrs="id,style,class,type,dir" />
+ <vpe:dnd>
+ <vpe:drop container="yes">
+ <vpe:container-child tag-name="del" />
+ <vpe:container-child tag-name="ins" />
+ <vpe:container-child tag-name="li" />
+ </vpe:drop>
+ </vpe:dnd>
+ <vpe:textFormatting use-default-formats="yes">
+ </vpe:textFormatting>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="var" case-sensitive="no">
+ <vpe:template children="yes" modify="no">
+ <vpe:copy attrs="id,style,class,dir" />
+ <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="UnderlineFormat" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.UnderlineFormatHandler" />
+ <vpe:format type="UnderlineFormat" >
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="BoldFormat">
+ <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" setDefault="true">
+ <vpe:formatAttribute type="style"/>
+ </vpe:format>
+ </vpe:textFormatting>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="#comment" case-sensitive="no">
+ <vpe:template children="no" modify="yes"
+ class="org.jboss.tools.vpe.html.template.HtmlCommentTemplate">
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="#text" case-sensitive="no">
+ <vpe:template children="no" modify="yes"
+ class="org.jboss.tools.vpe.html.template.HtmlTextTemplate">
+ </vpe:template>
+ </vpe:tag>
</vpe:templates>
\ No newline at end of file
17 years, 4 months
JBoss Tools SVN: r11968 - trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components.
by jbosstools-commits@lists.jboss.org
Author: yradtsevich
Date: 2008-11-24 03:24:20 -0500 (Mon, 24 Nov 2008)
New Revision: 11968
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/extendedDataTable.xhtml.xml
Log:
RESOLVED - issue JBIDE-2915: Bugs with <rich:extendedDataTable>.
https://jira.jboss.org/jira/browse/JBIDE-2915
- The content test fixed
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/extendedDataTable.xhtml.xml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/extendedDataTable.xhtml.xml 2008-11-24 07:49:04 UTC (rev 11967)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/extendedDataTable.xhtml.xml 2008-11-24 08:24:20 UTC (rev 11968)
@@ -4,13 +4,9 @@
BORDER="0" STYLE="table-layout: fixed;">
<COLGROUP>
<COL WIDTH="100" />
-
<COL WIDTH="100" />
-
<COL WIDTH="100" />
-
<COL WIDTH="100" />
-
</COLGROUP>
<THEAD>
<TR CLASS="dr-table-subheader rich-table-subheader">
@@ -119,15 +115,10 @@
<TABLE WIDTH="100%" STYLE="table-layout: fixed;">
<COLGROUP>
<COL WIDTH="100" />
-
<COL WIDTH="100" />
-
<COL WIDTH="100" />
-
<COL WIDTH="100" />
-
<COL />
-
</COLGROUP>
<TBODY>
<TR CLASS="dr-body-table-tr">
@@ -135,12 +126,10 @@
<IMG
SRC="/.*org.jboss.tools.vpe/ve/unresolved_image.gif/"
STYLE="-moz-user-modify: read-write;" />
-
</TD>
<TD WIDTH="170" SORTABLE="true" SORTBY="#{cap.state}"
FILTERBY="#{cap.state}" FILTEREVENT="onkeyup"
- CLASS="dr-table-cell rich-table-cell"
- VPEFLASHERCOLORATTRIBUTE="red">
+ CLASS="dr-table-cell rich-table-cell">
<SPAN>#{cap.state}</SPAN>
</TD>
<TD WIDTH="170" SORTABLE="true" SORTBY="#{cap.name}"
17 years, 4 months
JBoss Tools SVN: r11967 - in trunk: jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template and 2 other directories.
by jbosstools-commits@lists.jboss.org
Author: yradtsevich
Date: 2008-11-24 02:49:04 -0500 (Mon, 24 Nov 2008)
New Revision: 11967
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/resources/extendedDataTable/extendedDataTable.css
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesExtendedDataTableTemplate.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/extendedDataTable.xhtml.xml
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/HTML.java
Log:
RESOLVED - issue JBIDE-2915: Bugs with <rich:extendedDataTable>.
https://jira.jboss.org/jira/browse/JBIDE-2915
- Item #2 has been fixed: "Columns, header and footer must have the same widths"
- Item #3 has been fixed: "Default values of width and height attributes are too large. These values must correspond to containing of cells."
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/resources/extendedDataTable/extendedDataTable.css
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/resources/extendedDataTable/extendedDataTable.css 2008-11-24 07:16:53 UTC (rev 11966)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/resources/extendedDataTable/extendedDataTable.css 2008-11-24 07:49:04 UTC (rev 11967)
@@ -122,4 +122,8 @@
.dr-table-hidden {
overflow: hidden;
border: solid 1px #C4C0C9;
-}
\ No newline at end of file
+}
+
+.dr-body-table-tr td {
+ overflow:hidden;
+}
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesExtendedDataTableTemplate.java
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesExtendedDataTableTemplate.java 2008-11-24 07:16:53 UTC (rev 11966)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesExtendedDataTableTemplate.java 2008-11-24 07:49:04 UTC (rev 11967)
@@ -20,6 +20,7 @@
import org.jboss.tools.vpe.editor.template.VpeChildrenInfo;
import org.jboss.tools.vpe.editor.template.VpeCreationData;
import org.jboss.tools.vpe.editor.util.HTML;
+import org.jboss.tools.vpe.editor.util.VisualDomUtil;
import org.mozilla.interfaces.nsIDOMDocument;
import org.mozilla.interfaces.nsIDOMElement;
import org.w3c.dom.Element;
@@ -34,430 +35,428 @@
*/
public class RichFacesExtendedDataTableTemplate extends VpeAbstractTemplate {
- private static final String PADDING_0PX = "padding: 0px;"; //$NON-NLS-1$
- private static final String RIGHT = "right"; //$NON-NLS-1$
- private static final String TOP = "top"; //$NON-NLS-1$
- private static final String VALUE = "100"; //$NON-NLS-1$
- private static final String _100 = "100%"; //$NON-NLS-1$
- private static final String _17PX = "17px"; //$NON-NLS-1$
- private static final String SCROLL_STYLE = "width: 17px; overflow : scroll; height : 100%;"; //$NON-NLS-1$
- private static final String VERTICAL_ALIGN_MIDDLE = "vertical-align:middle;"; //$NON-NLS-1$
- private static final String DISPLAY_NONE = "display : none"; //$NON-NLS-1$
- private static final String FILTER_BY = "filterBy"; //$NON-NLS-1$
- private static final String DIV_STYLE = "padding : 4px"; //$NON-NLS-1$
- private static final String EXTENDED_TABLE_INPUT = "extendedTable-input"; //$NON-NLS-1$
- private static final String INPUT_TYPE_ATTR = "text"; //$NON-NLS-1$
- private static final String FALSE = "false"; //$NON-NLS-1$
- private static final String SCOP = "scop"; //$NON-NLS-1$
- private static final String COL = "col"; //$NON-NLS-1$
- private static final String DR_TABLE_SUBFOOTERCELL_RICH_TABLE_SUBFOOTERCELL = "dr-table-subfootercell rich-table-subfootercell"; //$NON-NLS-1$
- private static final String DR_TABLE_SUBFOOTER_RICH_TABLE_SUBFOOTER = "dr-table-subfooter rich-table-subfooter"; //$NON-NLS-1$
- private static final String DR_TABLE_SUBHEADERCELL_RICH_TABLE_SUBHEADERCELL = "dr-table-subheadercell rich-table-subheadercell"; //$NON-NLS-1$
- private static final String DR_TABLE_SUBHEADER_RICH_TABLE_SUBHEADER = "dr-table-subheader rich-table-subheader"; //$NON-NLS-1$
- private static final String EMPTY = ""; //$NON-NLS-1$
- private static final String RICH_FACES_DATA_TABLE = "richFacesDataTable"; //$NON-NLS-1$
- private static final String EXTENDED_DATA_TABLE_CSS = "extendedDataTable/extendedDataTable.css"; //$NON-NLS-1$
- private static final String SEMICOLON = ";"; //$NON-NLS-1$
- private static final String COLON = " : "; //$NON-NLS-1$
- private static final String COLUMN = "rich:column"; //$NON-NLS-1$
- final static String DEFAULT_HEIGHT = "500px"; //$NON-NLS-1$
- final static String HEADER = "header"; //$NON-NLS-1$
- final static String HEADER_CLASS = "headerClass"; //$NON-NLS-1$
- final static String FOOTER = "footer"; //$NON-NLS-1$
- final static String FOOTER_CLASS = "footerClass"; //$NON-NLS-1$
- final static String CAPTION_CLASS = "captionClass"; //$NON-NLS-1$
- final static String CAPTION_STYLE = "captionStyle"; //$NON-NLS-1$
- final static String ATTR_SORTABLE = "sortable"; //$NON-NLS-1$
- final static String SPACE = " "; //$NON-NLS-1$
- final static String ZERRO = "0"; //$NON-NLS-1$
- final static String SORTABLE_PATH = "extendedDataTable/sortable.gif"; //$NON-NLS-1$
- final static String SORT_BY_ATTR = "sortBy"; //$NON-NLS-1$
- final static String COMMA = ","; //$NON-NLS-1$
+ private static final String PADDING_0PX = "padding: 0px;"; //$NON-NLS-1$
+ private static final String RIGHT = "right"; //$NON-NLS-1$
+ private static final String TOP = "top"; //$NON-NLS-1$
+ private static final String VALUE = "100"; //$NON-NLS-1$
+ private static final String _100 = "100%"; //$NON-NLS-1$
+ private static final String _17PX = "17px"; //$NON-NLS-1$
+ private static final String SCROLL_STYLE = "width: 17px; overflow : scroll; height : 100%;"; //$NON-NLS-1$
+ private static final String VERTICAL_ALIGN_MIDDLE = "vertical-align:middle;"; //$NON-NLS-1$
+ private static final String DISPLAY_NONE = "display : none"; //$NON-NLS-1$
+ private static final String FILTER_BY = "filterBy"; //$NON-NLS-1$
+ private static final String DIV_STYLE = "padding : 4px"; //$NON-NLS-1$
+ private static final String EXTENDED_TABLE_INPUT = "extendedTable-input"; //$NON-NLS-1$
+ private static final String INPUT_TYPE_ATTR = "text"; //$NON-NLS-1$
+ private static final String FALSE = "false"; //$NON-NLS-1$
+ private static final String SCOP = "scop"; //$NON-NLS-1$
+ private static final String COL = "col"; //$NON-NLS-1$
+ private static final String DR_TABLE_SUBFOOTERCELL_RICH_TABLE_SUBFOOTERCELL = "dr-table-subfootercell rich-table-subfootercell"; //$NON-NLS-1$
+ private static final String DR_TABLE_SUBFOOTER_RICH_TABLE_SUBFOOTER = "dr-table-subfooter rich-table-subfooter"; //$NON-NLS-1$
+ private static final String DR_TABLE_SUBHEADERCELL_RICH_TABLE_SUBHEADERCELL = "dr-table-subheadercell rich-table-subheadercell"; //$NON-NLS-1$
+ private static final String DR_TABLE_SUBHEADER_RICH_TABLE_SUBHEADER = "dr-table-subheader rich-table-subheader"; //$NON-NLS-1$
+ private static final String DR_BODY_TABLE_TR = "dr-body-table-tr"; //$NON-NLS-1$
+ private static final String EMPTY = ""; //$NON-NLS-1$
+ private static final String RICH_FACES_DATA_TABLE = "richFacesDataTable"; //$NON-NLS-1$
+ private static final String EXTENDED_DATA_TABLE_CSS = "extendedDataTable/extendedDataTable.css"; //$NON-NLS-1$
+ private static final String SEMICOLON = ";"; //$NON-NLS-1$
+ private static final String COLON = " : "; //$NON-NLS-1$
+ private static final String COLUMN = "rich:column"; //$NON-NLS-1$
+ final static String DEFAULT_HEIGHT = "500px"; //$NON-NLS-1$
+ final static String HEADER = "header"; //$NON-NLS-1$
+ final static String HEADER_CLASS = "headerClass"; //$NON-NLS-1$
+ final static String FOOTER = "footer"; //$NON-NLS-1$
+ final static String FOOTER_CLASS = "footerClass"; //$NON-NLS-1$
+ final static String CAPTION_CLASS = "captionClass"; //$NON-NLS-1$
+ final static String CAPTION_STYLE = "captionStyle"; //$NON-NLS-1$
+ final static String ATTR_SORTABLE = "sortable"; //$NON-NLS-1$
+ final static String SPACE = " "; //$NON-NLS-1$
+ final static String ZERRO = "0"; //$NON-NLS-1$
+ final static String SORTABLE_PATH = "extendedDataTable/sortable.gif"; //$NON-NLS-1$
+ final static String SORT_BY_ATTR = "sortBy"; //$NON-NLS-1$
+ final static String COMMA = ","; //$NON-NLS-1$
- /**
- * Creates a node of the visual tree on the node of the source tree. This
- * visual node should not have the parent node This visual node can have
- * child nodes.
- *
- * @param pageContext
- * Contains the information on edited page.
- * @param sourceNode
- * The current node of the source tree.
- * @param visualDocument
- * The document of the visual tree.
- * @return The information on the created node of the visual tree.
- */
- public VpeCreationData create(VpePageContext pageContext, Node sourceNode,
- nsIDOMDocument visualDocument) {
+ /**
+ * Creates a node of the visual tree on the node of the source tree. This
+ * visual node should not have the parent node This visual node can have
+ * child nodes.
+ *
+ * @param pageContext
+ * Contains the information on edited page.
+ * @param sourceNode
+ * The current node of the source tree.
+ * @param visualDocument
+ * The document of the visual tree.
+ * @return The information on the created node of the visual tree.
+ */
+ public VpeCreationData create(VpePageContext pageContext, Node sourceNode,
+ nsIDOMDocument visualDocument) {
- Element sourceElement = (Element) sourceNode;
+ Element sourceElement = (Element) sourceNode;
- String width = ComponentUtil.getAttribute(sourceElement,
- HTML.ATTR_WIDTH);
- String height = ComponentUtil.getAttribute(sourceElement,
- HTML.ATTR_HEIGHT);
- String style = ComponentUtil.getAttribute(sourceElement,
- HTML.ATTR_STYLE);
- String styleCommonClass = ComponentUtil.getAttribute(sourceElement, RichFaces.ATTR_STYLE_CLASS);
+ String width = ComponentUtil.getAttribute(sourceElement,
+ HTML.ATTR_WIDTH);
+ String height = ComponentUtil.getAttribute(sourceElement,
+ HTML.ATTR_HEIGHT);
+ String style = ComponentUtil.getAttribute(sourceElement,
+ HTML.ATTR_STYLE);
+ String styleCommonClass = ComponentUtil.getAttribute(sourceElement,
+ RichFaces.ATTR_STYLE_CLASS);
- ComponentUtil.setCSSLink(pageContext, EXTENDED_DATA_TABLE_CSS,
- RICH_FACES_DATA_TABLE);
+ ComponentUtil.setCSSLink(pageContext, EXTENDED_DATA_TABLE_CSS,
+ RICH_FACES_DATA_TABLE);
- nsIDOMElement div = visualDocument.createElement(HTML.TAG_DIV);
- String divStyle = HTML.ATTR_WIDTH + COLON
- + (width.length() > 0 ? width: _100) + SEMICOLON
- + HTML.ATTR_HEIGHT + COLON
- + (height.length() > 0 ? height : DEFAULT_HEIGHT ) + SEMICOLON;
- div.setAttribute(HTML.ATTR_STYLE, divStyle);
-
- VpeCreationData vpeCreationData = new VpeCreationData(div);
+ final String commonTableHeight = height.length() > 0 ? height : DEFAULT_HEIGHT;
+ final String commonTableWidth = (width.length() > 0 ? width : _100);
- // -----------CommonTable
- nsIDOMElement tableCommon = visualDocument
- .createElement(HTML.TAG_TABLE);
- tableCommon.setAttribute(HTML.ATTR_BORDER, ZERRO);
- tableCommon.setAttribute(HTML.ATTR_CELLPADDING, ZERRO);
- tableCommon.setAttribute(HTML.ATTR_CELLSPACING, ZERRO);
- tableCommon.setAttribute(HTML.ATTR_WIDTH, _100);
- tableCommon.setAttribute(HTML.ATTR_HEIGHT, _100);
-
- div.appendChild(tableCommon);
+ // -----------CommonTable
+ nsIDOMElement tableCommon = visualDocument
+ .createElement(HTML.TAG_TABLE);
+ tableCommon.setAttribute(HTML.ATTR_BORDER, ZERRO);
+ tableCommon.setAttribute(HTML.ATTR_CELLPADDING, ZERRO);
+ tableCommon.setAttribute(HTML.ATTR_CELLSPACING, ZERRO);
+ tableCommon.setAttribute(HTML.ATTR_WIDTH, commonTableWidth);
+ tableCommon.setAttribute(HTML.ATTR_HEIGHT, commonTableHeight);
- ArrayList<Element> columns = getColumns(sourceNode);
- int columnsLength = columns.size();
+ VpeCreationData vpeCreationData = new VpeCreationData(tableCommon);
+ ArrayList<Element> columns = getColumns(sourceNode);
+ int columnsLength = columns.size();
- // Add colgroup
- nsIDOMElement colgroup = visualDocument
- .createElement(HTML.TAG_COLGROUP);
- tableCommon.appendChild(colgroup);
+ // Add colgroup
+ nsIDOMElement colgroup = visualDocument
+ .createElement(HTML.TAG_COLGROUP);
+ tableCommon.appendChild(colgroup);
- for (int i = 0; i < columnsLength; i++) {
- nsIDOMElement col = visualDocument.createElement(HTML.TAG_COL);
- col.setAttribute(HTML.ATTR_WIDTH, VALUE);
- colgroup.appendChild(col);
- }
+ for (int i = 0; i < columnsLength; i++) {
+ nsIDOMElement col = visualDocument.createElement(HTML.TAG_COL);
+ col.setAttribute(HTML.ATTR_WIDTH, VALUE);
+ colgroup.appendChild(col);
+ }
- // Add Head
- String headerClass = (String) sourceElement.getAttribute(HEADER_CLASS);
+ // Add Head
+ String headerClass = (String) sourceElement.getAttribute(HEADER_CLASS);
+ nsIDOMElement thead = visualDocument.createElement(HTML.TAG_THEAD);
+ tableCommon.appendChild(thead);
+ nsIDOMElement tr = visualDocument.createElement(HTML.TAG_TR);
+ nsIDOMElement filterTR = visualDocument.createElement(HTML.TAG_TR);
+ thead.appendChild(tr);
+ thead.appendChild(filterTR);
+ String styleClass = RichFacesDataTableTemplate.encodeStyleClass(null,
+ DR_TABLE_SUBHEADER_RICH_TABLE_SUBHEADER, null, headerClass);
+ if (styleClass != null) {
+ tr.setAttribute(HTML.ATTR_CLASS, styleClass);
+ filterTR.setAttribute(HTML.ATTR_CLASS, styleClass);
+ }
+ encodeHeaderFacets(vpeCreationData, tr, filterTR, visualDocument,
+ columns,
+ DR_TABLE_SUBHEADERCELL_RICH_TABLE_SUBHEADERCELL, headerClass);
- nsIDOMElement thead = visualDocument.createElement(HTML.TAG_THEAD);
- ArrayList<Element> columnsHeaders = getColumnsWithFacet(columns, HEADER);
- tableCommon.appendChild(thead);
- nsIDOMElement tr = visualDocument.createElement(HTML.TAG_TR);
- nsIDOMElement filterTR = visualDocument.createElement(HTML.TAG_TR);
- thead.appendChild(tr);
- thead.appendChild(filterTR);
- String styleClass = RichFacesDataTableTemplate.encodeStyleClass(null,
- DR_TABLE_SUBHEADER_RICH_TABLE_SUBHEADER, null, headerClass);
- if (styleClass != null) {
- tr.setAttribute(HTML.ATTR_CLASS, styleClass);
- filterTR.setAttribute(HTML.ATTR_CLASS, styleClass);
- }
- encodeHeaderFacets(vpeCreationData, tr, filterTR, visualDocument,
- columnsHeaders,
- DR_TABLE_SUBHEADERCELL_RICH_TABLE_SUBHEADERCELL, headerClass);
- //
-
- // Add footer
- ArrayList<Element> columnsFooters = getColumnsWithFacet(columns, FOOTER);
- nsIDOMElement tfoot = visualDocument.createElement(HTML.TAG_TFOOT);
- tableCommon.appendChild(tfoot);
- String footerClass = (String) sourceElement.getAttribute(FOOTER_CLASS);
- nsIDOMElement tfootTR = visualDocument.createElement(HTML.TAG_TR);
- tfoot.appendChild(tfootTR);
- String styleFooterClass = RichFacesDataTableTemplate.encodeStyleClass(
- null, DR_TABLE_SUBFOOTER_RICH_TABLE_SUBFOOTER, null,
- footerClass);
- if (styleFooterClass != null) {
- tfootTR.setAttribute(HTML.ATTR_CLASS, styleFooterClass);
- }
- encodeFooterFacets(vpeCreationData, tfootTR, visualDocument,
- columnsFooters,
- DR_TABLE_SUBFOOTERCELL_RICH_TABLE_SUBFOOTERCELL,
- styleFooterClass);
+ // Add footer
+ nsIDOMElement tfoot = visualDocument.createElement(HTML.TAG_TFOOT);
+ tableCommon.appendChild(tfoot);
+ String footerClass = (String) sourceElement.getAttribute(FOOTER_CLASS);
+ nsIDOMElement tfootTR = visualDocument.createElement(HTML.TAG_TR);
+ tfoot.appendChild(tfootTR);
+ String styleFooterClass = RichFacesDataTableTemplate.encodeStyleClass(
+ null, DR_TABLE_SUBFOOTER_RICH_TABLE_SUBFOOTER, null,
+ footerClass);
+ if (styleFooterClass != null) {
+ tfootTR.setAttribute(HTML.ATTR_CLASS, styleFooterClass);
+ }
+ encodeFooterFacets(vpeCreationData, tfootTR, visualDocument,
+ columns,
+ DR_TABLE_SUBFOOTERCELL_RICH_TABLE_SUBFOOTERCELL,
+ styleFooterClass);
- // Add tbody
- nsIDOMElement tbody = visualDocument.createElement(HTML.TAG_TBODY);
- tableCommon.appendChild(tbody);
+ // Add tbody
+ nsIDOMElement tbody = visualDocument.createElement(HTML.TAG_TBODY);
+ tableCommon.appendChild(tbody);
- nsIDOMElement bodyTR = visualDocument.createElement(HTML.TAG_TR);
- tbody.appendChild(bodyTR);
+ nsIDOMElement bodyTR = visualDocument.createElement(HTML.TAG_TR);
+ bodyTR.setAttribute(HTML.ATTR_HEIGHT, _100);
+ tbody.appendChild(bodyTR);
- nsIDOMElement bodyTD = visualDocument.createElement(HTML.TAG_TD);
- bodyTD.setAttribute(HTML.ATTR_COLSPAN, new Integer(columnsLength)
- .toString());
- bodyTD.setAttribute(HTML.ATTR_VALIGN, TOP);
- bodyTD.setAttribute(HTML.ATTR_STYLE, PADDING_0PX);
- bodyTR.appendChild(bodyTD);
+ nsIDOMElement bodyTD = visualDocument.createElement(HTML.TAG_TD);
+ bodyTD.setAttribute(HTML.ATTR_COLSPAN, Integer.toString(columnsLength)
+ .toString());
+ bodyTD.setAttribute(HTML.ATTR_VALIGN, TOP);
+ bodyTD.setAttribute(HTML.ATTR_STYLE, PADDING_0PX);
- // Add body Table
- String border = ComponentUtil.getAttribute(sourceElement, HTML.ATTR_BORDER);
-
- nsIDOMElement bodyTable = visualDocument.createElement(HTML.TAG_TABLE);
- if (border.length() > 0)
- bodyTable.setAttribute(HTML.ATTR_BORDER, border);
- if (style.length() > 0) {
- bodyTable.setAttribute(HTML.ATTR_STYLE, style);
- }
- if (styleCommonClass.length()>0) {
- tableCommon.setAttribute(HTML.ATTR_CLASS, styleCommonClass);
- bodyTable.setAttribute(HTML.ATTR_CLASS, styleCommonClass);
- }
- bodyTable.setAttribute(HTML.ATTR_WIDTH, _100);
- bodyTable.setAttribute(HTML.ATTR_HEIGHT, _100);
- bodyTD.appendChild(bodyTable);
+ bodyTR.appendChild(bodyTD);
- nsIDOMElement bodyColgroup = visualDocument
- .createElement(HTML.TAG_COLGROUP);
- bodyTable.appendChild(bodyColgroup);
+ // Add body Table
+ String border = ComponentUtil.getAttribute(sourceElement,
+ HTML.ATTR_BORDER);
- for (int i = 0; i < columnsLength; i++) {
- nsIDOMElement col = visualDocument.createElement(HTML.TAG_COL);
- col.setAttribute(HTML.ATTR_WIDTH, VALUE);
- bodyColgroup.appendChild(col);
- }
- nsIDOMElement col = visualDocument.createElement(HTML.TAG_COL);
- bodyColgroup.appendChild(col);
+ nsIDOMElement bodyTable = visualDocument.createElement(HTML.TAG_TABLE);
+ if (border.length() > 0)
+ bodyTable.setAttribute(HTML.ATTR_BORDER, border);
+ if (style.length() > 0) {
+ bodyTable.setAttribute(HTML.ATTR_STYLE, style);
+ }
+ if (styleCommonClass.length() > 0) {
+ tableCommon.setAttribute(HTML.ATTR_CLASS, styleCommonClass);
+ bodyTable.setAttribute(HTML.ATTR_CLASS, styleCommonClass);
+ }
+ bodyTable.setAttribute(HTML.ATTR_WIDTH, _100);
+ bodyTD.appendChild(bodyTable);
- nsIDOMElement tableTbody = visualDocument.createElement(HTML.TAG_TBODY);
- bodyTable.appendChild(tableTbody);
+ nsIDOMElement bodyColgroup = visualDocument
+ .createElement(HTML.TAG_COLGROUP);
+ bodyTable.appendChild(bodyColgroup);
- nsIDOMElement tbodyTR = visualDocument.createElement(HTML.TAG_TR);
- // Add rowClasses attr
- String rowClasses = ComponentUtil.getAttribute(sourceElement, RichFaces.ATTR_ROW_CLASSES);
- if (rowClasses.length() > 0) {
- String[] rowsClass = rowClasses.split(COMMA);
- if (rowsClass!=null && rowsClass.length > 0) {
- // Add first rowClass
- tbodyTR.setAttribute(HTML.ATTR_CLASS, rowsClass[0]);
- }
- }
-
- tableTbody.appendChild(tbodyTR);
- List<Node> children = ComponentUtil.getChildren(sourceElement);
- VpeChildrenInfo trInfo = new VpeChildrenInfo(tbodyTR);
- vpeCreationData.addChildrenInfo(trInfo);
+ for (int i = 0; i < columnsLength; i++) {
+ nsIDOMElement col = visualDocument.createElement(HTML.TAG_COL);
+ col.setAttribute(HTML.ATTR_WIDTH, VALUE);
+ bodyColgroup.appendChild(col);
+ }
+ nsIDOMElement col = visualDocument.createElement(HTML.TAG_COL);
+ bodyColgroup.appendChild(col);
- for (Node child : children) {
- if (child.getNodeName().equals(COLUMN)) {
- trInfo.addSourceChild(child);
- }
- }
+ nsIDOMElement tableTbody = visualDocument.createElement(HTML.TAG_TBODY);
+ bodyTable.appendChild(tableTbody);
- // Add scroll
- nsIDOMElement scrollTD = visualDocument.createElement(HTML.TAG_TD);
- scrollTD.setAttribute(HTML.ATTR_ALIGN, RIGHT);
- scrollTD.setAttribute(HTML.ATTR_WIDTH, _17PX);
- bodyTR.appendChild(scrollTD);
+ VisualDomUtil.setSubAttribute(tableCommon, HTML.TAG_STYLE, HTML.STYLE_PARAMETER_TABLE_LAYOUT, HTML.STYLE_VALUE_FIXED);
+ VisualDomUtil.setSubAttribute(bodyTable, HTML.TAG_STYLE, HTML.STYLE_PARAMETER_TABLE_LAYOUT, HTML.STYLE_VALUE_FIXED);
- nsIDOMElement scrollDiv = visualDocument.createElement(HTML.TAG_DIV);
- scrollDiv.setAttribute(HTML.ATTR_STYLE,
- SCROLL_STYLE);
- scrollTD.appendChild(scrollDiv);
+ nsIDOMElement tbodyTR = visualDocument.createElement(HTML.TAG_TR);
+ // Add rowClasses attr
+ String rowClasses = ComponentUtil.getAttribute(sourceElement,
+ RichFaces.ATTR_ROW_CLASSES);
+ String tbodyTRClass = DR_BODY_TABLE_TR;
+ if (rowClasses.length() > 0) {
+ String[] rowsClass = rowClasses.split(COMMA);
+ if (rowsClass != null && rowsClass.length > 0) {
+ // Add first rowClass
+ tbodyTRClass+= rowsClass[0];
+ }
+ }
+
+ tbodyTR.setAttribute(HTML.ATTR_CLASS, tbodyTRClass);
- return vpeCreationData;
- }
+ tableTbody.appendChild(tbodyTR);
+ List<Node> children = ComponentUtil.getChildren(sourceElement);
+ VpeChildrenInfo trInfo = new VpeChildrenInfo(tbodyTR);
+ vpeCreationData.addChildrenInfo(trInfo);
- /**
- *
- * @param sourceNode
- * @return
- */
- public ArrayList<Element> getColumns(Node sourceNode) {
- ArrayList<Element> columns = new ArrayList<Element>();
- NodeList list = sourceNode.getChildNodes();
- for (int i = 0; i < list.getLength(); i++) {
- Node node = list.item(i);
- if (node instanceof Element && node.getNodeName().equals(COLUMN)) {
- columns.add((Element) node);
- }
- }
- return columns;
- }
+ for (Node child : children) {
+ if (child.getNodeName().equals(COLUMN)) {
+ trInfo.addSourceChild(child);
+ }
+ }
- /**
- *
- * @param creationData
- * @param parentTr
- * @param visualDocument
- * @param footers
- * @param skinCellClass
- * @param footerClass
- */
- public static void encodeFooterFacets(VpeCreationData creationData,
- nsIDOMElement parentTr, nsIDOMDocument visualDocument,
- ArrayList<Element> footers, String skinCellClass, String footerClass) {
- String classAttribute = "footerClass"; //$NON-NLS-1$
- String styleClass = EMPTY;
- for (Element column : footers) {
+ // Add scroll
+ nsIDOMElement scrollTD = visualDocument.createElement(HTML.TAG_TD);
+ scrollTD.setAttribute(HTML.ATTR_ALIGN, RIGHT);
+ scrollTD.setAttribute(HTML.ATTR_WIDTH, _17PX);
+ bodyTR.appendChild(scrollTD);
- String columnHeaderClass = column.getAttribute(classAttribute);
- nsIDOMElement td = visualDocument.createElement(HTML.TAG_TD);
- parentTr.appendChild(td);
- styleClass = RichFacesDataTableTemplate.encodeStyleClass(
- null, skinCellClass, footerClass, columnHeaderClass);
- td.setAttribute(HTML.ATTR_CLASS, styleClass);
- td.setAttribute(SCOP, COL);
- String colspan = column.getAttribute(HTML.ATTR_COLSPAN);
- if (colspan != null && colspan.length() > 0) {
- td.setAttribute(HTML.ATTR_COLSPAN, colspan);
- }
- Element facetBody = ComponentUtil.getFacet(column, FOOTER);
+ nsIDOMElement scrollDiv = visualDocument.createElement(HTML.TAG_DIV);
+ scrollDiv.setAttribute(HTML.ATTR_STYLE, SCROLL_STYLE);
+ scrollTD.appendChild(scrollDiv);
- VpeChildrenInfo child = new VpeChildrenInfo(td);
- child.addSourceChild(facetBody);
- creationData.addChildrenInfo(child);
+ return vpeCreationData;
}
-
- nsIDOMElement td = visualDocument.createElement(HTML.TAG_TD);
- td.setAttribute(HTML.ATTR_CLASS, styleClass);
- td.appendChild(visualDocument.createTextNode(SPACE));
- parentTr.appendChild(td);
- }
- /**
- *
- * @param creationData
- * @param parentTr
- * @param filterTR
- * @param visualDocument
- * @param headers
- * @param skinCellClass
- * @param headerClass
- */
- public static void encodeHeaderFacets(VpeCreationData creationData,
- nsIDOMElement parentTr, nsIDOMElement filterTR,
- nsIDOMDocument visualDocument, ArrayList<Element> headers,
- String skinCellClass, String headerClass) {
- String classAttribute = "headerClass"; //$NON-NLS-1$
- String styleClass = EMPTY;
- // Check filter
- boolean existFilters = false;
- for (Element column : headers) {
- if (ComponentUtil.getAttribute(column, FILTER_BY).length() > 0) {
- existFilters = true;
- break;
- }
+ /**
+ *
+ * @param sourceNode
+ * @return
+ */
+ public ArrayList<Element> getColumns(Node sourceNode) {
+ ArrayList<Element> columns = new ArrayList<Element>();
+ NodeList list = sourceNode.getChildNodes();
+ for (int i = 0; i < list.getLength(); i++) {
+ Node node = list.item(i);
+ if (node instanceof Element && node.getNodeName().equals(COLUMN)) {
+ columns.add((Element) node);
+ }
+ }
+ return columns;
}
- // Not filters
- if (!existFilters) {
- filterTR.setAttribute(HTML.ATTR_STYLE, DISPLAY_NONE);
+ /**
+ *
+ * @param creationData
+ * @param parentTr
+ * @param visualDocument
+ * @param footers
+ * @param skinCellClass
+ * @param footerClass
+ */
+ public static void encodeFooterFacets(VpeCreationData creationData,
+ nsIDOMElement parentTr, nsIDOMDocument visualDocument,
+ ArrayList<Element> footers, String skinCellClass, String footerClass) {
+ String classAttribute = "footerClass"; //$NON-NLS-1$
+ String styleClass = EMPTY;
+ for (Element column : footers) {
+
+ String columnHeaderClass = column.getAttribute(classAttribute);
+ nsIDOMElement td = visualDocument.createElement(HTML.TAG_TD);
+ parentTr.appendChild(td);
+ styleClass = RichFacesDataTableTemplate.encodeStyleClass(null,
+ skinCellClass, footerClass, columnHeaderClass);
+ td.setAttribute(HTML.ATTR_CLASS, styleClass);
+ td.setAttribute(SCOP, COL);
+ String colspan = column.getAttribute(HTML.ATTR_COLSPAN);
+ if (colspan != null && colspan.length() > 0) {
+ td.setAttribute(HTML.ATTR_COLSPAN, colspan);
+ }
+ Element facetBody = ComponentUtil.getFacet(column, FOOTER);
+
+ VpeChildrenInfo child = new VpeChildrenInfo(td);
+ child.addSourceChild(facetBody);
+ creationData.addChildrenInfo(child);
+ }
+
+ nsIDOMElement td = visualDocument.createElement(HTML.TAG_TD);
+ td.setAttribute(HTML.ATTR_CLASS, styleClass);
+ td.appendChild(visualDocument.createTextNode(SPACE));
+ parentTr.appendChild(td);
}
- for (Element column : headers) {
- String columnHeaderClass = column.getAttribute(classAttribute);
- nsIDOMElement td = visualDocument.createElement(HTML.TAG_TH);
+ /**
+ *
+ * @param creationData
+ * @param parentTr
+ * @param filterTR
+ * @param visualDocument
+ * @param headers
+ * @param skinCellClass
+ * @param headerClass
+ */
+ public static void encodeHeaderFacets(VpeCreationData creationData,
+ nsIDOMElement parentTr, nsIDOMElement filterTR,
+ nsIDOMDocument visualDocument, ArrayList<Element> headers,
+ String skinCellClass, String headerClass) {
+ String classAttribute = "headerClass"; //$NON-NLS-1$
+ String styleClass = EMPTY;
+ // Check filter
+ boolean existFilters = false;
+ for (Element column : headers) {
+ if (ComponentUtil.getAttribute(column, FILTER_BY).length() > 0) {
+ existFilters = true;
+ break;
+ }
+ }
- nsIDOMElement span = visualDocument.createElement(HTML.TAG_SPAN);
- td.appendChild(span);
+ // Not filters
+ if (!existFilters) {
+ filterTR.setAttribute(HTML.ATTR_STYLE, DISPLAY_NONE);
+ }
- parentTr.appendChild(td);
- styleClass = RichFacesDataTableTemplate.encodeStyleClass(
- null, skinCellClass, headerClass, columnHeaderClass);
- td.setAttribute(HTML.ATTR_CLASS, styleClass);
- td.setAttribute(SCOP, COL);
- String colspan = column.getAttribute(HTML.ATTR_COLSPAN);
- if (colspan != null && colspan.length() > 0) {
- td.setAttribute(HTML.ATTR_COLSPAN, colspan);
- }
- Element facetBody = ComponentUtil.getFacet(column, HEADER);
+ for (Element column : headers) {
+ String columnHeaderClass = column.getAttribute(classAttribute);
+ nsIDOMElement td = visualDocument.createElement(HTML.TAG_TH);
- VpeChildrenInfo child = new VpeChildrenInfo(span);
- child.addSourceChild(facetBody);
- creationData.addChildrenInfo(child);
- // Add filter
- if (existFilters) {
- nsIDOMElement filterTD = visualDocument
- .createElement(HTML.TAG_TD);
+ nsIDOMElement span = visualDocument.createElement(HTML.TAG_SPAN);
+ td.appendChild(span);
- filterTR.appendChild(filterTD);
- filterTD.setAttribute(HTML.ATTR_CLASS, styleClass);
- filterTD.setAttribute(SCOP, COL);
- if (colspan != null && colspan.length() > 0) {
- filterTD.setAttribute(HTML.ATTR_COLSPAN, colspan);
+ parentTr.appendChild(td);
+ styleClass = RichFacesDataTableTemplate.encodeStyleClass(null,
+ skinCellClass, headerClass, columnHeaderClass);
+ td.setAttribute(HTML.ATTR_CLASS, styleClass);
+ td.setAttribute(SCOP, COL);
+ String colspan = column.getAttribute(HTML.ATTR_COLSPAN);
+ if (colspan != null && colspan.length() > 0) {
+ td.setAttribute(HTML.ATTR_COLSPAN, colspan);
+ }
+ Element facetBody = ComponentUtil.getFacet(column, HEADER);
+
+ VpeChildrenInfo child = new VpeChildrenInfo(span);
+ child.addSourceChild(facetBody);
+ creationData.addChildrenInfo(child);
+ // Add filter
+ if (existFilters) {
+ nsIDOMElement filterTD = visualDocument
+ .createElement(HTML.TAG_TD);
+
+ filterTR.appendChild(filterTD);
+ filterTD.setAttribute(HTML.ATTR_CLASS, styleClass);
+ filterTD.setAttribute(SCOP, COL);
+ if (colspan != null && colspan.length() > 0) {
+ filterTD.setAttribute(HTML.ATTR_COLSPAN, colspan);
+ }
+ // Check current filter
+ if (ComponentUtil.getAttribute(column, FILTER_BY).length() > 0) {
+ // Add input
+ nsIDOMElement div = visualDocument
+ .createElement(HTML.TAG_DIV);
+ div.setAttribute(HTML.ATTR_STYLE, DIV_STYLE);
+ filterTD.appendChild(div);
+ nsIDOMElement input = visualDocument
+ .createElement(HTML.TAG_INPUT);
+ div.appendChild(input);
+ input.setAttribute(HTML.ATTR_TYPE, INPUT_TYPE_ATTR);
+ input.setAttribute(HTML.ATTR_CLASS, EXTENDED_TABLE_INPUT);
+ }
+
+ }
+ // Add sortable attribute
+ String sortable = ComponentUtil.getAttribute(column, ATTR_SORTABLE);
+ String sortBy = ComponentUtil.getAttribute(column, SORT_BY_ATTR);
+ if (sortBy.length() != 0 || !sortable.equalsIgnoreCase(FALSE)) {
+ nsIDOMElement img = visualDocument.createElement(HTML.TAG_IMG);
+ img.setAttribute(HTML.ATTR_STYLE, VERTICAL_ALIGN_MIDDLE);
+ ComponentUtil.setImg(img, SORTABLE_PATH);
+ td.appendChild(img);
+ }
}
- // Check current filter
- if (ComponentUtil.getAttribute(column, FILTER_BY).length() > 0) {
- // Add input
- nsIDOMElement div = visualDocument
- .createElement(HTML.TAG_DIV);
- div.setAttribute(HTML.ATTR_STYLE, DIV_STYLE);
- filterTD.appendChild(div);
- nsIDOMElement input = visualDocument
- .createElement(HTML.TAG_INPUT);
- div.appendChild(input);
- input.setAttribute(HTML.ATTR_TYPE, INPUT_TYPE_ATTR);
- input.setAttribute(HTML.ATTR_CLASS, EXTENDED_TABLE_INPUT);
- }
- }
- // Add sortable attribute
- String sortable = ComponentUtil.getAttribute(column, ATTR_SORTABLE);
- String sortBy = ComponentUtil.getAttribute(column, SORT_BY_ATTR);
- if (sortBy.length() == 0 && sortable.equalsIgnoreCase(FALSE)) {
- continue;
- }
- nsIDOMElement img = visualDocument.createElement(HTML.TAG_IMG);
- img.setAttribute(HTML.ATTR_STYLE, VERTICAL_ALIGN_MIDDLE);
- ComponentUtil.setImg(img, SORTABLE_PATH);
- td.appendChild(img);
+ nsIDOMElement th = visualDocument.createElement(HTML.TAG_TH);
+ th.setAttribute(HTML.ATTR_CLASS, styleClass);
+ th.appendChild(visualDocument.createTextNode(SPACE));
+ parentTr.appendChild(th);
+
+ nsIDOMElement td = visualDocument.createElement(HTML.TAG_TD);
+ td.setAttribute(HTML.ATTR_CLASS, styleClass);
+ td.appendChild(visualDocument.createTextNode(SPACE));
+ filterTR.appendChild(td);
}
-
- nsIDOMElement th = visualDocument.createElement(HTML.TAG_TH);
- th.setAttribute(HTML.ATTR_CLASS, styleClass);
- th.appendChild(visualDocument.createTextNode(SPACE));
- parentTr.appendChild(th);
-
- nsIDOMElement td = visualDocument.createElement(HTML.TAG_TD);
- td.setAttribute(HTML.ATTR_CLASS, styleClass);
- td.appendChild(visualDocument.createTextNode(SPACE));
- filterTR.appendChild(td);
- }
- /**
- *
- * @param columns
- * @param facetName
- * @return list of columns with facet
- */
- public static ArrayList<Element> getColumnsWithFacet(
- ArrayList<Element> columns, String facetName) {
- ArrayList<Element> columnsWithFacet = new ArrayList<Element>();
- for (Element column : columns) {
- Element body = ComponentUtil.getFacet(column, facetName);
- if (body != null) {
- columnsWithFacet.add(column);
- }
+ /**
+ *
+ * @param columns
+ * @param facetName
+ * @return list of columns with facet
+ */
+ public static ArrayList<Element> getColumnsWithFacet(
+ ArrayList<Element> columns, String facetName) {
+ ArrayList<Element> columnsWithFacet = new ArrayList<Element>();
+ for (Element column : columns) {
+ Element body = ComponentUtil.getFacet(column, facetName);
+ if (body != null) {
+ columnsWithFacet.add(column);
+ }
+ }
+ return columnsWithFacet;
}
- return columnsWithFacet;
- }
- /**
- * Checks, whether it is necessary to re-create an element at change of
- * attribute
- *
- * @param pageContext
- * Contains the information on edited page.
- * @param sourceElement
- * The current element of the source tree.
- * @param visualDocument
- * The document of the visual tree.
- * @param visualNode
- * The current node of the visual tree.
- * @param data
- * The arbitrary data, built by a method <code>create</code>
- * @param name
- * Attribute name
- * @param value
- * Attribute value
- * @return <code>true</code> if it is required to re-create an element at a
- * modification of attribute, <code>false</code> otherwise.
- */
- @Override
- public boolean isRecreateAtAttrChange(VpePageContext pageContext,
- Element sourceElement, nsIDOMDocument visualDocument,
- nsIDOMElement visualNode, Object data, String name, String value) {
- return true;
- }
+ /**
+ * Checks, whether it is necessary to re-create an element at change of
+ * attribute
+ *
+ * @param pageContext
+ * Contains the information on edited page.
+ * @param sourceElement
+ * The current element of the source tree.
+ * @param visualDocument
+ * The document of the visual tree.
+ * @param visualNode
+ * The current node of the visual tree.
+ * @param data
+ * The arbitrary data, built by a method <code>create</code>
+ * @param name
+ * Attribute name
+ * @param value
+ * Attribute value
+ * @return <code>true</code> if it is required to re-create an element at a
+ * modification of attribute, <code>false</code> otherwise.
+ */
+ @Override
+ public boolean isRecreateAtAttrChange(VpePageContext pageContext,
+ Element sourceElement, nsIDOMDocument visualDocument,
+ nsIDOMElement visualNode, Object data, String name, String value) {
+ return true;
+ }
}
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/extendedDataTable.xhtml.xml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/extendedDataTable.xhtml.xml 2008-11-24 07:16:53 UTC (rev 11966)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/extendedDataTable.xhtml.xml 2008-11-24 07:49:04 UTC (rev 11967)
@@ -1,118 +1,168 @@
<tests>
<test id="extendedDataTable">
- <DIV STYLE="width: 580px; height: 400px;">
- <TABLE WIDTH="100%" HEIGHT="100%" CELLSPACING="0" CELLPADDING="0"
- BORDER="0">
- <COLGROUP>
- <COL WIDTH="100" />
- <COL WIDTH="100" />
- <COL WIDTH="100" />
- <COL WIDTH="100" />
- </COLGROUP>
- <THEAD>
- <TR CLASS="dr-table-subheader rich-table-subheader">
- <TH CLASS="dr-table-subheadercell rich-table-subheadercell"
- SCOP="col">
- <SPAN>
- <SPAN> Flag</SPAN>
- </SPAN>
- </TH>
- <TH CLASS="dr-table-subheadercell rich-table-subheadercell"
- SCOP="col">
- <SPAN>
- <SPAN> State Name</SPAN>
- </SPAN>
- <IMG STYLE="vertical-align: middle;"
- SRC="/.*resources/extendedDataTable/sortable.gif/"/>
- </TH>
- <TH CLASS="dr-table-subheadercell rich-table-subheadercell"
- SCOP="col">
- <SPAN>
- <SPAN> State Capital</SPAN>
- </SPAN>
- <IMG STYLE="vertical-align: middle;"
- SRC="/.*resources/extendedDataTable/sortable.gif/"/>
- </TH>
- <TH CLASS="dr-table-subheadercell rich-table-subheadercell"
- SCOP="col">
- <SPAN>
- <SPAN> Time Zone</SPAN>
- </SPAN>
- </TH>
- <TH CLASS="dr-table-subheadercell rich-table-subheadercell">
- </TH>
- </TR>
- <TR CLASS="dr-table-subheader rich-table-subheader">
- <TD CLASS="dr-table-subheadercell rich-table-subheadercell"
- SCOP="col">
- </TD>
- <TD CLASS="dr-table-subheadercell rich-table-subheadercell"
- SCOP="col">
- <DIV STYLE="padding: 4px;">
- <INPUT TYPE="text" CLASS="extendedTable-input" />
- </DIV>
- </TD>
- <TD CLASS="dr-table-subheadercell rich-table-subheadercell"
- SCOP="col">
- <DIV STYLE="padding: 4px;">
- <INPUT TYPE="text" CLASS="extendedTable-input" />
- </DIV>
- </TD>
- <TD CLASS="dr-table-subheadercell rich-table-subheadercell"
- SCOP="col">
- </TD>
- <TD CLASS="dr-table-subheadercell rich-table-subheadercell">
- </TD>
- </TR>
- </THEAD>
- <TFOOT>
- <TR CLASS="dr-table-subfooter rich-table-subfooter">
- <TD>
- </TD>
- </TR>
- </TFOOT>
- <TBODY>
- <TR>
- <TD VALIGN="top" COLSPAN="4" STYLE="padding: 0px;">
- <TABLE WIDTH="100%" HEIGHT="100%">
- <COLGROUP>
- <COL WIDTH="100" />
- <COL WIDTH="100" />
- <COL WIDTH="100" />
- <COL WIDTH="100" />
- <COL />
- </COLGROUP>
- <TBODY>
- <TR>
- <TD SORTABLE="false" CLASS="dr-table-cell rich-table-cell">
- <IMG
- SRC="/.*org.jboss.tools.vpe/ve/unresolved_image.gif/"
- STYLE="-moz-user-modify: read-write;" />
- </TD>
- <TD WIDTH="170" SORTABLE="true" SORTBY="#{cap.state}"
- FILTERBY="#{cap.state}" FILTEREVENT="onkeyup"
- CLASS="dr-table-cell rich-table-cell">
- <SPAN> #{cap.state}</SPAN>
- </TD>
- <TD WIDTH="170" SORTABLE="true" SORTBY="#{cap.name}"
- FILTERBY="#{cap.state}" FILTEREVENT="onkeyup"
- CLASS="dr-table-cell rich-table-cell">
- <SPAN> #{cap.name}</SPAN>
- </TD>
- <TD SORTABLE="false" CLASS="dr-table-cell rich-table-cell">
- <SPAN> #{cap.timeZone}</SPAN>
- </TD>
- </TR>
- </TBODY>
- </TABLE>
- </TD>
- <TD WIDTH="17" ALIGN="right">
- <DIV STYLE="overflow: scroll; width: 17px; height: 100%;">
- </DIV>
- </TD>
- </TR>
- </TBODY>
- </TABLE>
- </DIV>
+ <TABLE WIDTH="580" HEIGHT="400" CELLSPACING="0" CELLPADDING="0"
+ BORDER="0" STYLE="table-layout: fixed;">
+ <COLGROUP>
+ <COL WIDTH="100" />
+
+ <COL WIDTH="100" />
+
+ <COL WIDTH="100" />
+
+ <COL WIDTH="100" />
+
+ </COLGROUP>
+ <THEAD>
+ <TR CLASS="dr-table-subheader rich-table-subheader">
+ <TH CLASS="dr-table-subheadercell rich-table-subheadercell"
+ SCOP="col">
+ <SPAN>
+ <SPAN>Flag</SPAN>
+ </SPAN>
+ </TH>
+ <TH CLASS="dr-table-subheadercell rich-table-subheadercell"
+ SCOP="col">
+ <SPAN>
+ <SPAN>State Name</SPAN>
+ </SPAN>
+ <IMG STYLE="vertical-align: middle;"
+ SRC="/.*resources/extendedDataTable/sortable.gif/" />
+
+ </TH>
+ <TH CLASS="dr-table-subheadercell rich-table-subheadercell"
+ SCOP="col">
+ <SPAN>
+ <SPAN>State Capital</SPAN>
+ </SPAN>
+ <IMG STYLE="vertical-align: middle;"
+ SRC="/.*resources/extendedDataTable/sortable.gif/" />
+
+ </TH>
+ <TH CLASS="dr-table-subheadercell rich-table-subheadercell"
+ SCOP="col">
+ <SPAN>
+ <SPAN>Time Zone</SPAN>
+ </SPAN>
+ </TH>
+ <TH CLASS="dr-table-subheadercell rich-table-subheadercell">
+ <BR _MOZ_DIRTY="" TYPE="_moz" />
+
+ </TH>
+ </TR>
+ <TR CLASS="dr-table-subheader rich-table-subheader">
+ <TD CLASS="dr-table-subheadercell rich-table-subheadercell"
+ SCOP="col">
+ <BR _MOZ_DIRTY="" TYPE="_moz" />
+
+ </TD>
+ <TD CLASS="dr-table-subheadercell rich-table-subheadercell"
+ SCOP="col">
+ <DIV STYLE="padding: 4px;">
+ <INPUT TYPE="text" CLASS="extendedTable-input" />
+
+ </DIV>
+ </TD>
+ <TD CLASS="dr-table-subheadercell rich-table-subheadercell"
+ SCOP="col">
+ <DIV STYLE="padding: 4px;">
+ <INPUT TYPE="text" CLASS="extendedTable-input" />
+
+ </DIV>
+ </TD>
+ <TD CLASS="dr-table-subheadercell rich-table-subheadercell"
+ SCOP="col">
+ <BR _MOZ_DIRTY="" TYPE="_moz" />
+
+ </TD>
+ <TD CLASS="dr-table-subheadercell rich-table-subheadercell">
+ <BR _MOZ_DIRTY="" TYPE="_moz" />
+
+ </TD>
+ </TR>
+ </THEAD>
+ <TFOOT>
+ <TR CLASS="dr-table-subfooter rich-table-subfooter">
+ <TD
+ CLASS="dr-table-subfootercell rich-table-subfootercell dr-table-subfooter rich-table-subfooter"
+ SCOP="col">
+ <BR _MOZ_DIRTY="" TYPE="_moz" />
+
+ </TD>
+ <TD
+ CLASS="dr-table-subfootercell rich-table-subfootercell dr-table-subfooter rich-table-subfooter"
+ SCOP="col">
+ <BR _MOZ_DIRTY="" TYPE="_moz" />
+
+ </TD>
+ <TD
+ CLASS="dr-table-subfootercell rich-table-subfootercell dr-table-subfooter rich-table-subfooter"
+ SCOP="col">
+ <BR _MOZ_DIRTY="" TYPE="_moz" />
+
+ </TD>
+ <TD
+ CLASS="dr-table-subfootercell rich-table-subfootercell dr-table-subfooter rich-table-subfooter"
+ SCOP="col">
+ <BR _MOZ_DIRTY="" TYPE="_moz" />
+
+ </TD>
+ <TD
+ CLASS="dr-table-subfootercell rich-table-subfootercell dr-table-subfooter rich-table-subfooter">
+ <BR _MOZ_DIRTY="" TYPE="_moz" />
+
+ </TD>
+ </TR>
+ </TFOOT>
+ <TBODY>
+ <TR HEIGHT="100%">
+ <TD VALIGN="top" COLSPAN="4" STYLE="padding: 0px;">
+ <TABLE WIDTH="100%" STYLE="table-layout: fixed;">
+ <COLGROUP>
+ <COL WIDTH="100" />
+
+ <COL WIDTH="100" />
+
+ <COL WIDTH="100" />
+
+ <COL WIDTH="100" />
+
+ <COL />
+
+ </COLGROUP>
+ <TBODY>
+ <TR CLASS="dr-body-table-tr">
+ <TD SORTABLE="false" CLASS="dr-table-cell rich-table-cell">
+ <IMG
+ SRC="/.*org.jboss.tools.vpe/ve/unresolved_image.gif/"
+ STYLE="-moz-user-modify: read-write;" />
+
+ </TD>
+ <TD WIDTH="170" SORTABLE="true" SORTBY="#{cap.state}"
+ FILTERBY="#{cap.state}" FILTEREVENT="onkeyup"
+ CLASS="dr-table-cell rich-table-cell"
+ VPEFLASHERCOLORATTRIBUTE="red">
+ <SPAN>#{cap.state}</SPAN>
+ </TD>
+ <TD WIDTH="170" SORTABLE="true" SORTBY="#{cap.name}"
+ FILTERBY="#{cap.state}" FILTEREVENT="onkeyup"
+ CLASS="dr-table-cell rich-table-cell">
+ <SPAN>#{cap.name}</SPAN>
+ </TD>
+ <TD SORTABLE="false" CLASS="dr-table-cell rich-table-cell">
+ <SPAN>#{cap.timeZone}</SPAN>
+ </TD>
+ </TR>
+ </TBODY>
+ </TABLE>
+ </TD>
+ <TD WIDTH="17" ALIGN="right">
+ <DIV STYLE="overflow: scroll; width: 17px; height: 100%;">
+ </DIV>
+ <BR _MOZ_DIRTY="" TYPE="_moz" />
+
+ </TD>
+ </TR>
+ </TBODY>
+ </TABLE>
</test>
</tests>
\ No newline at end of file
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/HTML.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/HTML.java 2008-11-24 07:16:53 UTC (rev 11966)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/HTML.java 2008-11-24 07:49:04 UTC (rev 11967)
@@ -122,5 +122,7 @@
public static final String STYLE_PARAMETER_BACKGROUND_IMAGE = "background-image"; //$NON-NLS-1$
public static final String STYLE_PARAMETER_MAX_HEIGHT = "max-height"; //$NON-NLS-1$
public static final String STYLE_PARAMETER_ZINDEX = "z-index"; //$NON-NLS-1$
- public static final String STYLE_PARAMETER_CLEAR = "clear"; //$NON-NLS-1$
+ public static final String STYLE_PARAMETER_CLEAR = "clear"; //$NON-NLS-1$
+ public static final String STYLE_PARAMETER_TABLE_LAYOUT = "table-layout"; //$NON-NLS-1$
+ public static final String STYLE_VALUE_FIXED = "fixed"; //$NON-NLS-1$
}
17 years, 4 months
JBoss Tools SVN: r11966 - trunk/esb/docs/esb_ref_guide/en/modules.
by jbosstools-commits@lists.jboss.org
Author: dennyxu
Date: 2008-11-24 02:16:53 -0500 (Mon, 24 Nov 2008)
New Revision: 11966
Modified:
trunk/esb/docs/esb_ref_guide/en/modules/esb_support.xml
Log:
Modified: trunk/esb/docs/esb_ref_guide/en/modules/esb_support.xml
===================================================================
--- trunk/esb/docs/esb_ref_guide/en/modules/esb_support.xml 2008-11-24 06:52:53 UTC (rev 11965)
+++ trunk/esb/docs/esb_ref_guide/en/modules/esb_support.xml 2008-11-24 07:16:53 UTC (rev 11966)
@@ -107,7 +107,95 @@
</section>
+ <section>
+ <title>Creating ESB Project using JBoss Tools Project Examples Wizard</title>
+ <para>JBoss Tools provides a Project Example wizard, it provides a easy way for users to create some kinds of project, so far,
+ you can find some ESB samples and Seam, Portlet samples as well, now let's start to
+ create a ESB project using the Project Examples wizard.</para>
+
+ <para>Before create a ESB project example, you should create JBoss Runtime with the name is <emphasis><property>
+ JBoss 4.2 Runtime</property></emphasis>, it will be used by the ESB examples. </para>
+ <para>Select <emphasis>
+ <property>File >New > Others </property>
+ </emphasis> , in the main menu bar or context menu for selected project and
+ then <emphasis>
+ <property>JBoss Tools > Project Examples</property>
+ </emphasis> in the New dialog:</para>
+
+ <figure>
+ <title>New Dialog</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/esb_project/05_esb_project_example.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para> Clicking <emphasis>
+ <property>Next</property>
+ </emphasis>, it brings us to the wizard page where we can select a ESB project example from the example list.
+ Every ESB example has two projects, one is a ESB project and another is a Java project used to test the ESB project.</para>
+ <figure>
+ <title>JBoss Tools Project Examples</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/esb_project/06_esb_project_example.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>Select <emphasis><property>JBoss ESB HelloWorld Example</property> </emphasis> ESB and Client project, and then click
+ <emphasis><property>Finish</property></emphasis>, then you can get two projects created. </para>
+ <figure>
+ <title>JBoss ESB Project Examples</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/esb_project/07_esb_project_example.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para> Deploying the HelloWorld ESB project and run a test class in the client Java project, see the the test result in Console view.</para>
+ </section>
+
+ <section>
+ <title>Deploying a ESB Project</title>
+ <para>In this chapter we will show you how to deploy a ESB project using WTP deployment framework.</para>
+
+ <para>Before deploy the project, open the JBoss Server View by selecting <emphasis><property>Window > Show View > Other >
+ Server > JBoss Server View</property></emphasis>,
+ and then create a JBoss Server in the server view and start it, and then right click the created JBoss server,
+ select <emphasis><property> </property> Add and Remove Projects</emphasis>,
+ add ESB projects which you want to deploy from left side to right side on the popped up dialog. </para>
+
+ <figure>
+ <title>Add and Remove Projects</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/esb_project/08_esb_project_deploy.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>Clicking <emphasis><property>Finish</property> </emphasis> button, thus, the project is added into the JBoss Server.
+ You also can drag the ESB project from Project View to the JBoss server.</para>
+
+ <figure>
+ <title>Configure new JBoss ESB Runtime</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/esb_project/09_esb_runtime_new.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>So far, we add the ESB project to the JBoss server module list, then we should publish the project the server,
+ right click the JBoss Server and select <emphasis><property>Publish</property></emphasis>,
+ you can check the deploying result in Console view.</para>
+
+ </section>
+
<section>
<title>Creating a ESB File</title>
<para>In this chapter we suggest a step-by-step walk-through of creating your own
@@ -158,5 +246,45 @@
file.</para>
</section>
+
+ <section>
+ <title>Configuring ESB Runtime in Preference</title>
+ <para>In this chapter we will show you how to predefine a JBoss ESB runtime on preference page.</para>
+ <para>You may already know, there are two ways to set JBoss ESB runtime when creating a ESB project,
+ one way is to use the project target JBoss runtime, another way is to select a JBoss ESB runtime which predefined in JBoss Tools preference.
+ Let's configure it.</para>
+
+ <para>Select <emphasis>
+ <property>Window >Preferences > JBoss Tools > JBoss ESB Runtime</property>
+ </emphasis> , it bring us to the JBoss ESB Runtime preference page where you can add, remove and Edit a JBoss ESB runtime.</para>
+
+ <figure>
+ <title>New JBoss ESB Runtime</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/esb_project/10_esb_runtime.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para> Select <emphasis>
+ <property>Add</property>
+ </emphasis>, it pop up a dialog where we can specify the JBoss ESB runtime location, name and version number,
+ you also can customize the libraries of the runtime by checking the <emphasis><property>Customize JBoss ESB Runtime jars</property> </emphasis> checkbox. </para>
+
+ <figure>
+ <title>Configure new JBoss ESB Runtime</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/esb_project/11_esb_runtime_new.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>The new JBoss ESB Runtime will be configured, click <emphasis> <property>OK</property> </emphasis> to finish the dialog and save the preference,
+ then you can use the configuration when creating JBoss ESB project. </para>
+
+ </section>
+
</chapter>
17 years, 4 months
JBoss Tools SVN: r11965 - in trunk/smooks/plugins/org.jboss.tools.smooks.ui: META-INF and 12 other directories.
by jbosstools-commits@lists.jboss.org
Author: DartPeng
Date: 2008-11-24 01:52:53 -0500 (Mon, 24 Nov 2008)
New Revision: 11965
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/META-INF/MANIFEST.MF
trunk/smooks/plugins/org.jboss.tools.smooks.ui/plugin.properties
trunk/smooks/plugins/org.jboss.tools.smooks.ui/plugin.xml
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/analyzer/messages.properties
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/java2xml/analyzer/messages.properties
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/javabean/analyzer/JavaBeanAnalyzer.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/javabean/analyzer/messages.properties
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/javabean/ui/messages.properties
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/messages.properties
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/messages.properties
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/wizards/messages.properties
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/utils/messages.properties
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/xml/messages.properties
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/xml/ui/messages.properties
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/xml2java/analyzer/messages.properties
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/xml2xml/messages.properties
Log:
JBIDE-3044
Modify some text to make it to be correctly English
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/META-INF/MANIFEST.MF
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/META-INF/MANIFEST.MF 2008-11-23 01:43:21 UTC (rev 11964)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/META-INF/MANIFEST.MF 2008-11-24 06:52:53 UTC (rev 11965)
@@ -1,34 +1,27 @@
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
-Bundle-Name: Smooks Tools Plug-in
+Bundle-Name: %pluginName
Bundle-SymbolicName: org.jboss.tools.smooks.ui; singleton:=true
Bundle-Version: 1.0.0
Bundle-Activator: org.jboss.tools.smooks.ui.SmooksUIActivator
-Require-Bundle: org.junit,
- org.eclipse.ui,
- org.eclipse.ui.views.properties.tabbed,
- org.eclipse.ui.editors,
+Require-Bundle: org.eclipse.ui.views.properties.tabbed,
org.eclipse.ui.ide,
- org.eclipse.ui.forms,
org.eclipse.core.runtime,
- org.eclipse.jface.text,
org.eclipse.core.resources,
org.eclipse.gef,
org.eclipse.jdt.core,
org.eclipse.jdt.ui,
- org.eclipse.xsd,
- org.eclipse.emf,
- org.eclipse.emf.edit,
org.eclipse.emf.edit.ui,
org.eclipse.xsd.edit,
- org.jboss.tools.smooks.core,
- org.eclipse.wst.xml.ui,
- org.eclipse.wst.sse.ui;bundle-version="1.1.1"
+ org.eclipse.wst.sse.ui,
+ org.eclipse.jface.text,
+ org.jboss.tools.smooks.core
Bundle-ActivationPolicy: lazy
Bundle-RequiredExecutionEnvironment: J2SE-1.5
Bundle-ClassPath: .,
libs/dom4j-1.6.1.jar
-Bundle-Vendor: JBoss, a division of Red Hat
+Bundle-Vendor: %providerName
+Bundle-Localization: plugin
Export-Package: org.jboss.tools.smooks.analyzer,
org.jboss.tools.smooks.graphical,
org.jboss.tools.smooks.graphical.impl,
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/plugin.properties
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/plugin.properties 2008-11-23 01:43:21 UTC (rev 11964)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/plugin.properties 2008-11-24 06:52:53 UTC (rev 11965)
@@ -1,20 +1,2 @@
-
-# <copyright>
-# </copyright>
-#
-# $Id$
-
-# ====================================================================
-# To code developer:
-# Do NOT change the properties between this line and the
-# "%%% END OF TRANSLATED PROPERTIES %%%" line.
-# Make a new property name, append to the end of the file and change
-# the code to use the new property.
-# ====================================================================
-
-# ====================================================================
-# %%% END OF TRANSLATED PROPERTIES %%%
-# ====================================================================
-
-pluginName = Graphical Model
-providerName = www.example.org
+pluginName = Smooks Tools Plug-in
+providerName = JBoss, a division of Red Hat
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/plugin.xml
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/plugin.xml 2008-11-23 01:43:21 UTC (rev 11964)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/plugin.xml 2008-11-24 06:52:53 UTC (rev 11965)
@@ -72,7 +72,7 @@
<extension
point="org.eclipse.ui.editors">
<editor
- name="Smooks Form Editor"
+ name="Smooks Editor"
extensions="smooks"
icon="icons/smooks-sm.gif"
class="org.jboss.tools.smooks.ui.editors.SmooksFormEditor"
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/analyzer/messages.properties
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/analyzer/messages.properties 2008-11-23 01:43:21 UTC (rev 11964)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/analyzer/messages.properties 2008-11-24 06:52:53 UTC (rev 11965)
@@ -2,6 +2,6 @@
MappingModel.SourceIsNull=Source is NULL
MappingModel.Target=;Target :
MappingModel.TargetIsNull=;Target is NULL
-SmooksFileBuilder.NullAnalyzer1=Can't find the Analyzer for SourceID :
+SmooksFileBuilder.NullAnalyzer1=Can not find the Analyzer for SourceID :
SmooksFileBuilder.NullAnalyzer2=\ and the TargetID :
SmooksFileBuilder.ResourceIsNull=SmooksResource is NULL
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/java2xml/analyzer/messages.properties
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/java2xml/analyzer/messages.properties 2008-11-23 01:43:21 UTC (rev 11964)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/java2xml/analyzer/messages.properties 2008-11-24 06:52:53 UTC (rev 11965)
@@ -1,4 +1,4 @@
-Java2XMLAnalyzer.CantFindRoot=can't find the root element
-Java2XMLAnalyzer.CantGenerateConfig=The java2xml can't be generate to config file currently.
-Java2XMLAnalyzer.DontSupportJ2X=The Smooks editor doesn't support to parse the Java2XML config file currently.
+Java2XMLAnalyzer.CantFindRoot=Can not find the root element
+Java2XMLAnalyzer.CantGenerateConfig=Java2XML is not supported currently.
+Java2XMLAnalyzer.DontSupportJ2X=The Smooks editor currently does not support parsing Java2XML configuration files.
Java2XMLAnalyzer.Warning=Warning
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/javabean/analyzer/JavaBeanAnalyzer.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/javabean/analyzer/JavaBeanAnalyzer.java 2008-11-23 01:43:21 UTC (rev 11964)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/javabean/analyzer/JavaBeanAnalyzer.java 2008-11-24 06:52:53 UTC (rev 11965)
@@ -863,7 +863,7 @@
if (resourceConfig != null) {
rootModel.setBeanClassString(SmooksModelUtils.getParmaText(
SmooksModelUtils.BEAN_CLASS, resourceConfig));
-// setSelectorIsUsed(selector);
+ // setSelectorIsUsed(selector);
buildChildrenOfTargetInputModel(listType, rootModel, false,
rootIsError, resourceConfig, loader);
list.add(rootModel);
@@ -892,9 +892,15 @@
SmooksModelUtils.ATTRIBUTE_SELECTOR);
if (selector != null)
selector = selector.trim();
- if (!isSelectorIsUsed(selector))
+ String tempSelector = selector;
+ if (isReferenceSelector(selector)) {
+ tempSelector = tempSelector.substring(2,
+ selector.length() - 1);
+ }
+ if (!isSelectorIsUsed(tempSelector)) {
processBindingPropertyFromTargetModel(listType, property,
selector, beanModel, classLoader);
+ }
}
}
@@ -988,8 +994,8 @@
ResourceConfigType resourceConfig = null;
for (Iterator iterator = rl.iterator(); iterator.hasNext();) {
ResourceConfigType rct = (ResourceConfigType) iterator.next();
- if (this.isSelectorIsUsed(rct.getSelector()))
- continue;
+// if (this.isSelectorIsUsed(rct.getSelector()))
+// continue;
String beanId = getBeanIDFromParam(rct);
if (selector.equals(beanId)) {
resourceConfig = rct;
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/javabean/analyzer/messages.properties
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/javabean/analyzer/messages.properties 2008-11-23 01:43:21 UTC (rev 11964)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/javabean/analyzer/messages.properties 2008-11-24 06:52:53 UTC (rev 11965)
@@ -1,5 +1,5 @@
-JavaBeanAnalyzer.ClassNotExist=Can't find the class :
-JavaBeanAnalyzer.ConnectionQuestion=Connection Question
-JavaBeanAnalyzer.ConnectRootQuestion=The root models don't be connected , it will make some errors with the generation config file contents.\nDo you wan to connect them?
-JavaBeanAnalyzer.DontExist=don't exist
+JavaBeanAnalyzer.ClassNotExist=Can not find the class :
+JavaBeanAnalyzer.ConnectionQuestion=Root Node Connection
+JavaBeanAnalyzer.ConnectRootQuestion=To ensure a correct mapping, the root nodes should be connected.\nDo you want to connect them now?
+JavaBeanAnalyzer.DontExist=Do not exist
JavaModelConnectionResolveCommand.SmooksContextIsNull=Smooks generated context is NULL
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/javabean/ui/messages.properties
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/javabean/ui/messages.properties 2008-11-23 01:43:21 UTC (rev 11964)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/javabean/ui/messages.properties 2008-11-24 06:52:53 UTC (rev 11965)
@@ -3,7 +3,7 @@
JavaBeanConfigWizardPage.JavaBeanSelectionDialogTitle=JavaBean Class selection page
JavaBeanModelLoadComposite.Browse=Browse...
JavaBeanModelLoadComposite.ClassNameText=JavaBean Model List \:
-JavaBeanModelLoadComposite.InitRunnableContextException=Can't init IRunnableContext
+JavaBeanModelLoadComposite.InitRunnableContextException=Unable to init IRunnableContext
JavaBeanModelLoadComposite.SearchJavaType=Search Java Type
JavaBeanModelLoadComposite.SourceJavaBean=Source Java Bean:
JavaBeanPropertiesSection.Browse=Browse
@@ -15,5 +15,5 @@
JavaBeanPropertiesSection.MappingType=Mapping Type \:
JavaBeanPropertiesSection.SearchJavaType=Search Java Type
JavaBeanPropertiesSection.TargetInstanceClass=Target instance class name \:
-JavaBeanPropertiesSection.TypeDialogErrorMessage=can't open type selection dialog
+JavaBeanPropertiesSection.TypeDialogErrorMessage=Unable to open type selection dialog
JavaBeanPropertiesSection.TypePropertyName=type
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/messages.properties
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/messages.properties 2008-11-23 01:43:21 UTC (rev 11964)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/messages.properties 2008-11-24 06:52:53 UTC (rev 11965)
@@ -1,21 +1,21 @@
-AbstractSmooksModelDetailPage.DetailSectionTitle=Details Information
-DateTypeDetailPage.DateTypeFormatText=Format :
-DateTypeDetailPage.DateTypeLocaleContryText=Locale-Contry :
-DateTypeDetailPage.DateTypeLocaleLanguageText=Locale-Language :
+AbstractSmooksModelDetailPage.DetailSectionTitle=Detail Information
+DateTypeDetailPage.DateTypeFormatText=Format:
+DateTypeDetailPage.DateTypeLocaleContryText=Locale-Contry:
+DateTypeDetailPage.DateTypeLocaleLanguageText=Locale-Language:
DocumentResourceTypeDetailPage.BrowseFile=Browse...
DocumentResourceTypeDetailPage.DocPath=Document Path:
-DocumentResourceTypeDetailPage.Selector=Selector :
-SmooksGraphicalFormPage.CleanErrorsDialogContents1=There occurs some errors on the graphical design , please clean all errors .\n
-SmooksGraphicalFormPage.CleanErrorsDialogContents2=Click "Yes" to return . If you don't care that , click "No" to save file.
-SmooksGraphicalFormPage.CleanErrorsDialogTitle=Clean all the errors please
-SmooksGraphicalFormPage.FillViewerErrorContent=a error occurs during filling Data into the viewer\:\n
+DocumentResourceTypeDetailPage.Selector=Selector:
+SmooksGraphicalFormPage.CleanErrorsDialogContents1=There are errors in the graphical representation. Correct these before saving?\n
+SmooksGraphicalFormPage.CleanErrorsDialogContents2=Click "Yes" to return to the editor, or "No" to save file with errors.
+SmooksGraphicalFormPage.CleanErrorsDialogTitle=Please correct the errors
+SmooksGraphicalFormPage.FillViewerErrorContent=An error occurred during loading data into the viewer\:\n
SmooksGraphicalFormPage.FillViewerErrorTitle=Error
SmooksGraphicalFormPage.MappingPageFormTitle=Data Mapping Page
-SmooksGraphicalFormPage.MappingSectionDescription=Edit the source and target assosiation
-SmooksGraphicalFormPage.MappingSectionTitle=Mapping Graph Edit Panel
-SmooksGraphicalFormPage.ReselectViewerContentDlgContent=Do you want to change the data ? If you do so , all connections will be losted
-SmooksGraphicalFormPage.ReselectViewerContentDlgTitle=Changed Data ?
-SmooksGraphicalFormPage.SaveErrorDlgContent=Some errors occurs during saving the file.
+SmooksGraphicalFormPage.MappingSectionDescription=Edit source to target links
+SmooksGraphicalFormPage.MappingSectionTitle=Graphical Mapping Panel
+SmooksGraphicalFormPage.ReselectViewerContentDlgContent=Do you want to change the data type? If you do so , all current links will be cleared
+SmooksGraphicalFormPage.ReselectViewerContentDlgTitle=Change data type?
+SmooksGraphicalFormPage.SaveErrorDlgContent=Errors during file save.
SmooksGraphicalFormPage.SaveErrorDlgTitle=Save Error
SmooksGraphicalFormPage.SourceSelectLinkText=Source Select
SmooksGraphicalFormPage.TargetSelectLinkText=Target Select
@@ -27,7 +27,7 @@
SmooksResourceConfigFormBlock.DownButton=Down
SmooksResourceConfigFormBlock.NewButton=New
SmooksResourceConfigFormBlock.NULLString=<NULL>
-SmooksResourceConfigFormBlock.TemplateFile=Template File :
+SmooksResourceConfigFormBlock.TemplateFile=Template File:
SmooksResourceConfigFormBlock.UnknownResourceConfig=UnKnown ResourceConfig -
SmooksResourceConfigFormBlock.UpButton=Up
TypeIDSelectionWizard.TypeIDSelection=TypeID Selection
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/messages.properties
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/messages.properties 2008-11-23 01:43:21 UTC (rev 11964)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/messages.properties 2008-11-24 06:52:53 UTC (rev 11965)
@@ -4,9 +4,9 @@
ConnectionPropertySection.NewButtonText=New
ConnectionPropertySection.ValueColumnText=Value
SmooksResourceChangeListener.ConverFileMsg1=File
-SmooksResourceChangeListener.ConverFileMsg2=\ was exsiting , Cover the file?
+SmooksResourceChangeListener.ConverFileMsg2=\ already exists. Overwrite the file?
SmooksResourceChangeListener.CoverFile=Cover
SmooksResourceChangeListener.SmooksFileExtensionName=smooks
SmooksResourceChangeListener.SmooksGraphFileExtensionName=.graph
-SmooksTextEdtor.NotifyTitleMessage=Because there occurs some error during parse/load the Smooks configuration file , the graphical editor can't be opened.Error :
-SmooksTextEdtor.UnKnownErrorMessage=unknown error happen
+SmooksTextEdtor.NotifyTitleMessage=Incorrect or currently unsupported file content. The graphical display can not be rendered.
+SmooksTextEdtor.UnKnownErrorMessage=Unknown error
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/wizards/messages.properties
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/wizards/messages.properties 2008-11-23 01:43:21 UTC (rev 11964)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/wizards/messages.properties 2008-11-24 06:52:53 UTC (rev 11965)
@@ -1,4 +1,4 @@
-NewResourceConfigWizardPage.NewConfigWizardPageDescription=Select the ResourceConfig type to add into the config file
+NewResourceConfigWizardPage.NewConfigWizardPageDescription=Select the ResourceConfig type to add into the configuration file
NewResourceConfigWizardPage.NewConfigWizardPageErrorMessage1=Please select one key
NewResourceConfigWizardPage.NewConfigWizardPageTitle=Select New ResourceConfig Type
SmooksConfigFileNewWizard.ErrorTitle=Error
@@ -7,7 +7,7 @@
SmooksConfigFileNewWizard.TargetDataTypeSelectionTitle=Target Data Selection
SmooksConfigFileNewWizardPage.NewConfigFileWizardPageDefaultFileName=newConfig.smooks
SmooksConfigFileNewWizardPage.NewConfigFileWizardPageDescription=Create a new Smooks configuration file
-SmooksConfigFileNewWizardPage.NewConfigFileWizardPageErrorMessage1=file extension must be "smooks"
+SmooksConfigFileNewWizardPage.NewConfigFileWizardPageErrorMessage1=File extension must be "smooks"
SmooksConfigFileNewWizardPage.NewConfigFileWizardPageTitle=Smooks Configuration
TransformDataWizardSelectionPage.TransformDataWizardDescription=Select the transform data type
TransformDataWizardSelectionPage.TransformDataWizardTitle=Data Type Selection
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/utils/messages.properties
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/utils/messages.properties 2008-11-23 01:43:21 UTC (rev 11964)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/utils/messages.properties 2008-11-24 06:52:53 UTC (rev 11965)
@@ -1,16 +1,16 @@
-UIUtils.ConnectAllConnections=Connect all needed connections
+UIUtils.ConnectAllConnections=Make all necessary connections
UIUtils.ConnectNode1=Connect the "
UIUtils.ConnectNode2=" to the "
UIUtils.DisconnectAllConnections=Disconnect all connections of the current "
UIUtils.InstanceClassResolveMessage1=Change the instance class to "java.util.ArrayList"
UIUtils.InstanceClassResolveMessage2=java.util.ArrayList
UIUtils.InstanceLoadedErrorMessage1=The instance class of "
-UIUtils.InstanceLoadedErrorMessage2=" can't be loaded. Instance name is "
+UIUtils.InstanceLoadedErrorMessage2=" can not be loaded. The instance name is "
UIUtils.InstanceLoadedResolveMessage1=Change the instance class to "
UIUtils.JavaModelLoadedErrorMessage1=Java model "
-UIUtils.JavaModelLoadedErrorMessage2=" can't be instanced. Instance name is "
+UIUtils.JavaModelLoadedErrorMessage2=" can not be instantiated. The instance name is "
UIUtils.Node="node
UIUtils.ParentNodeConnectErrorMessage1=The parent of Java node "
-UIUtils.ParentNodeConnectErrorMessage2=" doesn't be connected by any source node
-UIUtils.SelectorCheckErrorMessage1=The Selector string dosen't support "
+UIUtils.ParentNodeConnectErrorMessage2=" is not connected to any source node
+UIUtils.SelectorCheckErrorMessage1=The Selector string does not support "
UIUtils.SelectorCheckErrorMessage2=" character. Selector is "
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/xml/messages.properties
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/xml/messages.properties 2008-11-23 01:43:21 UTC (rev 11964)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/xml/messages.properties 2008-11-24 06:52:53 UTC (rev 11965)
@@ -1,4 +1,4 @@
AbstractFileSelectionWizardPage.BrowseFileSystemButtonText=Browse File System...
-AbstractFileSelectionWizardPage.BrowseWorkspaceButtonText=Browse workspace file..
-AbstractFileSelectionWizardPage.Errormessage=Please Select a file
-AbstractFileSelectionWizardPage.XMLFilePathLabelText=XML File Path :
+AbstractFileSelectionWizardPage.BrowseWorkspaceButtonText=Browse Workspace...
+AbstractFileSelectionWizardPage.Errormessage=Please select a file
+AbstractFileSelectionWizardPage.XMLFilePathLabelText=XML File Path:
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/xml/ui/messages.properties
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/xml/ui/messages.properties 2008-11-23 01:43:21 UTC (rev 11964)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/xml/ui/messages.properties 2008-11-24 06:52:53 UTC (rev 11965)
@@ -1,2 +1,2 @@
-XMLStructuredDataWizardPage.XMLDataWizardPageDescription=Select a .xml file to be the source/target data
-XMLStructuredDataWizardPage.XMLDataWizardPageTitle=Select xml file
+XMLStructuredDataWizardPage.XMLDataWizardPageDescription=Select a .xml file for configuration data
+XMLStructuredDataWizardPage.XMLDataWizardPageTitle=Select a XML file
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/xml2java/analyzer/messages.properties
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/xml2java/analyzer/messages.properties 2008-11-23 01:43:21 UTC (rev 11964)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/xml2java/analyzer/messages.properties 2008-11-24 06:52:53 UTC (rev 11965)
@@ -1,8 +1,8 @@
-AbstractXMLModelAnalyzer.FileDosentExistErrorMessage1=file dosen't exist
-AbstractXMLModelAnalyzer.FileDosentExistErrorMessage2=\ on the workspace.
-AbstractXMLModelAnalyzer.IllegalPathErrorMessage1=Illegal file path :
-XML2JavaAnalyzer.CantFindNodeErrorMessage1=Can't find the "
+AbstractXMLModelAnalyzer.FileDosentExistErrorMessage1=File does not exist
+AbstractXMLModelAnalyzer.FileDosentExistErrorMessage2=\ in the workspace.
+AbstractXMLModelAnalyzer.IllegalPathErrorMessage1=Illegal file path:
+XML2JavaAnalyzer.CantFindNodeErrorMessage1=Can not find the "
XML2JavaAnalyzer.CantFindNodeErrorMessage2=" node.
-XML2JavaAnalyzer.CantFindRootNodeErrorMessage=Can't find the root node.
-XML2JavaAnalyzer.ConnectQDlgContent=The root models don't be connected , it will make some errors with the generation config file contents.\nDo you wan to connect them?
-XML2JavaAnalyzer.ConnectQDlgTitle=Connection Question
+XML2JavaAnalyzer.CantFindRootNodeErrorMessage=Can not find the root node.
+XML2JavaAnalyzer.ConnectQDlgContent=To ensure a correct mapping, the root nodes should be connected.\nDo you want to connect them now?
+XML2JavaAnalyzer.ConnectQDlgTitle=Root Node Connection
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/xml2xml/messages.properties
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/xml2xml/messages.properties 2008-11-23 01:43:21 UTC (rev 11964)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/xml2xml/messages.properties 2008-11-24 06:52:53 UTC (rev 11965)
@@ -1,3 +1,3 @@
XML2XMLAnalyzer.WarningDlgTitle=Warning
-XML2XMLAnalyzer.XML2XMLGenerateErrorMessage=The xml2xml can't be generate to config file currently.
-XML2XMLAnalyzer.XML2XMLParseErrorMessage=The Smooks editor doesn't support to parse the XML2XML config file currently.
+XML2XMLAnalyzer.XML2XMLGenerateErrorMessage=XML2XML is currently not supported
+XML2XMLAnalyzer.XML2XMLParseErrorMessage=The Smooks editor currently does not support parsing the XML2XML configuration files.
17 years, 4 months
JBoss Tools SVN: r11964 - in trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model: plugin and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: snjeza
Date: 2008-11-22 20:43:21 -0500 (Sat, 22 Nov 2008)
New Revision: 11964
Modified:
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/filesystems/impl/FolderImpl.java
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/plugin/ModelPlugin.java
Log:
JBIDE-2881 Incompatibility with UTF-8Y
Modified: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/filesystems/impl/FolderImpl.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/filesystems/impl/FolderImpl.java 2008-11-22 10:51:55 UTC (rev 11963)
+++ trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/filesystems/impl/FolderImpl.java 2008-11-23 01:43:21 UTC (rev 11964)
@@ -12,7 +12,13 @@
import java.io.File;
import java.io.IOException;
-import java.util.*;
+import java.util.Comparator;
+import java.util.HashMap;
+import java.util.HashSet;
+import java.util.Iterator;
+import java.util.Map;
+import java.util.Properties;
+import java.util.Set;
import org.eclipse.core.internal.resources.ResourceException;
import org.eclipse.core.resources.IContainer;
@@ -23,11 +29,10 @@
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IPath;
+import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Path;
-import org.jboss.tools.common.model.markers.ResourceMarkers;
-import org.jboss.tools.common.model.plugin.ModelPlugin;
+import org.eclipse.core.runtime.Status;
import org.eclipse.swt.widgets.Display;
-
import org.jboss.tools.common.meta.action.XActionInvoker;
import org.jboss.tools.common.model.ServiceDialog;
import org.jboss.tools.common.model.XModelException;
@@ -42,6 +47,8 @@
import org.jboss.tools.common.model.loaders.Reloadable;
import org.jboss.tools.common.model.loaders.XObjectLoader;
import org.jboss.tools.common.model.loaders.impl.PropertiesLoader;
+import org.jboss.tools.common.model.markers.ResourceMarkers;
+import org.jboss.tools.common.model.plugin.ModelPlugin;
import org.jboss.tools.common.model.util.Paths;
import org.jboss.tools.common.model.util.XModelObjectLoaderUtil;
import org.jboss.tools.common.util.FileUtil;
@@ -1058,13 +1065,24 @@
public String get() {
String encoding = null;
- if(ef != null && ef.exists()) {
- encoding = FileUtil.getEncoding(ef);
+ if (ef != null && ef.exists()) {
+ encoding = FileUtil.getEncoding(ef);
+ }
+ if (encoding == null) {
+ encoding = ResourcesPlugin.getEncoding();
+ }
+ try {
+ boolean isUTF8BOM = ModelPlugin.isUTF8BOM(encoding, ef);
+ if (!isUTF8BOM) {
+ return FileUtil.readFileWithEncodingCheck(f, encoding);
+ } else {
+ return ModelPlugin.getContent(ef.getContents(), encoding, true);
}
- if(encoding == null) {
- encoding = ResourcesPlugin.getEncoding();
- }
- return FileUtil.readFileWithEncodingCheck(f, encoding);
+ } catch (CoreException e) {
+ IStatus status = new Status(IStatus.ERROR, ModelPlugin.PLUGIN_ID, IStatus.OK,e.getLocalizedMessage(), e);
+ ModelPlugin.getDefault().getLog().log(status);
+ return null;
+ }
}
public boolean write(Object object) {
Modified: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/plugin/ModelPlugin.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/plugin/ModelPlugin.java 2008-11-22 10:51:55 UTC (rev 11963)
+++ trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/plugin/ModelPlugin.java 2008-11-23 01:43:21 UTC (rev 11964)
@@ -10,21 +10,25 @@
******************************************************************************/
package org.jboss.tools.common.model.plugin;
+import java.io.BufferedReader;
import java.io.File;
import java.io.IOException;
+import java.io.InputStream;
+import java.io.InputStreamReader;
+import java.io.Reader;
import java.util.MissingResourceException;
import java.util.ResourceBundle;
+import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IWorkspace;
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Status;
+import org.eclipse.core.runtime.content.IContentDescription;
import org.eclipse.swt.widgets.Display;
import org.eclipse.ui.IWindowListener;
import org.eclipse.ui.IWorkbenchWindow;
-import org.eclipse.ui.PlatformUI;
-import org.eclipse.ui.internal.Workbench;
import org.jboss.tools.common.log.BaseUIPlugin;
import org.jboss.tools.common.log.IPluginLog;
import org.jboss.tools.common.model.XModelConstants;
@@ -126,4 +130,59 @@
public static IPluginLog getPluginLog() {
return getDefault();
}
+
+ public static boolean isUTF8BOM(String encoding, IFile file) throws CoreException {
+ if ("UTF-8".equals(encoding) && file != null && file.exists()) { //$NON-NLS-1$
+ IContentDescription description= file.getContentDescription();
+ if (description != null) {
+ byte[] bom= (byte[]) description.getProperty(IContentDescription.BYTE_ORDER_MARK);
+ if (bom != null) {
+ if (bom != IContentDescription.BOM_UTF_8)
+ throw new CoreException(new Status(IStatus.ERROR, ModelPlugin.PLUGIN_ID, IStatus.OK,"wrongByteOrderMark", null));
+ return true;
+ }
+ }
+ }
+ return false;
+ }
+
+ public static String getContent(InputStream contentStream, String encoding, boolean skipUTF8BOM) throws CoreException {
+ Reader in= null;
+
+ try {
+ if (skipUTF8BOM) {
+ for (int i= 0; i < 3; i++)
+ if (contentStream.read() == -1) {
+ throw new IOException("notEnoughBytesForBOM");
+ }
+ }
+
+ final int DEFAULT_FILE_SIZE= 15 * 1024;
+ if (encoding == null)
+ in= new BufferedReader(new InputStreamReader(contentStream), DEFAULT_FILE_SIZE);
+ else
+ in= new BufferedReader(new InputStreamReader(contentStream, encoding), DEFAULT_FILE_SIZE);
+ StringBuffer buffer= new StringBuffer(DEFAULT_FILE_SIZE);
+ char[] readBuffer= new char[2048];
+ int n= in.read(readBuffer);
+ while (n > 0) {
+ buffer.append(readBuffer, 0, n);
+ n= in.read(readBuffer);
+ }
+
+ return buffer.toString();
+
+ } catch (IOException x) {
+ throw new CoreException(new Status(IStatus.ERROR, ModelPlugin.PLUGIN_ID, IStatus.OK, "Failed to access or read underlying storage", x)); //$NON-NLS-1$
+ } finally {
+ try {
+ if (in != null)
+ in.close();
+ else
+ contentStream.close();
+ } catch (IOException ignored) {
+ }
+ }
+ }
+
}
17 years, 5 months