Skip to main content



      Home
Home » Eclipse Projects » Eclipse 4 » DirectMenuItem corresponding class is initializing twice(DirectMenuItem corresponding class is initializing twice)
DirectMenuItem corresponding class is initializing twice [message #1783118] Thu, 08 March 2018 00:43
Eclipse UserFriend
Had created a Direct Menu Item in the Main and associated a Class in the Class URI field in Application.e4xmi file.
When starting the application using .product file observed that the class given above is initialized once.
If clicked on the Menu bar the class instance is again created. So overall two instances are created.
Observed that no more instances are created again. The second instance created is used everytime.
Can you please review and let me the reason for it and also how to avoid created twice.

Attached below screenshots.
- Applicaiton.e4xmi where the configuration is done for Direct Menu Item and its class URI.
- Handler class where the constructor is present.

Thanks
Kiran
Previous Topic:Provide multiple service implementations via ContextFunction?
Next Topic:E4 model service find method doesn't find MPopupMenu
Goto Forum:
  


Current Time: Mon Jul 07 21:52:32 EDT 2025

Powered by FUDForum. Page generated in 0.07363 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top