Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » WindowBuilder » ExpressionConverter null - assertionException
ExpressionConverter null - assertionException [message #860896] Sat, 28 April 2012 09:02 Go to next message
Conrad de Vera is currently offline Conrad de Vera
Messages: 7
Registered: April 2012
Junior Member
Hi, we have this customizer and some of it's properties are in array form like boolean and int.
now when we try to modify and then click the OK button of the customizer, it throws an assertionException because the expressionConverter was null. I looked into the ExpressionConverter and it seems there is none for arrays, except for StringArrays.

Is there anyway to get around this? WB checks if the converter is null after checking if the property has been changed.

Hope this is clear somehow. Thanks
Re: ExpressionConverter null - assertionException [message #861492 is a reply to message #860896] Sat, 28 April 2012 15:46 Go to previous messageGo to next message
Konstantin Scheglov is currently offline Konstantin Scheglov
Messages: 555
Registered: July 2009
Senior Member
I've added now expression converters for boolean[] and int[].
If you are in hurry, you could create your own plugin which will contribute them.

		<converter type="boolean[]"
			class="org.eclipse.wb.internal.core.model.property.converter.BooleanArrayConverter"/>
		<converter type="int[]"
			class="org.eclipse.wb.internal.core.model.property.converter.IntegerArrayConverter"/>


Konstantin Scheglov,
Google, Inc.
Re: ExpressionConverter null - assertionException [message #863383 is a reply to message #861492] Sun, 29 April 2012 12:25 Go to previous messageGo to next message
Conrad de Vera is currently offline Conrad de Vera
Messages: 7
Registered: April 2012
Junior Member
Thank you for this, i will post an update on monday. but again thank you
Re: ExpressionConverter null - assertionException [message #864543 is a reply to message #863383] Mon, 30 April 2012 02:00 Go to previous messageGo to next message
Conrad de Vera is currently offline Conrad de Vera
Messages: 7
Registered: April 2012
Junior Member
hi, we will incorporate these ourselves but can we ask if these will be included in a future release?
thank you
Re: ExpressionConverter null - assertionException [message #864544 is a reply to message #864543] Mon, 30 April 2012 02:02 Go to previous messageGo to next message
Konstantin Scheglov is currently offline Konstantin Scheglov
Messages: 555
Registered: July 2009
Senior Member
Yes, these changes are in trunk.
So, eventually they will go in a release.


Konstantin Scheglov,
Google, Inc.
Re: ExpressionConverter null - assertionException [message #864672 is a reply to message #864544] Mon, 30 April 2012 03:31 Go to previous messageGo to next message
Conrad de Vera is currently offline Conrad de Vera
Messages: 7
Registered: April 2012
Junior Member
if an array contains a swing based component (like a jcombo), will that be an issue?

Thanks again for the prompt reply
Re: ExpressionConverter null - assertionException [message #865219 is a reply to message #864672] Mon, 30 April 2012 09:42 Go to previous messageGo to next message
Conrad de Vera is currently offline Conrad de Vera
Messages: 7
Registered: April 2012
Junior Member
Hi, just a followup question, is there a tentative or a target date for the next release?

thanks
Re: ExpressionConverter null - assertionException [message #865871 is a reply to message #864672] Mon, 30 April 2012 16:11 Go to previous message
Konstantin Scheglov is currently offline Konstantin Scheglov
Messages: 555
Registered: July 2009
Senior Member
Conrad de Vera wrote on Sun, 29 April 2012 23:31
if an array contains a swing based component (like a jcombo), will that be an issue?


Added expression converters are specifically for boolean[] and int[] types.



Konstantin Scheglov,
Google, Inc.
Previous Topic:Customizer window size
Next Topic:WindowBuilder Issue
Goto Forum:
  


Current Time: Tue Oct 21 03:56:17 GMT 2014

Powered by FUDForum. Page generated in 0.07010 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software