| Problem edit Custom Composit in SWT-Designer 4.3.0. [message #8506] | 
Mon, 20 March 2006 01:47   | 
 
Eclipse User  | 
 | 
 | 
   | 
 
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] | 
Wed, 29 March 2006 23:11   | 
 
Eclipse User  | 
 | 
 | 
   | 
 
"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] | 
Wed, 29 March 2006 23:11   | 
 
Eclipse User  | 
 | 
 | 
   | 
 
"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
 |  
 |  
  | 
Powered by 
FUDForum. Page generated in 0.03176 seconds