Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [EMF Forms] Popup menus (New Child...) too "long"
[EMF Forms] Popup menus (New Child...) too "long" [message #1726089] Wed, 09 March 2016 14:33 Go to next message
Eclipse UserFriend
Hi there,

we have a complex EMF Model mit lots of classes and references between
them. In fact its many EMF Models relating to each other :

Model C inherits from Model B inherits from Model A
Model D inherits from Model B inherits from Model A

Problem is...when opening the popup menu (new child) for example in the
TreeMasterDetails view on one Instance, the popup menu with the possible
childs is so long, that it does not fit the screen. What makes it even
worse...the popup is unsorted. (using Version 1.7.1)

And there are entries from the base Models (A and B) that are irrelevant
in Model C but needed in Model D....and the other way round.

So I want the popup on an object from Model C to be stripped by some
children... and the popup in Model D to be stripped by some other children.

So far I found out that the ItemProviderAdapterFactory's and their
ChildCreationExtender's are contributing to the popups....

Is there any "official" or unofficial way to customize the (new
child-)popups ? Any kind of a "restriction-framework" or extension-point
to limit the number of entries or defining my own popup?

Any way to sort or group the entries?

Best regards
Oliver
Re: [EMF Forms] Popup menus (New Child...) too "long" [message #1726188 is a reply to message #1726089] Thu, 10 March 2016 12:42 Go to previous message
Eugen Neufeld is currently offline Eugen NeufeldFriend
Messages: 174
Registered: May 2015
Senior Member
Hi Oliver,
unfortunately there is no easy way right now to do so.
You have two possibilities here:
1. You use the TreeMasterDetailSWTFactory ( you can find a short description in this blog post . Here you will probably be able to do everything you need. But the tree must be on the root level of you editor, as you will have to instantiate it in the editor.
2. You overwrite the TreeMasterDetailSWTRenderer with a custom implementation. You will need to replace the createMasterTree() method and copy most of the code.

If you decide to customize the TreeMasterDetailSWTRenderer we are happy to accept a contribution which would ease such customization in the future. We also are happy to accept sponsoring to realize such changes on a short notice. Please let me know if you are interested in that.

Cheers,
Eugen


--
Eugen Neufeld

Get professional Eclipse developer support:
http://eclipsesource.com/en/services/developer-support/
Previous Topic:[EMF Forms] Collapsible group in e4 application
Next Topic:[EMF Forms] TreeMasterDetail changing "Headers"
Goto Forum:
  


Current Time: Fri Apr 19 01:31:20 GMT 2024

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

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

Back to the top