Community
Participate
Working Groups
It must be done in the StringModelFragment there is a text field for the Feature name, and the selectedContainer is the class that has been selected... On the org.eclipse.e4.tools.emf.ui.common.Util class the method canBeExtendedInAFragment(EClass ) and referenceIsModelFragmentCompliant(EReference) are used by the contentProvider of the tree viewer in the FeatureSelectionDialog to select only the possible references... The code should inspired of it...
Thank you patrik
I'll add a ContentProposalAdapter privinding a list of results, as suggested here: http://www.vogella.com/tutorials/EclipseJFace/article.html#user-input-help-with-field-assistance
Created attachment 266022 [details] anim gif: with the proposed change we added content assist As you can see in the attached image, we added content assist for the Feature Name, in the Model Fragment editor. The content assist works only if an Extended Element ID is defined
New Gerrit change created: https://git.eclipse.org/r/87608
Gerrit change https://git.eclipse.org/r/87608 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.ui.tools.git/commit/?id=0d7a9e37204a3759759d97f8a66baa696463877a
Thank you Patrik
New Gerrit change created: https://git.eclipse.org/r/87902
Gerrit change https://git.eclipse.org/r/87902 was merged to [master]. Commit: http://git.eclipse.org/c/www.eclipse.org/eclipse/news.git/commit/?id=7fb7b90d36168578067ff389eee9f247ed668a09
Added N&N: https://www.eclipse.org/eclipse/news/4.7/M5/#content-assist-model-editor