[md-dev] HomePageView

Sean Reilly sreilly at seanreilly.com
Tue Aug 15 16:00:09 EDT 2006


Hello,

Can you check the errlog.txt file in the ".moneydance" directory  
under your home directory?  Checking that file (when MD freezes)  
should provide some indication of what is going on since stderr is  
redirected to that file, overwriting it each time Moneydance is run.

If you are using Windows this will probably be something like c: 
\Documents and Settings\<username>\.moneydance\errlog.txt.  On other  
systems you can just go to ~/.moneydance/errlog.txt.

Thanks,
Sean

On Aug 15, 2006, at 5:06 PM, fxb smidt wrote:

> Hi,
>
> I've been trying to implement a simple extension to display  
> something on the home page, but I'm running into troubles.
>
> My HomePageView object is a dummy one for the time being:
>
> public class HomePageExtensionView
>     implements HomePageView
> {
>     private boolean shown = false;
>     private JLabel myLabel = new JLabel("hello world");
>
>     public String getID() {
>     return "777776";
>     }
>
>     public String toString() {
>     return "dummyextension";
>     }
>
>     public void refresh() {}
>
>     public void reset() {}
>
>     public void setActive(boolean active) {
>     shown = active;
>     }
>
>     public JComponent getGUIView(RootAccount rootAccount) {
>      return myLabel;
>     }
> }
>
>
> I've (slightly) modified the "myextension" example given with the  
> dev kit to call registerHomePageView() but even though the call  
> returns fine (it returns a void anyway), things don't work as  
> expected:
>
> - if I call registerHomePageView() from the init() of the Main  
> class (subclass of FeatureModule), moneydance seems to hang while  
> displaying the "splash" screen.
>
> - if I register the view later (like in handleEvent() when  
> receiving "md:file:opened"), no more hang issue, but I don't see  
> the extension in the list in File->preferences->"Home Page" tab
>
> I'm probably doing something wrong. Any help is greatly appreciated.
>
> Thanks
>
>  		
> ---------------------------------
> Do you Yahoo!?
>  Get on board. You're invited to try the new Yahoo! Mail  
> Beta._______________________________________________
> moneydance-dev mailing list
> moneydance-dev at moneydance.com
> http://moneydance.com/mailman/listinfo/moneydance-dev



More information about the moneydance-dev mailing list