Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 05:43
Kiran Hariyapuraju is currently offline Kiran HariyapurajuFriend
Messages: 4
Registered: March 2018
Junior Member
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.

Previous Topic:E4 @Named dependency injection and OSGi services
Next Topic:E4 model service find method doesn't find MPopupMenu
Goto Forum:

Current Time: Sun Sep 20 21:58:10 GMT 2020

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

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

Back to the top