IBM Support

RCP: How to change the Header Logo image of the application?

Question & Answer


Question

RCP: How to change the Header Logo image of the application?

Answer

For applications using the RCP framework, it is possible to set a custom header logo image by editing the theme file used by the RCP application. In the theme file, the image path property would need to be set. Here's how it can be achieved:

<Theme id="jade">
    <ThemeEntry Name="HeaderLogo">
        <Image Path="/icons/yantra_header.jpg"/>
    </ThemeEntry>
</Theme>

The custom logo/icon should be placed under the com.yantra.pca.ycd.rcp_1.0.0/icons folder. The theme files are present in the com.yantra.yfc.rcp_1.0.0 folder. If the RCP application is extended, a theme file should be registered in the plugin java file of the plug-in project using the registerTheme() method as shown below.

YRCPlatformUI.registerTheme("<file_name>_<themename>", ID);

[{"Product":{"code":"SS6PEW","label":"IBM Sterling Order Management"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"Extensions","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}},{"Product":{"code":"SS6PEW","label":"IBM Sterling Order Management"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"Adapters","Platform":[{"code":"","label":""}],"Version":"","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}},{"Product":{"code":"SS6PEW","label":"IBM Sterling Order Management"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"Mapping and Translation","Platform":[{"code":"","label":""}],"Version":"","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Historical Number

HTG2820

Document Information

Modified date:
16 June 2018

UID

swg21562417