Problem edit Custom Composit in SWT-Designer 4.3.0. [message #8506] |
Mon, 20 March 2006 06:47 |
xy Messages: 29 Registered: July 2009 |
Junior Member |
|
|
If I select the "Method name for new statements:" by initialize(just to
compatable with VE) option in the "Code Generation" page.
After this I create a custom composite, and add a button on the composite,
then the code code not be compiled.
Another problem is:
If I create a BasisComposite with a tabFolder, and add FeeRegionComposite
onto the tabItem, then swt-Designer cannot parse it, eclipse can run it.
public class BasisComposite extends Composite {
/**
* Create the composite
* @param parent
* @param style
*/
public BasisComposite(Composite parent, int style) {
super(parent, style);
setLayout(new FillLayout());
FormToolkit toolkit = new FormToolkit(Display.getCurrent());
toolkit.adapt(this);
toolkit.paintBordersFor(this);
TabFolder tabFolder;
tabFolder = new TabFolder(this, SWT.NONE);
toolkit.adapt(tabFolder, true, true);
final TabItem tabItem_FeeRegion = new TabItem(tabFolder, SWT.NONE);
tabItem_FeeRegion.setText("
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03854 seconds