[Studio] Assigning String to Text widget even if it's null

2015-08-04 Thread Emmanuel Lécharny
Hi, a Text widget does not accept null values. It forces us to test if the value is null, and if so, we inject a "". I'm willing to add a method in common-ui CommonUIUtils class that do this check instead of having to test that all over the code. May be tehre is already such a method spmewhere el

Re: [Studio] Assigning String to Text widget even if it's null

2015-08-04 Thread Kiran Ayyagari
On Tue, Aug 4, 2015 at 6:19 PM, Emmanuel Lécharny wrote: > Hi, > > a Text widget does not accept null values. It forces us to test if the > value is null, and if so, we inject a "". > how about extending the TextWidget to make this automatically happen? (not sure whether there is any practical li

Re: [Studio] Assigning String to Text widget even if it's null

2015-08-04 Thread Emmanuel Lécharny
Le 04/08/15 13:48, Kiran Ayyagari a écrit : > On Tue, Aug 4, 2015 at 6:19 PM, Emmanuel Lécharny > wrote: > >> Hi, >> >> a Text widget does not accept null values. It forces us to test if the >> value is null, and if so, we inject a "". >> > how about extending the TextWidget to make this automatic

Re: [Studio] Assigning String to Text widget even if it's null

2015-08-04 Thread Stefan Seelmann
That's ok from my side, but Kirans ideas also sounds good. On 08/04/2015 12:19 PM, Emmanuel Lécharny wrote: > Hi, > > a Text widget does not accept null values. It forces us to test if the > value is null, and if so, we inject a "". > > I'm willing to add a method in common-ui CommonUIUtils clas

Re: [Studio] Assigning String to Text widget even if it's null

2015-08-04 Thread Emmanuel Lécharny
Le 04/08/15 19:18, Stefan Seelmann a écrit : > That's ok from my side, but Kirans ideas also sounds good. yes, but I have reviewed the places where we use Text, and using our own subclass is not possible : we heavily depend on BaseWidgetUtils, that creates the Text instances. Some of the helper me