Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Differences between WINDOW_IMAGES and WINDOW_IMAGE (for a product)
Differences between WINDOW_IMAGES and WINDOW_IMAGE (for a product) [message #400786] Mon, 20 December 2004 06:08 Go to next message
Eclipse UserFriend
I don't understand the differences between WINDOW_IMAGES and
WINDOW_IMAGE properties for the 'org.eclipse.core.runtime.products'
extension.

Except I can specify multiple images in WINDOW_IMAGES, why there are two
properties ? If I use WINDOW_IMAGES, it seems that WINDOW_IMAGE becomes
useless ?

Could somebody explain this point clearly ?

Thanks.

Stephane
Re: Differences between WINDOW_IMAGES and WINDOW_IMAGE (for a product) [message #400787 is a reply to message #400786] Mon, 20 December 2004 05:53 Go to previous messageGo to next message
Eclipse UserFriend
I made a simple test. I put an image named "image1" in WINDOW_IMAGE and
another named "image2" in WINDOW_IMAGES. Only "image2" is used.

So I can now precise my question :
- If the image specified in WINDOW_IMAGE is overriden by WINDOW_IMAGES,
why should I use WINDOW_IMAGE ?
- Several images could be specified in WINDOW_IMAGES, what is the use of
those multiples images and how the application will choose to use one or
another ?

Thanks.

Stephane

Stephane a écrit :

> I don't understand the differences between WINDOW_IMAGES and
> WINDOW_IMAGE properties for the 'org.eclipse.core.runtime.products'
> extension.
>
> Except I can specify multiple images in WINDOW_IMAGES, why there are
> two properties ? If I use WINDOW_IMAGES, it seems that WINDOW_IMAGE
> becomes useless ?
>
> Could somebody explain this point clearly ?
>
> Thanks.
>
> Stephane
Re: Differences between WINDOW_IMAGES and WINDOW_IMAGE (for a product) [message #400790 is a reply to message #400786] Mon, 13 December 2004 09:22 Go to previous messageGo to next message
Eclipse UserFriend
Stephane wrote:

> I don't understand the differences between WINDOW_IMAGES and
> WINDOW_IMAGE properties for the 'org.eclipse.core.runtime.products'
> extension.
>
> Except I can specify multiple images in WINDOW_IMAGES, why there are two
> properties ? If I use WINDOW_IMAGES, it seems that WINDOW_IMAGE becomes
> useless ?
>
> Could somebody explain this point clearly ?
>
> Thanks.
>
> Stephane

Hi,

as far as I know, WINDOW_IMAGE allows you to specify one image (as the name
tells). WINDOW_IMAGES lets you specify multiple images - The point is, that
e.g. on win32 platform images of different resolution are needed. 16x16 for
the application window and somewhat bigger for the task manager.
So in WINDOW_IMAGES you may specify the same image in different resolutions.
If you give it only one, it it scaled as needed.

HTH

Fabian
Re: Differences between WINDOW_IMAGES and WINDOW_IMAGE (for a product) [message #400802 is a reply to message #400790] Tue, 21 December 2004 02:54 Go to previous messageGo to next message
Eclipse UserFriend
This is a multi-part message in MIME format.
--------------040501050407090306070107
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

Thanks. I haven't thought about other uses of icons as 'task manager'.

Finally, I understand that it is better to use WINDOW_IMAGES because the
application doesn't need to resize the icon.

Stephane

Fabian Wolf a
Re: Differences between WINDOW_IMAGES and WINDOW_IMAGE (for a product) [message #400837 is a reply to message #400802] Tue, 21 December 2004 13:17 Go to previous messageGo to next message
Eclipse UserFriend
Yes. WINDOW_IMAGE is just there for backwards compatibility with Eclipse
2.1 and earlier.

The recommendation is to always use WINDOW_IMAGES, and specify both a
16x16 and a 32x32 icon.

Nick

Stephane wrote:
> Thanks. I haven't thought about other uses of icons as 'task manager'.
>
> Finally, I understand that it is better to use WINDOW_IMAGES because the
> application doesn't need to resize the icon.
>
> Stephane
>
> Fabian Wolf a écrit :
>
>>Stephane wrote:
>>
>>
>>
>>>I don't understand the differences between WINDOW_IMAGES and
>>>WINDOW_IMAGE properties for the 'org.eclipse.core.runtime.products'
>>>extension.
>>>
>>>Except I can specify multiple images in WINDOW_IMAGES, why there are two
>>>properties ? If I use WINDOW_IMAGES, it seems that WINDOW_IMAGE becomes
>>>useless ?
>>>
>>>Could somebody explain this point clearly ?
>>>
>>>Thanks.
>>>
>>>Stephane
>>>
>>>
>>
>>Hi,
>>
>>as far as I know, WINDOW_IMAGE allows you to specify one image (as the name
>>tells). WINDOW_IMAGES lets you specify multiple images - The point is, that
>>e.g. on win32 platform images of different resolution are needed. 16x16 for
>>the application window and somewhat bigger for the task manager.
>>So in WINDOW_IMAGES you may specify the same image in different resolutions.
>>If you give it only one, it it scaled as needed.
>>
>>HTH
>>
>>Fabian
>>
>>
Re: Differences between WINDOW_IMAGES and WINDOW_IMAGE (for a product) [message #400838 is a reply to message #400837] Tue, 21 December 2004 13:24 Go to previous message
Eclipse UserFriend
In IProductConstants, I've deprecated WINDOW_IMAGE and added the
following clarification to WINDOW_IMAGES:

* <p>
* It is recommended that products use <code>WINDOW_IMAGES</code>
rather than
* <code>WINDOW_IMAGE</code>, and specify both a 16x16 image and a
32x32 image,
* to ensure that different sizes of the image are available for
different uses
* in the OS. For example, on Windows, the 16x16 image is used in
the corner of
* the window and in the task tray, but the 32x32 image is used in
the Alt+Tab
* application switcher.
* </p>
Previous Topic:Can a view know its secondary id?
Next Topic:Action enablement based on security policy
Goto Forum:
  


Current Time: Thu Nov 06 20:07:58 EST 2025

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

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

Back to the top