Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [EEF] AdvancedEObjectFlatComboViewer single contaiment
[EEF] AdvancedEObjectFlatComboViewer single contaiment [message #895608] Fri, 13 July 2012 15:04
urs zeidler is currently offline urs zeidler
Messages: 16
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.
Previous Topic:[ECP] EMF Test Model Generator
Next Topic:[EEF] [0..1] Composition Link Issue
Goto Forum:

Current Time: Thu Jul 31 17:50:39 EDT 2014

Powered by FUDForum. Page generated in 0.02899 seconds