Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » comboboxcelleditor not firing (comboboxcell editor not working in property descriptor)
comboboxcelleditor not firing [message #651936] Wed, 02 February 2011 07:14 Go to next message
Ravi Kiran is currently offline Ravi KiranFriend
Messages: 41
Registered: December 2010
As a part of making gmf editor i want to return a comboboxcelleditor for certain datatypes(enum) in my metamodel

so i have implemented my own property descriptor and returned comboboxcelleditor as a cell editor.

but in the gmf editor when i click on show property view, for that data type it's displaying a uneditable default value(default value given enum datatype.

what do i do if i want to show a comboboxcelleditor for that enum datatype

customized proprty descriptor
below DNTypes is the enum data type declared in the meta model.
if everything works fine it should show type1,type2.. in combobox but it isn't showing up
------------------------------------------------------------ -------------
public CellEditor createPropertyEditor(Composite composite) {
CellEditor result=super.createPropertyEditor(composite);

if (result==null)
return null;

EClassifier eType = ((EStructuralFeature) itemPropertyDescriptor

if (eType instanceof EDataType) {
EDataType eDataType = (EDataType) eType;
if(eDataType.getInstanceClass() == DNTypes.class)
String s[]={"type1","type2","type3","type4"};
ComboBoxCellEditor cbe=new ComboBoxCellEditor(composite.getParent(),s);

return cbe;
//return result;



return result;

------------------------------------------------------------ -----------

any pointers how to proceed
Re: comboboxcelleditor not firing [message #651942 is a reply to message #651936] Wed, 02 February 2011 07:44 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member

this is a question on GMF so you should post it in the GMF group

~ Christian

Twitter : @chrdietrich
Blog :
Previous Topic:[Xpand] null value of eContainer and containment feature
Next Topic:passing parameters from one block to another
Goto Forum:

Current Time: Sun Apr 21 23:44:44 GMT 2024

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

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

Back to the top