Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » WindowBuilder » How to handle direct edit with setText method with 2 signatures(actually it crashes)
How to handle direct edit with setText method with 2 signatures [message #1749151] Fri, 02 December 2016 10:52
Maximilien CRUZ is currently offline Maximilien CRUZFriend
Messages: 1
Registered: December 2016
Junior Member
So for the context : I'm using SWT with windowbuilder, I made my own widgets and extended the standard SWT Label.

Recently I added a method setText(some.interface) to my widget named LabelIc, (to be precise this interface is meant to be used in an enum and will provide i18n easy-setter)

When I drag&drop the widget from the palette into a shell with a layout, it propose me direct edit. I write the text I want as a label and then it crashes with :

org.eclipse.wb.internal.core.utils.check.AssertionFailedException: null argument
	at org.eclipse.wb.internal.core.utils.check.Assert.isNotNull(
	at org.eclipse.wb.internal.core.utils.check.Assert.isNotNull(
	at org.eclipse.wb.core.gef.policy.DirectTextPropertyEditPolicy$
	at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runLog(
	at org.eclipse.wb.core.gef.policy.DirectTextPropertyEditPolicy.setText(
	at org.eclipse.wb.gef.graphical.policies.DirectTextEditPolicy.commitEdit(
	at org.eclipse.wb.gef.graphical.policies.DirectTextEditPolicy.access$1(
	at org.eclipse.wb.gef.graphical.policies.DirectTextEditPolicy$2.handleEvent(

I didn't filled a bug report because I don't think that's a bug, it might be the need to create a wbp-component.xml descriptor.

I tried to mess with proporties, even changing the property "text" to "text(java.lang.String)" (I copied the default Label.wbp-component.xml and put it in my wbp-meta folder)

But no success.. Any help would be greatly appreciated !

Thanks !

[Updated on: Sat, 03 December 2016 21:43]

Report message to a moderator

Previous Topic:Internal error
Next Topic:Update Site for 4.4 M1 Luna RCP Package
Goto Forum:

Current Time: Wed Sep 28 00:25:05 GMT 2022

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

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

Back to the top