- This topic has 3 replies, 2 voices, and was last updated 6 years, 4 months ago by support-swapna.
-
AuthorPosts
-
helosparkParticipantBackground
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 screenExpected
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
support-swapnaModeratorhelospark,
Thank you for the detailed steps to replicate the problem.
You should set the run level forcom.genuitec.eclipse.patches
in your launch configuration to2
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
helosparkParticipantThanks Swapna, it is working perfectly.
support-swapnaModeratorGlad that it works. Thank you for getting back to us.
Please let us know if you see any other issues.–Swapna
Genuitec Support -
AuthorPosts