Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » WindowBuilder » Custom Method
Custom Method [message #673782] Tue, 24 May 2011 17:55 Go to next message
Oussema  is currently offline Oussema Friend
Messages: 11
Registered: April 2011
Junior Member
Hi all Smile,
I'm working on a plugin project which have to extend GWT Designer and WindowBuilder.
So I created a custom button which is based on a simple GXT Button.
My button looks like that:
import com.extjs.gxt.ui.client.widget.button.Button;
public class MyButton extends Button
Button button=new Button("My Button");
public void setService(MyService1 service1,MyService2 service2){

I added my custom button to the palette by creating wbp-meta folder, etc.
I wanted to add a property to my custom Button to be able to invoke the method "setService". So i modified MyButton.wbp-component.xml like this:
<?xml version="1.0" encoding="UTF-8"?>
<component xmlns="">
<method name="addListner">
<parameter type="">
<editor id="serviceEditor">
<parameter type="">
<editor id="serviceEditor">
<method-property title="service" method="setService(,"/>

For this purpose i developped the servicePropertyEditor which extends AbstractComboPropertyEditor which is located in the package "".

When i add my custom button from the palette into an EntryPoint for example, I try to modify the Service Property which appear in the Properties View but an exception in GWT Designer like that:
"WindowBuilder internal error
org.eclipse.wb.internal.core.utils.check.AssertionFailedException: null argument:"

I didn't understand what's the real problem.
Please help me to find a solution
Hope that it was clear.

Best Regards


Re: Custom Method [message #673818 is a reply to message #673782] Tue, 24 May 2011 20:38 Go to previous messageGo to next message
Konstantin Scheglov is currently offline Konstantin ScheglovFriend
Messages: 555
Registered: July 2009
Senior Member
I also don't understand why it fails.
May be there is something in logs.

Try to create error report and send it to where GWT Designer asks you to send.
Re: Custom Method [message #674058 is a reply to message #673818] Wed, 25 May 2011 17:06 Go to previous message
Eric Clayberg is currently offline Eric ClaybergFriend
Messages: 970
Registered: July 2009
Location: Boston, MA
Senior Member
GWT Designer issues should be reported to the GWT issue tracker...

General WindowBuilder issues (like exceptions in WB core) should be reported to Eclipse Bugzilla (Tools > WindowBuilder)...
Previous Topic:(no subject)
Next Topic:Help with WindowBuilder Pro XWT Application Wizard
Goto Forum:

Current Time: Fri May 26 13:18:10 GMT 2017

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

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