Skip to main content


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 06:54
John Mark is currently offline John MarkFriend
Messages: 13
Registered: November 2012
Junior Member
Hello,
I am using EEF to generate Master detail forms.

The generated code looks like this -

		name.addKeyListener(new KeyAdapter() {
			/**
			 * @see org.eclipse.swt.events.KeyAdapter#keyPressed(org.eclipse.swt.events.KeyEvent)
			 * 
			 */
			@Override
			@SuppressWarnings("synthetic-access")
			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 06: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 Apr 19 09:52:35 GMT 2024

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

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

Back to the top