This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Jellytools uses property.setValue(pe.getValue()); where setValue sets value readed from Property Editor. BUT: for testing of the property editors and property customizers, it isn't good idea to set property by setValue(), because it doesn't do it uesr's way , it jaust set value by API. I think it isn't good way for using in UI tests too, but .... So please apply next patch to be possible set property by real-user-way, by writing text to the property sheet on the right expected cell. Thanks in advance.
Created attachment 12528 [details] Patch for Property class
Patch adds new method for return a row where property is shown. It is necessary to know property's row in Property Sheet and edit appropriate cell in JTable by JTableOperator: propertiesSheet.tblSheet().changeCellObject(fmyProperty.getPropertyRow(),1, propertyValue);
I think it is not so easy. Row can change when we sort properties by name. It should be calculated everytime when method getPropertyRow is called. Also I would name method getRow() or getIndex().
> I think it is not so easy. Row can change when we sort properties by name. :( > It should be calculated everytime when method getPropertyRow is > called. Agreed, I've forgotten, sorry. > Also I would name method getRow() or getIndex(). getRow() is right, I think... So, ok please implement method getRow() as it is already implemented in waitProperty - just part of code which calculates row of property. Thanks in advance.
Method getRow() added in version 2.2.7.
verified, Jirka thanks a lot :)