Currently working my way through the book "Eclipse 4 Plug-in Development by Example Beginner's Guide", specifically on the section titled "Time for action – styling the UI with CSS".
The guide instructs to edit the "css/default.css" file and add the following code:
Shell {
background-color: blue;
}
However, after following these instructions, I noticed that the background color remained the default greyish shade. How do I go about debugging this issue?
I attempted to use the "CSS Spy" tool for troubleshooting, but I found it difficult to navigate and understand.
Update:
Here is the entirety of my plugin.xml file:
<plugin>
<extension id="product"
point="org.eclipse.core.runtime.products">
<product name="com.packtpub.e4.application"
application="org.eclipse.e4.ui.workbench.swt.E4Application">
<property name="appName" value="com.packtpub.e4.application">
</property>
</product>
</extension>
</plugin>
The section's instructions do not provide details on the necessary configuration within this file. Where can I find more information regarding the required settings for this supposedly "simple" application?
Update:
Upon further investigation, I discovered that the instructions in the book failed to mention the essential "applicationCSS" property setting. Once I manually added this, the issue was resolved.
The suggestion to "specify the CSS name in the .product file" raised additional questions.
I was unsure about the necessity of this step in conjunction with setting the property in the plugin.xml file. The purpose of this additional configuration was not clearly explained, although it seemed redundant with setting the property.
Subsequently, I tried removing the manual setting in the "plugin.xml" file and opted to use the wizard for selecting the file instead. However, even after saving the changes, the property remained unaltered in the plugin.xml file. It was only after clicking a hyperlink in the wizard that the property was correctly populated.
Questions arose regarding the manual synchronization process and the reference to the "org.eclipse.core.runtime.products" extension point. The absence of "Extensions" and "Extension Points" tabs in the wizard for the e4 application further added to the confusion.
Is there any purpose served by the value entered in the wizard other than manually synchronizing the "applicationCSS" property in the plugin.xml file?