Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Icons in Preferences Dialog
Icons in Preferences Dialog [message #447594] Tue, 11 April 2006 14:26 Go to next message
Linda Smith is currently offline Linda SmithFriend
Messages: 18
Registered: July 2009
Junior Member
The RCP application we are writing needs to show preferences with icons,
as in the firefox preferences dialog. We will only need to show the
preferences related to our application. Is it possible to customize the
Eclipse Preferences Dialog to show icons on the left hand tree?

Thank you
Linda
Re: Icons in Preferences Dialog [message #447600 is a reply to message #447594] Tue, 11 April 2006 15:59 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: tom.seidel.javawiki.org

Linda Smith wrote:
> The RCP application we are writing needs to show preferences with icons,
> as in the firefox preferences dialog. We will only need to show the
> preferences related to our application. Is it possible to customize the
> Eclipse Preferences Dialog to show icons on the left hand tree?
>
> Thank you
> Linda
Hi Linda,

You can set the Image of the Preference-Title with overwriting the
method #getImage().

The tree in your Preference-Dialog is just a TreeViewer that has a
LabelProvider (@see PreferenceLabelProvider). Write your own
PreferenceLabelProvider, and declare it in the same package
(org.eclipse.jface.preference).

Cheerz,
Tom
Re: Icons in Preferences Dialog [message #447606 is a reply to message #447600] Tue, 11 April 2006 17:51 Go to previous messageGo to next message
Linda Smith is currently offline Linda SmithFriend
Messages: 18
Registered: July 2009
Junior Member
Tom,

Thank you for the quick reply. Can I still do this using the existing
Eclipse Preferences Dialog or do I have to write my own Preferences
Dialog? Since the Preferences Dialog is called from inside of Eclipse,
I am not sure. I was hoping to use the Eclipse's built in Preferences
Dialog, but just getting it to display icons for the preferences.

Thank you
Linda

Tom Seidel wrote:
> Linda Smith wrote:
>
>> The RCP application we are writing needs to show preferences with
>> icons, as in the firefox preferences dialog. We will only need to
>> show the preferences related to our application. Is it possible to
>> customize the Eclipse Preferences Dialog to show icons on the left
>> hand tree?
>>
>> Thank you
>> Linda
>
> Hi Linda,
>
> You can set the Image of the Preference-Title with overwriting the
> method #getImage().
>
> The tree in your Preference-Dialog is just a TreeViewer that has a
> LabelProvider (@see PreferenceLabelProvider). Write your own
> PreferenceLabelProvider, and declare it in the same package
> (org.eclipse.jface.preference).
>
> Cheerz,
> Tom
Re: Icons in Preferences Dialog [message #447770 is a reply to message #447594] Fri, 14 April 2006 21:41 Go to previous message
Mahesh Sooriarachchi is currently offline Mahesh SooriarachchiFriend
Messages: 1
Registered: July 2009
Junior Member
I am trying to do the same thing. You can achieve this by putting an
"icon" attribute in the plugin.xml as shown below. This works, but
unfortunately Eclipse dosent recoginze the "icon" attribute and shown an
error on the plugin.xml file. If you choose "ignore errors" when you
run the plugin you can see the icon being displayed both on the left
hand preference tree and the title of the prefernece page. I'm going to
file a bug on this

<page
icon="icons/cat_prefs.png"
class="com.lggi.sp.client.gui.catalog.CatalogPreferences"
id="com.lggi.sp.client.gui.catalog.CatalogPreferences"
name="Cataloging"/>


Linda Smith wrote:
> The RCP application we are writing needs to show preferences with icons,
> as in the firefox preferences dialog. We will only need to show the
> preferences related to our application. Is it possible to customize the
> Eclipse Preferences Dialog to show icons on the left hand tree?
>
> Thank you
> Linda
Previous Topic:Automating PDE Build
Next Topic:sharing objects in an RCP application
Goto Forum:
  


Current Time: Mon Nov 11 10:56:25 GMT 2024

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

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

Back to the top