Skip to main content



      Home
Home » Eclipse Projects » Sirius » How can I use drop down selection list in Sirius edition table(edition table)
How can I use drop down selection list in Sirius edition table [message #1830385] Fri, 24 July 2020 09:48 Go to next message
Eclipse UserFriend
Hi,

Sirius edition table provides an excellent way to manage modeling data. However, it seems that edition table's cell editors can only do basic text editing. In my application, some cell in the edition table is in the form of enum, so I hope I can make table cells have something like drop-down selection list, in order to select from a set of values. Is there anyway to do this work? I don't want to put the cell editor in property page, because is much more easier for user's to use my application if I can do drop-down selections directly in the table's cell.

Thanks for any advice.
Re: How can I use drop down selection list in Sirius edition table [message #1830387 is a reply to message #1830385] Fri, 24 July 2020 10:06 Go to previous messageGo to next message
Eclipse UserFriend
Hi Yufei,

From the org.eclipse.sirius.table.ui.tools.internal.editor.provider.DFeatureColumnEditingSupport source code, the cell editor is supposed to be adapted to the feature you currently try to. edit (see your column mapping).

If you declared a direct edit tool, you will have a text cell editor but if you have no direct edit tool and if your feature is typed with an EEnum, you should have a combo with enum literals from your metamodel.

Regards
Re: How can I use drop down selection list in Sirius edition table [message #1830393 is a reply to message #1830387] Fri, 24 July 2020 11:41 Go to previous messageGo to next message
Eclipse UserFriend
Hi Maxime,

Thanks for your advice. But I'm facing some difficulties.

The problem is that my feature is not a enum, but a string. What I want to do is let user import a set of values and store them in to my application, and let him can select from these values in the edition table. Is there any way I can change the DFeatureColumnEditingSupport into my custom editing support? Or is there any other ways to let a String typed feature can use drop-down list to select from a set of values, while these values may change from time to time?

Thanks again for any advice.
Re: How can I use drop down selection list in Sirius edition table [message #1866522 is a reply to message #1830393] Fri, 31 May 2024 06:57 Go to previous message
Eclipse UserFriend
Hi Yufie,

Sorry for asking late. But I am curious to know if you could able to manage the solution for your problem statement?

Thanks,
Mishal
Previous Topic:Creating a graphical node after a selection is made on the selection wizard
Next Topic:Create Representation Wizard, Session is not available Error
Goto Forum:
  


Current Time: Thu Jul 03 12:29:52 EDT 2025

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

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

Back to the top