Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » getColumnImage
getColumnImage [message #61316] Wed, 21 November 2007 00:12 Go to next message
Andrej Dimic is currently offline Andrej DimicFriend
Messages: 77
Registered: July 2009
Member
Hello

i try to display thumbnails (small pictures) in TableViewer cells.
getColumnImages returns a Image and the row adapts to the supposed size of
the thumbnail, but nothing is shown.

any ideas?
Andrej
Re: getColumnImage [message #61513 is a reply to message #61316] Wed, 21 November 2007 12:03 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: rherrmann.innoopract.com

Hi Andrej,

I just tried to place images in the TableViewerTab of the RAP controls
demo and it worked (return some image in getColumnImage of
PersonLabelProvider).
I have no real clue what could prevent the images from showing up. Could
you provide further information on what exactly you are doing?

Cheers,
Rüdiger

Andrej Dimic wrote:
> Hello
>
> i try to display thumbnails (small pictures) in TableViewer cells.
> getColumnImages returns a Image and the row adapts to the supposed size
> of the thumbnail, but nothing is shown.
>
> any ideas?
> Andrej
>
>
Re: getColumnImage [message #61572 is a reply to message #61513] Wed, 21 November 2007 19:56 Go to previous messageGo to next message
Andrej Dimic is currently offline Andrej DimicFriend
Messages: 77
Registered: July 2009
Member
Hi Rüdiger

yes, i will provide you with more detailed information. But first let me
say that i got it working now but i think there might nevertheless be a
bug.

It observed that the images show up if getColumnImage returns for every
single call a valid Image. But we have the business case that some
tablerows have images, other don't. So we return sometimes a valid Image,
sometimes we return null. And when we do that no images show up. Not even
at rows that do have a image, though strange enough the vertical size of
the row changes to the size of the image, but the cell is empty.

For now, we created a white image and return this one instead of null and
as i said before, it works that way.

is this a bug or am i missing something?
Andrej
Re: getColumnImage [message #61632 is a reply to message #61572] Wed, 21 November 2007 22:21 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: rherrmann.innoopract.com

Hi Andrej,

from what you write it sounds like a bug. Even though I tried various
combinations of rows and columns, with or without images, but couldn't
reproduce it.
If you have a standalone code snippet that reproduces the behavior, you
could file a bug report with the snippet attached.

Thanks,
Rüdiger


Andrej Dimic wrote:
> Hi Rüdiger
>
> yes, i will provide you with more detailed information. But first let me
> say that i got it working now but i think there might nevertheless be a
> bug.
>
> It observed that the images show up if getColumnImage returns for every
> single call a valid Image. But we have the business case that some
> tablerows have images, other don't. So we return sometimes a valid
> Image, sometimes we return null. And when we do that no images show up.
> Not even at rows that do have a image, though strange enough the
> vertical size of the row changes to the size of the image, but the cell
> is empty.
>
> For now, we created a white image and return this one instead of null
> and as i said before, it works that way.
>
> is this a bug or am i missing something?
> Andrej
>
>
Antw: Re: getColumnImage [message #61816 is a reply to message #61632] Thu, 22 November 2007 09:11 Go to previous message
Eclipse UserFriend
Originally posted by: admin.kabe-farben.ch

Hi Rüdiger

i will try to make a snippet for my problem and will file it.

Thanks
Andrej


>>> Rüdiger Herrmann<rherrmann@innoopract.com> schrieb am 21.11.2007 um
23:21
in Nachricht <fi2b0t$von$1@build.eclipse.org>:
> Hi Andrej,
>
> from what you write it sounds like a bug. Even though I tried various
> combinations of rows and columns, with or without images, but couldn't
> reproduce it.
> If you have a standalone code snippet that reproduces the behavior, you
> could file a bug report with the snippet attached.
>
> Thanks,
> Rüdiger
>
>
> Andrej Dimic wrote:
>> Hi Rüdiger
>>
>> yes, i will provide you with more detailed information. But first let me

>
>> say that i got it working now but i think there might nevertheless be a
>> bug.
>>
>> It observed that the images show up if getColumnImage returns for every
>> single call a valid Image. But we have the business case that some
>> tablerows have images, other don't. So we return sometimes a valid
>> Image, sometimes we return null. And when we do that no images show up.
>> Not even at rows that do have a image, though strange enough the
>> vertical size of the row changes to the size of the image, but the cell
>> is empty.
>>
>> For now, we created a white image and return this one instead of null
>> and as i said before, it works that way.
>>
>> is this a bug or am i missing something?
>> Andrej
>>
>>
Previous Topic:Re: [EMF] Generate RAP instead of RCP
Next Topic:Problem during starting Bundle
Goto Forum:
  


Current Time: Fri Apr 26 20:16:09 GMT 2024

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

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

Back to the top