Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » How to fetch system stadard icons (for cut, copy, paste ...)?
How to fetch system stadard icons (for cut, copy, paste ...)? [message #458681] Tue, 19 July 2005 08:20 Go to next message
Eclipse UserFriend
Originally posted by: sarek.nurfuerspam.de

Hi,

we are searching for a way to fetch the system standard icons for
certain operations like cut, copy, paste and if possible for a
folder/directory etc.

So we want to get the icon like it would be displayed in windows
explorer, gnome's nautilus and so on.

I have not found any hint on how to achieve this. Can anyone of you help?

TIA

Christian

--
To reply to this posting directly use the following address and
remove the 'NO-SPAM' part: Riedel.Christian.NO-SPAM@gmx.net
Re: How to fetch system stadard icons (for cut, copy, paste ...)? [message #458684 is a reply to message #458681] Tue, 19 July 2005 09:29 Go to previous messageGo to next message
Robert Bacs is currently offline Robert BacsFriend
Messages: 165
Registered: July 2009
Senior Member
See getSystemImage() method in Display class.

Regards,
Boby

"Christian Riedel" <sarek@nurfuerspam.de> wrote in message
news:dbicn2$q3n$1@news.eclipse.org...
> Hi,
>
> we are searching for a way to fetch the system standard icons for
> certain operations like cut, copy, paste and if possible for a
> folder/directory etc.
>
> So we want to get the icon like it would be displayed in windows
> explorer, gnome's nautilus and so on.
>
> I have not found any hint on how to achieve this. Can anyone of you help?
>
> TIA
>
> Christian
>
> --
> To reply to this posting directly use the following address and
> remove the 'NO-SPAM' part: Riedel.Christian.NO-SPAM@gmx.net
Re: How to fetch system stadard icons (for cut, copy, paste ...)? [message #458688 is a reply to message #458684] Tue, 19 July 2005 12:55 Go to previous messageGo to next message
Benjamin Pasero is currently offline Benjamin PaseroFriend
Messages: 337
Registered: July 2009
Senior Member
Robert Bacs wrote:
> See getSystemImage() method in Display class.

Afaik that does only cover system icons for Error, Information,
Question, Warning and Working as defined in SWT Constants.

Another way to retrieve some OS Icons is using

Program.getImageData()

Ben

>
> Regards,
> Boby
>
> "Christian Riedel" <sarek@nurfuerspam.de> wrote in message
> news:dbicn2$q3n$1@news.eclipse.org...
>
>>Hi,
>>
>>we are searching for a way to fetch the system standard icons for
>>certain operations like cut, copy, paste and if possible for a
>>folder/directory etc.
>>
>>So we want to get the icon like it would be displayed in windows
>>explorer, gnome's nautilus and so on.
>>
>>I have not found any hint on how to achieve this. Can anyone of you help?
>>
>>TIA
>>
>>Christian
>>
>>--
>>To reply to this posting directly use the following address and
>>remove the 'NO-SPAM' part: Riedel.Christian.NO-SPAM@gmx.net
>
>
>
Re: How to fetch system stadard icons (for cut, copy, paste ...)? [message #458693 is a reply to message #458688] Tue, 19 July 2005 15:07 Go to previous messageGo to next message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
See also:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=64138


"Benjamin Pasero" <bpasero@rssowl.org> wrote in message
news:dbit8o$gr4$1@news.eclipse.org...
> Robert Bacs wrote:
>> See getSystemImage() method in Display class.
>
> Afaik that does only cover system icons for Error, Information,
> Question, Warning and Working as defined in SWT Constants.
>
> Another way to retrieve some OS Icons is using
>
> Program.getImageData()
>
> Ben
>
>>
>> Regards,
>> Boby
>>
>> "Christian Riedel" <sarek@nurfuerspam.de> wrote in message
>> news:dbicn2$q3n$1@news.eclipse.org...
>>
>>>Hi,
>>>
>>>we are searching for a way to fetch the system standard icons for
>>>certain operations like cut, copy, paste and if possible for a
>>>folder/directory etc.
>>>
>>>So we want to get the icon like it would be displayed in windows
>>>explorer, gnome's nautilus and so on.
>>>
>>>I have not found any hint on how to achieve this. Can anyone of you help?
>>>
>>>TIA
>>>
>>>Christian
>>>
>>>--
>>>To reply to this posting directly use the following address and
>>>remove the 'NO-SPAM' part: Riedel.Christian.NO-SPAM@gmx.net
>>
>>
Re: How to fetch system stadard icons (for cut, copy, paste ...)? [message #458694 is a reply to message #458688] Tue, 19 July 2005 15:09 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Christian.Riedel.informatik.uni-oldenburg.de

Hi, and thanks for yours answers ...

On 19.07.2005 14:55, Benjamin Pasero wrote:
> Robert Bacs wrote:
>
>> See getSystemImage() method in Display class.
>
>
> Afaik that does only cover system icons for Error, Information,
> Question, Warning and Working as defined in SWT Constants.

That was what I learned as well ... it is only for standard dialog icons :-(

> Another way to retrieve some OS Icons is using
>
> Program.getImageData()
>

I don't think, that will do it. Afaik Program.getImageData() only gets
icons for filetypes that they are associated with (like an X-icon for
*.xls files, the winamp symbol for *.mp3 and so on)

What I was actually searching for, is a way to get the standard icons
for system operations like cut, copy, paste, ... (The icons that are
displayed in the toolbar in windows explorer for example. But - as they
are standard icons - they are also shown in the toolbar in MS-Word,
Excel etc.)

I think these icons are stored in system32.dll under windows, but of
course simply extracting them from there is no option, since I want to
have the icons, that are standard for a certain platform. Under Linux
for example, I want gnome's icons to be diplayed.

Hope you understand what I mean ...

Any further hints?

Christian
Re: How to fetch system stadard icons (for cut, copy, paste ...)? [message #458697 is a reply to message #458693] Tue, 19 July 2005 15:21 Go to previous message
Eclipse UserFriend
Originally posted by: sarek.nurfuerspam.de

Hi,

On 19.07.2005 17:07, Veronika Irvine wrote:
> See also:
>
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=64138
>

So if I interpret this correctly, there is currently no way to achieve
this by simple SWT means? Does anyone know of any extra library that
might be of help?

Christian

--
To reply to this posting directly use the following address and
remove the 'NO-SPAM' part: Riedel.Christian.NO-SPAM@gmx.net
Previous Topic:"Free" Eclipse cookbook has a catch
Next Topic:SashForm/Scroll Bars problem
Goto Forum:
  


Current Time: Wed Oct 21 11:21:22 GMT 2020

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

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

Back to the top