Community
Participate
Working Groups
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
I assume this is referring to the one in Text. Reassigning.
>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?
Get rid of deprecated state.
.