facebook

Theme is not working with runtimeEclipse on Windows

  1. DevStyle
  2.  > 
  3. Theme Problems
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #595001 Reply

    helospark
    Participant

    Background
    Recently I was debugging some Windows specific theme related issue here:
    https://www.genuitec.com/forums/topic/missing-checkboxtableviewer-on-windows/

    I noticed that when I try to run an Eclipse plugin from IDE, in the new runtime Eclipse window (created by run as -> Eclipse application) no Devstyle theme is present, even though preference for Devstyle plugin is visible.
    This issue only happens in Eclipse Photon, works as expected on Eclipse Oxygen.

    Repro
    – Be on a Windows machine with a fresh Eclipse Photon installed with the latest darkest-dark theme and Plugin development environment plugin installed
    – Have an Eclipse plugin’s source open in IDE (it can be any plugin, ex. Hello world sample plugin)
    – Right click on project -> Run as -> Eclipse application
    – Observe that in the new Eclipse window the Devstyle theme is not working and there is no welcome screen

    Expected
    All plugins should be loaded in the new Eclipse window that are present in the main Eclipse window including Devstyle theme.

    Notes
    It may be related to the following exceptions visible in the log:

    
    java.net.MalformedURLException
    	at java.net.URL.<init>(Unknown Source)
    	at java.net.URL.<init>(Unknown Source)
    	at java.net.URL.<init>(Unknown Source)
    	at org.eclipse.e4.ui.css.core.impl.engine.AbstractCSSEngine.parseStyleSheet(AbstractCSSEngine.java:210)
    	at org.eclipse.e4.ui.css.swt.internal.theme.ThemeEngine.setTheme(ThemeEngine.java:456)
    	at org.eclipse.e4.ui.css.swt.internal.theme.ThemeEngine.resetCurrentTheme(ThemeEngine.java:621)
    	at com.genuitec.eclipse.theming.ui.internal.DevStyleThemeActivationTracker.applyCssForTargetTheme(DevStyleThemeActivationTracker.java:678)
    	at com.genuitec.eclipse.theming.ui.internal.DevStyleThemeActivationTracker.handleEvent(DevStyleThemeActivationTracker.java:405)
    ....
    Caused by: java.lang.NullPointerException
    

    and

    
    java.lang.NoSuchFieldException: devstylePreferenceFilter
    	at java.lang.Class.getDeclaredField(Unknown Source)
    	at com.genuitec.eclipse.theming.ui.internal.DevStyleThemeActivationTracker.prepareOomphExclusions(DevStyleThemeActivationTracker.java:765)
        ....
    

    This issue makes finding theme related issues more difficult, but most likely not affect other users.
    I’m not entirely sure, why it does not work during development but works when it is regularly installed to Photon.
    Maybe during debugging plugin something starts with wrong run-level?

    Versions
    Eclipse: Photon 20180619-1200
    Windows: 7 and 10
    Devstyle: Latest (as of 2018.08.06)

    Thanks

    #595045 Reply

    support-swapna
    Moderator

    helospark,

    Thank you for the detailed steps to replicate the problem.
    You should set the run level for com.genuitec.eclipse.patches in your launch configuration to 2 to fix the problem.

    Switch to the Plug-ins tab in your launch config window, set the Launch with to ‘plugins selected below only’ to view the plugins list, search for com.genuitec.eclipse.patches and set the Start Level to 2. Apply the changes and run it. Attached is the screenshot for your reference.

    Hope this helps. Please let us know how it works for you.

    –Swapna
    Genuitec Support

    #595062 Reply

    helospark
    Participant

    Thanks Swapna, it is working perfectly.

    #595261 Reply

    support-swapna
    Moderator

    Glad that it works. Thank you for getting back to us.
    Please let us know if you see any other issues.

    –Swapna
    Genuitec Support

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Theme is not working with runtimeEclipse on Windows

You must be logged in to post in the forum log in