Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Commercial » Problem edit Custom Composit in SWT-Designer 4.3.0.
Problem edit Custom Composit in SWT-Designer 4.3.0. [message #8506] Mon, 20 March 2006 06:47 Go to next message
xy is currently offline xyFriend
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("
Re: Problem edit Custom Composit in SWT-Designer 4.3.0. [message #9262 is a reply to message #8506] Thu, 30 March 2006 04:11 Go to previous message
Eric Clayberg is currently offline Eric ClaybergFriend
Messages: 979
Registered: July 2009
Location: Boston, MA
Senior Member
"xy" <nhsoft.xy@gmail.com> wrote in message
news:dvlj6b$28u$1@utils.eclipse.org...
> 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.

I tried that and it worked fine. Do you have an example?

> 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.

I tried your example and they worked fine in Designer. The parsed and
displayed correctly.

Based on that, my guess is that you are running into some sort of
installation or configuration problem. The Designer FAQ offers several
suggestions for case slike that.

-Eric Clayberg
Sr. Vice President of Product Development
Instantiations, Inc.
http://www.instantiations.com
http://www.windowbuilderpro.com/

Author: "Eclipse: Building Commercial Quality Plug-ins"
http://www.awprofessional.com/title/0321228472
Re: Problem edit Custom Composit in SWT-Designer 4.3.0. [message #561852 is a reply to message #8506] Thu, 30 March 2006 04:11 Go to previous message
Eric Clayberg is currently offline Eric ClaybergFriend
Messages: 979
Registered: July 2009
Location: Boston, MA
Senior Member
"xy" <nhsoft.xy@gmail.com> wrote in message
news:dvlj6b$28u$1@utils.eclipse.org...
> 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.

I tried that and it worked fine. Do you have an example?

> 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.

I tried your example and they worked fine in Designer. The parsed and
displayed correctly.

Based on that, my guess is that you are running into some sort of
installation or configuration problem. The Designer FAQ offers several
suggestions for case slike that.

-Eric Clayberg
Sr. Vice President of Product Development
Instantiations, Inc.
http://www.instantiations.com
http://www.windowbuilderpro.com/

Author: "Eclipse: Building Commercial Quality Plug-ins"
http://www.awprofessional.com/title/0321228472
Previous Topic:RCP Developer - new product from Instantiations
Next Topic:New Exceptional JXTA plugin from javadojo.com
Goto Forum:
  


Current Time: Sun Dec 22 06:09:51 GMT 2024

Powered by FUDForum. Page generated in 0.03854 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top