From: Nigel W. <ja...@mi...> - 2005-07-30 16:11:59
|
Todd, I have gone thru the steps to add the new account type, one at a time, and seeing what JMoney does after each step with the following steps not completed. JMoney seemed to give a reasonably sensible error message in most cases, tho it was not consistent in the messages. Sometimes the error appeared in the console, sometimes it appeared in one of the log files. I think that errors in plug-in configuration should be more prominent, i.e. always shown in a message box to the user. However, at the last moment I thought to try one more error case. I tried setting the info-class attribute to a class that did not implement IPropertySetInfo interface. This indeed resulted in no message appearing and the account not being listed, so is almost certainly your problem. The offending line is 221 of PropertySet.java. The code, which I wrote, simply ignores the extension if the interface is not implemented. I have now corrected this to generate an error message. I have also checked in some changes to field.exsd, as attributes such as info-class had not been set to 'required'. Nigel -----Original Message----- From: jmo...@li... [mailto:jmo...@li...] On Behalf Of Todd Chambery Sent: Thursday, July 28, 2005 4:13 PM To: jmo...@li... Subject: Re: [jmoney-devel] mortgage/loan plugin 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="net.sf.jmoney.fields"> <extendable-property-set base-property-set="net.sf.jmoney.currencyAccount" id="loanAccount" info-class="org.suppressingfire.chambery.LoanAccountInfo"/> </extension> but when I step through NavigationView.makeActions(): for (Iterator iter = CapitalAccountInfo.getPropertySet().getDerivedPropertySetIterator(); iter.hasNext(); ) { final PropertySet derivedPropertySet = (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, > > 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. > > Nigel > > -----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 > > Nigel, > > 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). > > 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. > > Todd > > <snip> ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ jmoney-devel mailing list jmo...@li... https://lists.sourceforge.net/lists/listinfo/jmoney-devel |