Community
Participate
Working Groups
Created attachment 95068 [details] patch for plug-in org.eclipse.emf.tabbedproperties A new property section for the plug-in org.eclipse.emf.tabbedproperties might be desirable. The functionality of this section would be to modify the elements of a feature of type List of any EObject. The appearance of the section would be two Lists (one with the candidates to be part of the list and the other with the members of the list) and four buttons Add, Remove, Up and Down. I am attaching to this feature request a possible implementation of this section.
Really interesting patch ! I remember having implementing a similar one for the Topcased UML editor to manage Profiles and Stereotypes, but I did not provide a generic section, and that's what you are proposing :-) I just have a remark on the use of this section with big lists : I tried to apply this on the "References" property of an EAnnotation from which it should be possible to references many EObject elements. The problem is that the initial list (on the left is very long) and it is quite unusable because I need to scroll both horizontally and vertically to find buttons used to Add/Remove elements. A solution would consist in limiting the TableViewer size and addind scrollbars. Can you perform these changes ?
Created attachment 97591 [details] Patch for plug-in org.eclipse.emf.tabbedproperties This attachment solves a problem that the previous attachment had with big lists
(In reply to comment #1) > Really interesting patch ! I remember having implementing a similar one for the > Topcased UML editor to manage Profiles and Stereotypes, but I did not provide a > generic section, and that's what you are proposing :-) > > I just have a remark on the use of this section with big lists : I tried to > apply this on the "References" property of an EAnnotation from which it should > be possible to references many EObject elements. The problem is that the > initial list (on the left is very long) and it is quite unusable because I need > to scroll both horizontally and vertically to find buttons used to Add/Remove > elements. A solution would consist in limiting the TableViewer size and addind > scrollbars. > > Can you perform these changes ? > I did it. I just had to add a "heightHint" to the GridData assigned to te composites containing the lists. I hadn't realized in the begining that there was a problem when the list are big.
(In reply to comment #3) > I did it. I just had to add a "heightHint" to the GridData assigned to te > composites containing the lists. I hadn't realized in the begining that there > was a problem when the list are big. Great ! Adding a "widthHint" to the GridData also would prevent bad issues when List items are too wide. I will review the code in the next days and integrate it. Thanks again for your contribution.
To late for 0.8, postpone for 0.9
Patch applied and implemented in HEAD. Available for the next 0.9M4 version.
Applied patch has been reworked a little to match with code formatter and specifically to be applied on the org.eclipse.emf.ecoretools.tabbedproperties plugin.