Skip to main content


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="http://www.instantiations.com/D2/WBPComponent">
...
<methods>
<method name="addListner">
<parameter type="com.services.MyService1">
<editor id="serviceEditor">
</parameter>
<parameter type="com.services.MyService1">
<editor id="serviceEditor">
</parameter>
</method>
</methods>
<method-property title="service" method="setService(com.services.MyService1,com.services.MyService2)"/>
</component>

For this purpose i developped the servicePropertyEditor which extends AbstractComboPropertyEditor which is located in the package "org.eclipse.wb.internal.core.model.property.editor".

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

Oussema



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.


Konstantin Scheglov,
Google, Inc.
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: 979
Registered: July 2009
Location: Boston, MA
Senior Member
GWT Designer issues should be reported to the GWT issue tracker...

http://code.google.com/webtoolkit/lifeofanissue.html

http://code.google.com/p/google-web-toolkit/issues/list

General WindowBuilder issues (like exceptions in WB core) should be reported to Eclipse Bugzilla (Tools > WindowBuilder)...

https://bugs.eclipse.org/bugs/
Previous Topic:(no subject)
Next Topic:Help with WindowBuilder Pro XWT Application Wizard
Goto Forum:
  


Current Time: Thu Apr 25 02:00:11 GMT 2024

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

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

Back to the top