Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » empty icons in an SWT Tree - can the hole be suppressed
empty icons in an SWT Tree - can the hole be suppressed [message #461847] Mon, 03 October 2005 06:53 Go to next message
Francis Upton IV is currently offline Francis Upton IVFriend
Messages: 472
Registered: July 2009
Location: Oakland, CA
Senior Member
I have some tree nodes that don't have icons. The icons correctly don't
appear (when my LabelProvider returns null for the getImage()).

However, it leaves a hole where the icon would normally appear (this is
different than how the Swing tree handles this).

Is there anyway this hole can be eliminated and the text moved further
to the left?

Thanks,

Francis


Re: empty icons in an SWT Tree - can the hole be suppressed [message #461922 is a reply to message #461847] Tue, 04 October 2005 16:59 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: friederich.kupzog.de

Hi,

I do not think that there is a "simple" solution for the problem. I
solved the problem by simply inventing an icon for those entries that
originally did not have an icon.

Maybe this is also an option for you...

Cheers,
Friederich

Francis Upton wrote:
> I have some tree nodes that don't have icons. The icons correctly don't
> appear (when my LabelProvider returns null for the getImage()).
>
> However, it leaves a hole where the icon would normally appear (this is
> different than how the Swing tree handles this).
>
> Is there anyway this hole can be eliminated and the text moved further
> to the left?
>
> Thanks,
>
> Francis


--
Friederich Kupzog
Elektronik & Software
Neusser Str. 5-7
50670 Köln
Tel 0241 160696-1
Fax 0221 726670
www.kupzog.de/fkmk
Re: empty icons in an SWT Tree - can the hole be suppressed [message #462001 is a reply to message #461922] Tue, 04 October 2005 21:29 Go to previous message
Francis Upton IV is currently offline Francis Upton IVFriend
Messages: 472
Registered: July 2009
Location: Oakland, CA
Senior Member
Thanks, I guess I will file an enhancement request for this, so that
people know there is someone interested in it.

Friederich Kupzog wrote:
> Hi,
>
> I do not think that there is a "simple" solution for the problem. I
> solved the problem by simply inventing an icon for those entries that
> originally did not have an icon.
>
> Maybe this is also an option for you...
>
> Cheers,
> Friederich
>
> Francis Upton wrote:
>
>> I have some tree nodes that don't have icons. The icons correctly
>> don't appear (when my LabelProvider returns null for the getImage()).
>>
>> However, it leaves a hole where the icon would normally appear (this
>> is different than how the Swing tree handles this).
>>
>> Is there anyway this hole can be eliminated and the text moved further
>> to the left?
>>
>> Thanks,
>>
>> Francis
>
>
>


Previous Topic:VIRTUAL TableViewer: getting selections
Next Topic:cant see Decorations borders in swt-gtk
Goto Forum:
  


Current Time: Wed Sep 23 23:43:24 GMT 2020

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

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

Back to the top