Community
Participate
Working Groups
When property a tab receives a notification, the value is not tested and can make mistakes. for example in papyrus, we obtained the following result. java.lang.IllegalArgumentException: Argument cannot be null at org.eclipse.swt.SWT.error(SWT.java:3865) at org.eclipse.swt.SWT.error(SWT.java:3799) at org.eclipse.swt.SWT.error(SWT.java:3770) at org.eclipse.swt.widgets.Widget.error(Widget.java:463) at org.eclipse.swt.widgets.Text.setText(Text.java:1951) at org.eclipse.papyrus.tabbedproperties.uml.parts.forms.ModelPropertiesEditionPartForm.setName(ModelPropertiesEditionPartForm.java:1110) at org.eclipse.papyrus.tabbedproperties.uml.components.ModelBasePropertiesEditionComponent$1.notifyChanged(ModelBasePropertiesEditionComponent.java:114) at org.eclipse.uml2.uml.internal.impl.ElementImpl.eNotify(ElementImpl.java:868) at org.eclipse.uml2.uml.internal.impl.NamedElementImpl.unsetName(NamedElementImpl.java:279)
Moving bug to emft.eef as per bug 288269
Hi, using the last codegen from cvs HEAD, all the text widget ( text, textarea ) have a test before setting the text : [template public setterSignatureImplementation(elementEditor : ElementEditor) overrides setterSignatureImplementation ? (elementEditor.representationName('Text'))] [elementEditor.setterSignature()/] { if (newValue != null) { [elementEditor.name.toJavaIdentifier()/].setText(newValue); } else { [elementEditor.name.toJavaIdentifier()/].setText(""); //$NON-NLS-1$ } } [/template] please use the last codegen from HEAD.
Created attachment 147314 [details] mylyn/context/zip modified classes
a test is added in order to test if the new value is null