Custom component bean icon

GWT Designer allows you to quickly create the modules, composites, panels, remote services and other elements that comprise Google Web Tookit applications.

Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg

Custom component bean icon

Postby peterblazejewicz » Wed Sep 12, 2007 2:16 pm

hi all,

I'm writing many small custom composites/widgets for various purposes and I'm wondering if there is a way to embed .gif/.png icon resource that could be taken by GWT property editor/palette window somehow. I could assing icon during project authoring but wonder if I could persists it somehow accross projects, etc,

thanks,
regards,
Peter
Peter Blazejewicz
GWT groups profile
peterblazejewicz
 
Posts: 153
Joined: Fri Jul 27, 2007 7:09 pm
Location: Europe/Poland/Warsaw

Re: Custom component bean icon

Postby Eric Clayberg » Thu Sep 13, 2007 3:47 am

peterblazejewicz wrote:I'm writing many small custom composites/widgets for various purposes and I'm wondering if there is a way to embed .gif/.png icon resource that could be taken by GWT property editor/palette window somehow. I could assing icon during project authoring but wonder if I could persists it somehow accross projects, etc

The latest v2.0.1 build will look for a .gif or .png file with the same name as the class in the same package occupied by the class.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Postby peterblazejewicz » Thu Sep 13, 2007 11:29 am

hi Eric,
thanks for looking into that,
I just guess widgets/composites should be jar-red and added to other project classpath. Unfortunately I cannot make it work using just .gif/.png 16x16 or 18x18 icons,
Small step-by-step how-to maybe?

I'm using 2.0.1[20070911f161737] on Eclipse 3.3,

regards,
Peter
Peter Blazejewicz
GWT groups profile
peterblazejewicz
 
Posts: 153
Joined: Fri Jul 27, 2007 7:09 pm
Location: Europe/Poland/Warsaw

Postby Eric Clayberg » Thu Sep 13, 2007 12:16 pm

peterblazejewicz wrote:I'm using 2.0.1[20070911f161737] on Eclipse 3.3

You need to use the latest 2.0.1 build (from earlier today). Support for those images was just added based on your request.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Postby peterblazejewicz » Thu Sep 13, 2007 1:16 pm

hi Eric,
oh, well :D,
thanks,
eager to try,
Peter
Peter Blazejewicz
GWT groups profile
peterblazejewicz
 
Posts: 153
Joined: Fri Jul 27, 2007 7:09 pm
Location: Europe/Poland/Warsaw

Postby peterblazejewicz » Thu Sep 13, 2007 2:10 pm

got it working!
thx Eric and rest of team!
regards,
Peter
Peter Blazejewicz
GWT groups profile
peterblazejewicz
 
Posts: 153
Joined: Fri Jul 27, 2007 7:09 pm
Location: Europe/Poland/Warsaw

Postby Eric Clayberg » Thu Sep 13, 2007 5:30 pm

We're happy to hear that it worked in the field. :-)
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Postby peterblazejewicz » Thu Sep 20, 2007 2:54 pm

Hello,
I've found small issue with current implementation and I'm wonder what it could be.

Whenever event is assigned to widget then in Property Editor widgets tree small "e" circle icon is displayed over widget with assigned listener.
However when my custom icons are used (24-bit, 16x16 pngs) for widget instead of that icon only white circle seems to be appearing over widget icon (something like white circle being painted over icon),

regards,
Peter
Peter Blazejewicz
GWT groups profile
peterblazejewicz
 
Posts: 153
Joined: Fri Jul 27, 2007 7:09 pm
Location: Europe/Poland/Warsaw

Postby Eric Clayberg » Thu Sep 20, 2007 3:12 pm

Can you send us a screen shot a test case?
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Postby peterblazejewicz » Fri Sep 21, 2007 11:53 am

Hello Eric,

yes, no problem,

here is screenshot of design view area and Property Editor area (design test case study project):

Image

I've put red rectangle on property editor tree view. Notice that button with event assigned (default designer icon) shows "has event" icon while selected icon with custom icon has "white hole" painted over it,

regards,
Peter
Peter Blazejewicz
GWT groups profile
peterblazejewicz
 
Posts: 153
Joined: Fri Jul 27, 2007 7:09 pm
Location: Europe/Poland/Warsaw

Postby Eric Clayberg » Sat Sep 22, 2007 6:22 am

We tried it with a custom image, and it worked fine on our end.

Try it again using the latest build to see if that makes any difference.

If not, we will need you to send us the image you are using.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Postby peterblazejewicz » Sat Sep 22, 2007 7:35 pm

hi Eric,

fixed:

Image

tested with version: 2.0.1 [20070922133221]

thanks,
regards,
Peter
Peter Blazejewicz
GWT groups profile
peterblazejewicz
 
Posts: 153
Joined: Fri Jul 27, 2007 7:09 pm
Location: Europe/Poland/Warsaw

Postby Eric Clayberg » Sun Sep 23, 2007 4:58 am

Good news!
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA


Return to GWT Designer

Who is online

Users browsing this forum: No registered users and 3 guests