Skip to main content


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 19:04 Go to next message
urs zeidler is currently offline urs zeidlerFriend
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.
Re: [EEF] AdvancedEObjectFlatComboViewer single contaiment [message #1406392 is a reply to message #895608] Sat, 09 August 2014 23:18 Go to previous message
Al B is currently offline Al BFriend
Messages: 47
Registered: June 2012
Member
I have the same problem with AdvancedEObjectFlatComboViewer. However, I'm afraid that EEF is dead now.
Previous Topic:[EMF FORMS] Rule Based Enablement TreeMasterDetail View
Next Topic:[EEF] What is the best way to update an EEF project?
Goto Forum:
  


Current Time: Tue Mar 19 07:55:00 GMT 2024

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

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

Back to the top