Constructor types (XTab)

Constructor types (XTab)

Postby jsimmond » Wed Oct 26, 2005 6:23 pm

Hi

In my plugin, I create two tabs (that inherit from XTab). The constructors I use receive parameters. I haven't added the empty constructors for these tabs, as adding them means that the tabs aren't created properly - it seems that Poseidon defaults to the empty constructors instead of the ones with parameters.

But if I don't add the empty constructors to my code, even if the plugin does work, it breaks some of Poseidon's functionality as it is no longer possible to load models, the close button no longer works, etc.

Any ideas? The empty constructors I add just call super()

thanks
Jocelyn
J Simmonds
jsimmond
 
Posts: 2
Joined: Wed Oct 26, 2005 6:16 pm

Re: Constructor types (XTab)

Postby jsimmond » Wed Nov 02, 2005 3:08 am

I managed to solve my problem, by creating the tabs with an empty constructor, then setting the parameters I originally passed to the constructor directly through setter method, and finally calling an initialize method that does what the original constructir used to do...
J Simmonds
jsimmond
 
Posts: 2
Joined: Wed Oct 26, 2005 6:16 pm


Return to Plug-Ins

Who is online

Users browsing this forum: No registered users and 1 guest

cron