vlsi opened a new pull request, #6199:
URL: https://github.com/apache/jmeter/pull/6199

   ## Description
   
   A common theme is as follows:
   1. If a property is set from code (e.g. from Java code), then we should 
store it in `TestElement` properties no matter if the value is empty or if the 
value is the same as default one. For instance, `HTTP Request Defaults` (and 
other "config" elements) override non-set properties only, so we might want to 
explicitly have a value in `HTTP Request` to avoid it being overridden by `HTTP 
Request Defaults`
   2. If a UI element (e.g. `JTextField`) is empty (blank) we assume the value 
is unset. Currently, we have no way to distinguish between "value is empty 
string" vs "value is unset", so we just assume "blank" values to be the same as 
"unset". It means UI elements should convert "empty string text field" and 
"empty checkbox" to "property removal". Note that we can't integrate "remove 
empty property" into setter methods due to `1.`
   
   To make it happen without much duplication, I factor UI converters into UI 
classes. For instance, `JEditableCheckBox` calls into `removeProperty` for 
unset checkboxes.
   I added `JTextFieldBindEditor` to make it easier to teach the existing UI 
classes to "remove property on empty string"
   
   
   This change passes tests, however, I need to pass and apply 
`JTextFieldBindEditor` to `Gui` classes that use `TestElementSchema`


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@jmeter.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to