[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.platform] Indention when using images in TreeViewer
|
- From: k2snowman69@xxxxxxxxx (Ricky Patel)
- Date: Thu, 12 Feb 2009 05:48:54 +0000 (UTC)
- Newsgroups: eclipse.platform
- Organization: Eclipse
- User-agent: NewsPortal/0.36 (http://florian-amrhein.de/newsportal)
I have a TreeViewer of which the children elements will have images but
the parent elements will not (they receive null as an image). I've noticed
that when the children elements are not shown, the tree looks like the
following:
Parent1
Parent2
But then when I expand the tree the parent item is given space for an icon
though it does not have one so the tree looks like this:
Parent 1
(icon) Child 1
(icon) Child 2
Parent 2
(icon) Child 1
(icon) Child 2
Is there anyway to not have this extra indention of space? Is this a flaw
in ILabelProvider or is it how ILabelProvider is supposed to react? I
assumed that the following would have happened instead...
Parent 1
(icon) Child 1
(icon) Child 2
Parent 2
(icon) Child 1
(icon) Child 2