Features

Download

Online

Gallery

Blog

  Index  | Recent Threads  | List Attachments  | Help  | Search
 Welcome Guest  |  Register  |  Login
Login Name  Password
 

Sweet Home 3D Forum



No member browsing this thread
Thread Status: Active
Total posts in this thread: 2
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 3422 times and has 1 reply Next Thread
Staples
Newbie




Joined: Aug 21, 2015
Post Count: 1
Status: Offline
Reply to this Post  Reply with Quote 
GUI Loaded Callback?

Hey there,

I'm writing a plugin that requires knowing when the application has completed loading.

The goal is to add a menu item to the context menu of the MultipleLevelPlanPanel. I've been successful doing so except for when I try to do it on plugin-creation, since the GUI hasn't been loaded yet.

Is there a application-loaded plugin callback or something similar that I can use to trigger my menu change?

Thanks for any and all help.
[Aug 21, 2015 10:09:18 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Puybaret
Expert
Member's Avatar

France
Joined: Nov 7, 2005
Post Count: 5837
Status: Offline
Reply to this Post  Reply with Quote 
Re: GUI Loaded Callback?

Sorry, there isn't no callback that will tell you when the application is fully ready. Maybe try to program your feature in a call to EventQueue.invokeLater.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D developer
[Aug 27, 2015 12:03:43 AM] Show Printable Version of Post    View Member Profile    Send Private Message    Hidden to Guest    http://www.eteks.com [Link] Report threatening or abusive post: please login first  Go to top 
[ Jump to Last Post ]
Show Printable Version of Thread  Post new Thread

    Get Sweet Home 3D at SourceForge.net. Fast, secure and Free Open Source software downloads
   
© Copyright 2006-2017 eTeks - All rights reserved