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.

Bug 38018 - Small patch for class Property
Summary: Small patch for class Property
Status: VERIFIED FIXED
Alias: None
Product: qa
Classification: Unclassified
Component: Jellytools (show other bugs)
Version: 3.x
Hardware: All All
: P1 blocker (vote)
Assignee: issues@qa
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-11 14:36 UTC by Marian Mirilovic
Modified: 2003-12-12 10:02 UTC (History)
0 users

See Also:
Issue Type: TASK
Exception Reporter:


Attachments
Patch for Property class (553 bytes, text/plain)
2003-12-11 14:37 UTC, Marian Mirilovic
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marian Mirilovic 2003-12-11 14:36:19 UTC
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.
Comment 1 Marian Mirilovic 2003-12-11 14:37:13 UTC
Created attachment 12528 [details]
Patch for Property class
Comment 2 Marian Mirilovic 2003-12-11 14:40:03 UTC
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);

Comment 3 Jiri Skrivanek 2003-12-11 16:17:41 UTC
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().
Comment 4 Marian Mirilovic 2003-12-11 16:36:07 UTC
> 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.
Comment 5 Jiri Skrivanek 2003-12-12 07:28:33 UTC
Method getRow() added in version 2.2.7.
Comment 6 Marian Mirilovic 2003-12-12 10:02:07 UTC
verified, 
Jirka thanks a lot :)