Bug 113053 - Method setImage(Image) undefined for StatusLineContributionItem
Summary: Method setImage(Image) undefined for StatusLineContributionItem
Status: RESOLVED INVALID
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.1.1   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Platform-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2005-10-19 05:47 EDT by Eunice Tan CLA
Modified: 2007-06-22 10:04 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eunice Tan CLA 2005-10-19 05:47:10 EDT
I am unable to set an image for a status line contribution item.

Snippets of my code:
final StatusLineContributionItem userItem = new 
statusLineContributionItem("statusText");

Image image = new Image(Display.getCurrent(), "E:\\foo.gif");
StatusLineContributionItem item = StatusLineContributionItem) getViewSite().
getActionBars().getStatusLineManager().find("statusText");
item.setImage(image);
item.setText("Connected");

Eclipse will show an error with this message "The method setImage(Image) is 
undefined for the type StatusLineContributionItem".

According to the Eclipse Platform API Specification for 3.1 and 3.0, we are able 
to set an image for a status line contribution item.

Affected Build and Platform:
Version: 3.1.1 Build id: M20050929-0840 on Windows XP SP2
Version: 3.0.2 Build id: 200503110845 on on Windows XP SP2
Comment 1 Kim Horne CLA 2005-11-07 12:28:03 EST
I assume this is referring to the one in Text.  Reassigning.
Comment 2 Dani Megert CLA 2005-11-07 13:30:07 EST
>According to the Eclipse Platform API Specification for 3.1 and 3.0, we are able 
>to set an image for a status line contribution item.
To which spec do you refer?
Comment 3 Dani Megert CLA 2007-06-22 09:58:58 EDT
Get rid of deprecated state.
Comment 4 Dani Megert CLA 2007-06-22 10:04:19 EDT
.