| [EEF] AdvancedEObjectFlatComboViewer single contaiment [message #895608] |
Fri, 13 July 2012 15:04 |
urs zeidler Messages: 15 Registered: July 2009 |
Junior Member |
|
|
I use the AdvancedEObjectFlatComboViewer for a single containment reference, there are some problems with it.
First, when the reference is null, the method org.eclipse.emf.eef.runtime.impl.components.SinglePartPropertiesEditingComponent
protected boolean shouldProcess(IPropertiesEditionEvent event)
return false as currentValue == null && event.getNewValue() == null
this behavior I can simple change by overriding in the part I need.
Second, in the processing of the creation dialog, the
org.eclipse.emf.eef.runtime.context.impl.EObjectPropertiesEditionContext.propertiesEditingComponent never get updatet when public void
seteObject(EObject eObject) is called, which lead to a classcast exception when selecting an other object class in the wizard as the
IPropertiesEditionComponent is lazily created and stored in public IPropertiesEditionComponent createPropertiesEditingComponent(String mode)
So I simply changed seteObject it to something like this:
/**
* @param eObject
*/
public void seteObject(EObject eObject) {
this.eObject = eObject;
propertiesEditingComponent = null;
}
which works properly but I see no way to change this in my code.
I could open a bugzilla report for it.
greetings, urs.
|
|
|
Powered by
FUDForum. Page generated in 0.01774 seconds