Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Same dynamic context menu in different parts
Same dynamic context menu in different parts [message #1718511] Fri, 25 December 2015 14:55
Ali Karimi is currently offline Ali KarimiFriend
Messages: 36
Registered: October 2015
Member
Hey there,

currently i am a little bit confused about what the best practice is to define a popup menu (right-click context menu). I googled for hours now, but i am still not sure about what the best approach is to define a popup menu. Here is what i need and i am sure this a very common scenario for a popup menu (context menu):

Short term description:
I want the same popup menu in different parts where each part is contributed through a different fragment project by using the e4xmi file of the fragment. Furthermore i need a dynamic approach to decide whether or not a specific menu item in this popup menu should be shown or not.

Some more details:
I have many custom model objects in my application. These model objects will be visualized in different parts. These parts are contributed to my application by using different fragments, where each has its own *.e4xmi file. I do not want to define the same popup menu in each fragment. What is the place to define the popup menu so that i can reuse it in different parts? While googling, it seems that a lot people use a mixture of e4 and rcp 3 conventions. For example, i read a lot about menu contribution via extension points in plugin.xml. Is this still the way to go with e4, since there is also the possibility to define the popup menu by using the application model?

Furthermore, I am also pretty sure that a need to use PropertyTester, since it provides the most flexible way for dynamic handling of menu item visibility. Is this still recommended for e4?

Can any one summarize how application model, extension points, property tester and core expression work together?
Would be the use of Snippets of the e4xmi file the way to go or am i on the right way by using the dynamic menu contributions?

A lot of question, i appreciate any hint

thanks
Previous Topic:Multiple command handler enablement states.
Next Topic: Mars.1 (4.5.1 ) Build id: Z20151207-1411 problems
Goto Forum:
  


Current Time: Sat Sep 26 21:32:12 GMT 2020

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

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

Back to the top