Sumit
Sumit

Reputation: 129

Where to set the theme for an Eclipse-based application?

I have created an Eclipse plugin application which is having one *.product file. For running this application I have to right-click on the application then run/debug as Eclipse application then my app will open and its having same theme as my Eclipse workspace.

The requirement is to set an Eclipse theme like Moonrise for this Eclipse plugin application not for workspace, so I am not getting where to save or change the theme for this plugin.

Any help whould be appreciate. Below is the image for the product file:

enter image description here

Upvotes: 3

Views: 1564

Answers (1)

howlger
howlger

Reputation: 34255

This is done via the org.eclipse.core.runtime.products extension point and the product property cssTheme in the plugin.xml file where your product is specified (in your case com.testlid.main.ui/plugin.xml):

<extension id="product"
           point="org.eclipse.core.runtime.products">
  <product name="%product.name"
           application="org.eclipse.ui.ide.workbench"
           description="%product.description">
    <!-- ... -->
    <property name="cssTheme"
              value="com.github.eclipseuitheme.themes.moonrise-ui.standalone"/>
    <!-- ... -->
  </product>
</extension>

See also:

Upvotes: 1

Related Questions