From: Todd C. <tod...@gm...> - 2005-07-28 23:13:14
|
Hi, So I've got my plugin working with the JMoney app--the Loan Account dummy prefs show up as a page in the Preferences. But. I can't get my plugin to show up in the popup list of new accounts. I'm extending net.sf.jmoney.fields: <extension point=3D"net.sf.jmoney.fields"> <extendable-property-set base-property-set=3D"net.sf.jmoney.currencyAccount" id=3D"loanAccount" info-class=3D"org.suppressingfire.chambery.LoanAccountInfo"/> </extension> but when I step through NavigationView.makeActions(): =09=09for (Iterator iter =3D CapitalAccountInfo.getPropertySet().getDerivedPropertySetIterator(); iter.hasNext(); ) { =09=09=09final PropertySet derivedPropertySet =3D (PropertySet)iter.next(); LoanAccount is not among the derived property sets (only BankAccount). I only have the bare amount of code in place to run, essentially copied from BankAccount. Am I missing something obvious to include the LoanAccount with other CapitalAccounts? Thanks, Todd On 7/26/05, Nigel Westbury <ja...@mi...> wrote: > Todd, >=20 > You are correct that you are a trailblazer, so any feedback would be > much appreciated. You are definitely right to add this feature as a > plug-in, rather than change the core code. If you ever feel you need to > modify the core code because it does not give the flexibility you need > then I would be very happy to make those changes, just so long the > changes are generally improving the extensibility of JMoney and are not > mortgage/loan specific code. >=20 > Nigel >=20 > -----Original Message----- > From: jmo...@li... > [mailto:jmo...@li...] On Behalf Of Todd > Chambery > Sent: Tuesday, July 26, 2005 3:26 PM > To: jmo...@li... > Subject: Re: [jmoney-devel] mortgage/loan plugin >=20 > Nigel, >=20 > After some flopping around, I think I see my way clear to developing > the loan account as a plugin (instead of more directly extending the > java classes within the project). >=20 > I'm finally am getting some traction (I got jmoney to run!), and as > I'm at the very beginning of this business, I'll try to record a > "JMoney Development for Dummies" as I go along. >=20 > Todd >=20 >=20 <snip> |