Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [EEF] Generated MDForms Field(Form fields use KeyListener)
[EEF] Generated MDForms Field [message #1037912] Wed, 10 April 2013 02:54
John Mark is currently offline John Mark
Messages: 12
Registered: November 2012
Junior Member
I am using EEF to generate Master detail forms.

The generated code looks like this -

		name.addKeyListener(new KeyAdapter() {
			 * @see
			public void keyPressed(KeyEvent e) {
				if (e.character == SWT.CR) {
					if (propertiesEditionComponent != null)
						propertiesEditionComponent.firePropertiesChanged(new PropertiesEditionEvent(ProjectPropertiesEditionPartForm.this, Fusion_portalViewsRepository.Project.Properties.portalName, PropertiesEditionEvent.COMMIT, PropertiesEditionEvent.SET, null, portalName.getText()));

Here the user is forced to press the Return key for the input to be accepted. Any reason the modifyListener is not used instead?

Is there any way to change the code generation to change this?

[Updated on: Wed, 10 April 2013 02:55]

Report message to a moderator

Previous Topic:EPackageImpl.ePackageExtendedMetaData.nameToClassifierMap not updated when classifier removed
Next Topic:Using EMFStore Navigator with model that has been modified programmatically
Goto Forum:

Current Time: Fri Aug 29 16:18:49 EDT 2014

Powered by FUDForum. Page generated in 0.06944 seconds