Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Missing Icons/Images in ISharedImages ?
Missing Icons/Images in ISharedImages ? [message #650851] Wed, 26 January 2011 20:23 Go to next message
Marc T. is currently offline Marc T.Friend
Messages: 17
Registered: November 2009
Junior Member
Hallo,

I'm trying to use a shared image like:

ISharedImages isi = PlatformUI.getWorkbench().getSharedImages();

this.action_collapseAll.setImageDescriptor(isi
.getImageDescriptor(ISharedImages.IMG_ELCL_COLLAPSEALL));

this.action_collapseAll.setText("Collapse All");
this.action_collapseAll.setToolTipText("Collapse All");


If I show this action in the View's action bar, I don't get the icon, but the text 'Collapse All'.

But if I try:

ISharedImages.IMG_OBJ_ELEMENT

The icon appears.

Is the image IMG_ELCL_COLLAPSEALL missing somehow ?

Regards

Marc



Re: Missing Icons/Images in ISharedImages ? [message #650982 is a reply to message #650851] Thu, 27 January 2011 11:20 Go to previous messageGo to next message
Marc T. is currently offline Marc T.Friend
Messages: 17
Registered: November 2009
Junior Member
By investigating and debugging further into the RAP jars, I dare to say, that:

1. The icon gif is present in file org.eclipse.rap.ui.1.3.1.20100915-2301.jar

2. IMG_ELCL_COLLAPSEALL is NOT contained in Map returned by org.eclipse.ui.internal.WorkbenchImages.getDescriptors()

This is a kind of incompatibility between RCP and RAP, which seems to be unnecessary. Or do I miss something here ?

Best regards

Marc
Re: Missing Icons/Images in ISharedImages ? [message #651066 is a reply to message #650851] Thu, 27 January 2011 16:07 Go to previous message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi Marc,
just checked it with RAP from CVS HEAD and it works fine. Could you try
the CVS HEAD version too?
Best,
Ivan

On 1/26/2011 10:24 PM, Marc42 wrote:
> Hallo,
>
> I'm trying to use a shared image like:
>
> ISharedImages isi = PlatformUI.getWorkbench().getSharedImages();
>
> this.action_collapseAll.setImageDescriptor(isi
> getImageDescriptor(ISharedImages.IMG_ELCL_COLLAPSEALL));
>
> this.action_collapseAll.setText("Collapse All");
> this.action_collapseAll.setToolTipText("Collapse All");
>
>
> If I show this action in the View's action bar, I don't get the icon,
> but the text 'Collapse All'.
>
> But if I try:
>
> ISharedImages.IMG_OBJ_ELEMENT
>
> The icon appears.
>
> Is the image IMG_ELCL_COLLAPSEALL missing somehow ?
>
> Regards
>
> Marc
>
>
>
>
Previous Topic:Tabbed browsing + FORM-authentication
Next Topic:Google Visualization API
Goto Forum:
  


Current Time: Fri Apr 19 11:08:25 GMT 2024

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

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

Back to the top