As I work on my Eclipse e4 RCP Application, I am trying to set a background image. I have attempted adding the property in plugin.xml:
<property
name="applicationCSSResources"
value="platform:/plugin/rcptutorial/image/image.jpg">
In addition, I made sure to create a new folder named "Images" and placed "image.jpg" inside. I also included the following line in default.css:
Shell { background-image: url('./image.jpg');}
Unfortunately, when I run the application, nothing changes. While I can apply a background-color successfully, adding an image seems to be problematic.
If anyone has any insight or suggestions, please share.
The contents of my Plugin.xml are as shown below:
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
<extension
id="product"
point="org.eclipse.core.runtime.products">
<product
name="org.rcptutorial.rcp"
application="org.eclipse.e4.ui.workbench.swt.E4Application">
<property
name="lifeCycleURI"
value="bundleclass://rcptutorial/org.rcptutorial.rcp.E4LifeCycle">
</property>
<property
name="applicationCSS"
value="platform:/plugin/rcptutorial/css/default.css">
</property>
<property
name="applicationCSSResources"
value="platform:/plugin/rcptutorial/images/">
</property>
</product>
</extension>
</plugin>
The content of my default.css is as follows:
Shell { background-image: url('./images/image.jpg');}
In my project, there exists an "images" folder that houses the image "image.jpg".