[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools.ve] Visualize a custom composite in VE
|
- From: Hung <hungvlam@xxxxxxxxxxx>
- Date: Wed, 17 Aug 2005 10:22:35 -0400
- Newsgroups: eclipse.tools.ve
- Organization: EclipseCorner
- User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040113
Hello,
I have a custom composite that has some private setting data, getters/setters for those settings,
and a render method that basically creates the content of this composite based on the settings.
In VE, when you DND this custom composite from the palette, we generate the following code :
private void createMyCustomComposite()
{
myComposite = new MyCustomComposite(this, SWT.NONE);
myComposite.setComponentClassName("input");
myComposite.setWidgetClassName("text");
myComposite.render();
myComposite.setBounds(new org.eclipse.swt.graphics.Rectangle(51,22,179,78));
}
In VE, the render() method doesn't seem to get called, so the custom composite is displayed as blank.
If I call the render() method inside the setComponentClassName() or setWidgetClassName() methods,
then this render() method gets called, and I was able to see my custom composite gets rendered.
Can anyone help? thanks.