Skip to main content



      Home
Home » Archived » Visual Editor (VE) » how to prevent the generation of default constructor
how to prevent the generation of default constructor [message #133520] Mon, 27 November 2006 07:24 Go to next message
Eclipse UserFriend
Originally posted by: v_santhosh.satyam.com

when i am creating a custom widget with swing and gragging it to VE by default it is loading default constructor.

So can any one tell me how to load constructor with arguments.
Re: how to prevent the generation of default constructor [message #133557 is a reply to message #133520] Mon, 27 November 2006 11:15 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

The Beans specification uses the default ctor. For Swing/AWT the Beans
spec is used. So there's no way to automatically tell it to use a
customized ctor.

sanny wrote:
> when i am creating a custom widget with swing and gragging it to VE by default it is loading default constructor.
>
> So can any one tell me how to load constructor with arguments.

--
Thanks,
Rich Kulp
Re: how to prevent the generation of default constructor [message #133627 is a reply to message #133520] Tue, 28 November 2006 04:34 Go to previous message
Eclipse UserFriend
Originally posted by: spider_a.freenet.am

Write your own constructor in generated file with required arguments. In that way it will ignore default constructor.

regards,
Re: how to prevent the generation of default constructor [message #614813 is a reply to message #133520] Mon, 27 November 2006 11:15 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

The Beans specification uses the default ctor. For Swing/AWT the Beans
spec is used. So there's no way to automatically tell it to use a
customized ctor.

sanny wrote:
> when i am creating a custom widget with swing and gragging it to VE by default it is loading default constructor.
>
> So can any one tell me how to load constructor with arguments.

--
Thanks,
Rich Kulp
Re: how to prevent the generation of default constructor [message #614818 is a reply to message #133520] Tue, 28 November 2006 04:34 Go to previous message
Eclipse UserFriend
Originally posted by: spider_a.freenet.am

Write your own constructor in generated file with required arguments. In that way it will ignore default constructor.

regards,
Previous Topic:test - please ignore!
Next Topic:How to create widgets in VE with respect to eSWT
Goto Forum:
  


Current Time: Mon Jun 16 09:15:55 EDT 2025

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

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

Back to the top