Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Standard SWT Menu Icons
Standard SWT Menu Icons [message #465965] Tue, 27 December 2005 08:09 Go to next message
Eclipse UserFriend
Originally posted by: mikecook.umich.edu

I was just wondering if there is any way to use the standard SWT menu
icons. In particular I would like to get ahold of the "Delete" menu icon
that appears on the pop up menu you get from right clicking in the Package
Explorer in Eclipse.
Re: Standard SWT Menu Icons [message #465969 is a reply to message #465965] Tue, 27 December 2005 15:11 Go to previous messageGo to next message
Jeremy Dowdall is currently offline Jeremy DowdallFriend
Messages: 48
Registered: July 2009
Member
ISharedImages sharedImages = PlatformUI.getWorkbench().getSharedImages();

setImageDescriptor(sharedImages.getImageDescriptor(ISharedIm ages.IMG_TOOL_DELETE));

setDisabledImageDescriptor(sharedImages.getImageDescriptor(I SharedImages.IMG_TOOL_DELETE_DISABLED));


Michael Cook wrote:
> I was just wondering if there is any way to use the standard SWT menu
> icons. In particular I would like to get ahold of the "Delete" menu
> icon that appears on the pop up menu you get from right clicking in the
> Package Explorer in Eclipse.
>
Re: Standard SWT Menu Icons [message #465973 is a reply to message #465969] Tue, 27 December 2005 16:45 Go to previous messageGo to next message
Daniel Spiewak is currently offline Daniel SpiewakFriend
Messages: 263
Registered: July 2009
Senior Member
If you're trying to use these icons in a stand alone app not based on the RCP, you'll have to dig for the pngs in the Eclipse plugins subdirectory. Anyone know where those are?
Re: Standard SWT Menu Icons [message #465974 is a reply to message #465973] Tue, 27 December 2005 17:07 Go to previous message
Jeremy Dowdall is currently offline Jeremy DowdallFriend
Messages: 48
Registered: July 2009
Member
oh yeah, sorry about that :)

you can pull the delete icon and others out of the org.eclipse.ui jar
file (delete is in subdir: /icons/full/etool16/)


there is a lot of repetition with plugins containing the same icons, and
then there's the one you'll search 100 plugins to find... it would be
nice if there was a more organized / uniform approach to this across all
eclipse projects... maybe there is and I've missed it?


Daniel Spiewak wrote:
> If you're trying to use these icons in a stand alone app not based on the RCP, you'll have to dig for the pngs in the Eclipse plugins subdirectory. Anyone know where those are?
Previous Topic:customizing swt widget
Next Topic:Adding a widget in runtime
Goto Forum:
  


Current Time: Tue Nov 25 21:08:39 GMT 2014

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

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