WPE TagTransformOperations Update

From Eclipsepedia

Revision as of 14:26, 11 February 2008 by Gerry.kessler.oracle.com (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

All tag transformation operations are now 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.

Example:

       <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"/>