[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools.emf] Re: Implementing ITableItemLableProvider breaks IItemLabelProvider impl

John,

I've not see a problem like that. Probably if you put a breakpoint in that method, you'll see why that's being called, but I wouldn't expect it to be called except to show the item in a table column. Maybe something has changed in the JFace viewer implementations. At least if you can see why it's getting called, you might be able to specialize the AdapterFactoryLabelProvider to not take that path...


John E. Conlon wrote:
Upgraded my model to Europa and EMF 2.3, and noticed a problem with the Item labels in the generated Editor. Different than the previous EMF version and not at all what I had in the
public String getText(Object object) method of my Object's xxxItemProvider. It appears the label is getting it's value from the ITableItemLabelProvider impl (Column 0) of public String getColumnText(Object object, int columnIndex) of xxxItemProvider.


I had previously used the technique in 14.2.2 of EMF book to implement ITableItemLabelProvider in xxxItemProvider.

Removing the ITableItemLabelProvider from the implements of xxxItemProvider seems to eliminate the problem (of course this breaks my editor table pages).


Tried this on second simplified model and got the same results.

Any ideas on how to fix this?

thanks,
John Conlon