NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

RCP 6.1: Creating Dynamic Toolbar Actions using MemoryFileSystem Problem

 
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Platform Users
View previous topic :: View next topic  
Author Message
Jordan Ganoff
Posted via mailing list.





PostPosted: Thu Oct 23, 2008 2:33 pm    Post subject: RCP 6.1: Creating Dynamic Toolbar Actions using MemoryFileSystem Problem Reply with quote

In an effort to dynamically create transient Actions on a per-login basis I’ve registered a custom MultiFileSystem that proxies a MemoryFileSystem. Action instances are predefined and only their shadow references are created dynamically as FileObjects at runtime – before the main window is visible. However, the references created for Toolbar Actions are not consistently added to my toolbar. This behavior is only exhibited by shadow references defined for a Toolbar. All other references: Menu, Shortcut, or otherwise; are consistently created, visible, and operational. I have been unsuccessful in reproducing the problem consistently – leading me to believe it could be a threading issue.

I am creating the toolbar actions as follows:

Look up a reference to the FileSystem.class. Create “Toolbars” folder from the root of the found FileSystem (my custom FileSystem). Then I create the FileObject for a toolbar action, setting all appropriate attributes for position, original-file, etc. This produces the desired file structure (when using the Default FileSystem to ensure everything is created as expected).

This is all done off the EDT. I’ve also tried on the EDT with no luck.

Could there be a problem of events not being fired that the Toolbar Displayer listens for? Any thoughts would be greatly appreciated.

Thanks in advance,

Jordan Ganoff
Software Engineer
_______________________

Air-Transport IT Services, Inc.
5950 Hazeltine National Drive, Suite 210
Orlando, FL 32822
Office: (407) 370-4664
Fax: (407) 370-4657
www.AirIT.com
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Platform Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo