Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "WPE TagTransformOperations Update"
(New page: All tag transformation operations are now made available by extending the <code>org.eclipse.jst.pagedesigner.pageDesignerExtension</code>. Here is an example extension taken from the <cod...) |
|||
Line 1: | Line 1: | ||
− | All tag transformation operations are now made available by extending the | + | In WTP 3.0 M5, there is a breaking change in the provisional API for the Web Page Editor's (WPE) tag transform operations. Developers who are supplying design-time metadata for rendering tag libraries in the WPE will be affected, and will need to react to this change. |
+ | |||
+ | All tag transformation operations are now being made available by extending the | ||
<code>org.eclipse.jst.pagedesigner.pageDesignerExtension</code>. Here is an example extension taken from the <code>org.eclipse.jst.pagedesigner</code> plugin.xml: | <code>org.eclipse.jst.pagedesigner.pageDesignerExtension</code>. Here is an example extension taken from the <code>org.eclipse.jst.pagedesigner</code> plugin.xml: | ||
Example: | Example: | ||
− | + | <pre> | |
− | < | + | |
<tagTransformOperation | <tagTransformOperation | ||
id="CreateElementOperation" | id="CreateElementOperation" | ||
− | class="org.eclipse.jst.pagedesigner.dtmanager.converter.operations.internal.CreateElementOperation"> | + | class="org.eclipse.jst.pagedesigner.dtmanager.converter.operations.internal.CreateElementOperation"> |
</tagTransformOperation> | </tagTransformOperation> | ||
− | + | </pre> | |
− | </ | + | |
, where the operation class must extend | , where the operation class must extend | ||
Line 19: | Line 19: | ||
id. | id. | ||
− | Example: | + | Example: <pre> |
− | + | <operation id="CreateElementOperation"> | |
+ | </pre> | ||
− | + | should become, | |
− | + | <pre> | |
+ | <operation id="org.eclipse.jst.pagedesigner.CreateElementOperation"/> | ||
+ | </pre> | ||
Line 31: | Line 34: | ||
CustomTransformOperation is no longer required or used. | CustomTransformOperation is no longer required or used. | ||
− | Example: | + | Example:<pre> |
<operation id="CustomTransformOperation"> | <operation id="CustomTransformOperation"> | ||
<parameter | <parameter | ||
− | value="org.eclipse.jst.pagedesigner.jsf.ui.converter.operations.jsf.ColumnOperation" | + | value="org.eclipse.jst.pagedesigner.jsf.ui.converter.operations.jsf.ColumnOperation"/> |
− | /> | + | |
</operation> | </operation> | ||
+ | </pre> | ||
− | + | should become, | |
− | + | <pre> | |
+ | <operation id="org.eclipse.jst.pagedesigner.jsf.ui.ColumnOperation"/> | ||
+ | </pre> |
Latest revision as of 14:39, 11 February 2008
In WTP 3.0 M5, there is a breaking change in the provisional API for the Web Page Editor's (WPE) tag transform operations. Developers who are supplying design-time metadata for rendering tag libraries in the WPE will be affected, and will need to react to this change.
All tag transformation operations are now being made available by extending the
org.eclipse.jst.pagedesigner.pageDesignerExtension
. Here is an example extension taken from the org.eclipse.jst.pagedesigner
plugin.xml:
Example:
<tagTransformOperation id="CreateElementOperation" class="org.eclipse.jst.pagedesigner.dtmanager.converter.operations.internal.CreateElementOperation"> </tagTransformOperation>
, where the operation class must extend
org.eclipse.jst.pagedesigner.dtmanager.converter.operations.AbstractTransformOperation
.
To reference an operation, a fully qualified extension-id must now be used. Anyone who had previously created design-time metadata, DTInfo, must update the id.
Example:<operation id="CreateElementOperation">
should become,
<operation id="org.eclipse.jst.pagedesigner.CreateElementOperation"/>
If "CustomTransformOperation" ids were used, the references must also be
updated to use the extension-id instead. The <parameter> child element to the
CustomTransformOperation is no longer required or used.
<operation id="CustomTransformOperation"> <parameter value="org.eclipse.jst.pagedesigner.jsf.ui.converter.operations.jsf.ColumnOperation"/> </operation>
should become,
<operation id="org.eclipse.jst.pagedesigner.jsf.ui.ColumnOperation"/>