Hints and tips
- When adding components to a ZIETrans SWT transformation, you may need to resize the transformation composite if the component being added is too large to fit. To do this, in the design view select the transformation composite (not just the component you added) and update the size attribute in the Properties view. To automatically resize the transformation composite based on its contents, select the transformation composite, right-click, select Customize Layout and on the Component tab click the Restore preferred size button.
- To insert a composite for a tabbed folder onto a ZIETrans SWT transformation, use the SWT TabFolder widget located in the SWT Containers folder in the Palette view.
- If you use the Visual Editor to manually add font, image, or color resources to ZIETrans transformations or templates you must also manually add code to clean up these resources. For more information see ZIETrans rich client considerations and limitations.
- If you launch a wizard to add a composite for a host component or widget to a ZIETrans SWT transformation and then cancel the wizard by using the Cancel button, the Close window button, or the Escape key, a trace entry, similar to the following example, will be made in the .metadata/.log file in the root of the workspace directory:
!ENTRY org.eclipse.ve.java.core 2 0 2008-09-21 15:57:59.275 !MESSAGE Exception thrown. !STACK 0 com.ibm.hats.jve.CancelOperationException
- When you copy a transformation from one ZIETrans rich client project to another, the screen capture file associated with the transformation is not copied. When you try to view your copied transformation, or insert a component, there is no screen capture to view.
In order for the copied transformation to work, you must copy the associated screen capture file into the Screen Captures folder. Once you have copied the screen capture file, go back and select the copied transformation from the Transformations folder and open the transformation.
Select a component that has been added to the transformation and in the Properties view, click the button next to the screen capture and select the screen capture.
If you have copied the transformation and screen capture from a project created in a ZIETrans release earlier than V7.0.0.2, in the source of the transformation, be sure the screenCapture Java™ class member references the name of the screen capture file. Because the setScreenCapture method of each component rendering composite references this field, you may need to update each setScreenCapture method call to use the correct fully qualified Java class name of the screenCapture field in the transformation. For example, if you copy a transformation from RCPProjectA to RCPProjectB, the new value (assuming you have selected to use the default Java package for the transformation) is RCPProjectB.transformations.<transformation name>.screenCapture.