Eclipse 2019-03

See also https://www-acc.gsi.de/wiki/FESA/FESA3Eclipse2018-12Plugin

Available for testing on vmlb020, asl744.

Trouble

class cern.fesa.plugin.editor.DesignClassEditor cannot be cast to class org.eclipse.ui.IEditorPart (cern.fesa.plugin.editor.DesignClassEditor is in unnamed module of loader org.eclipse.osgi.internal.loader.EquinoxClassLoader @2a57c508; org.eclipse.ui.IEditorPart is in unnamed module of loader org.eclipse.osgi.internal.loader.EquinoxClassLoader @7c4eecfc)
    • adding module-info.java is no solution because the module system does not allow split packages (e.g. fesa.plugin.model / fesa.plugin.model.gsi or fesa.plugin.control / fesa.plugin.control.gsi export the same packages)
  • Build within eclipse leads to following error:
/common/home/bel/matthies/lnx/eclipse-2019-03/.metadata/.plugins/org.eclipse.pde.core/temp/org.eclipse.pde.container.feature/compile.org.eclipse.pde.container.feature.xml:4: The following error occurred while executing this line:
/common/home/bel/matthies/lnx/eclipse-2019-03/fesa.plugin.ui/build.xml:324: The following error occurred while executing this line:
/common/home/bel/matthies/lnx/eclipse-2019-03/fesa.plugin.ui/build.xml:264: java.lang.reflect.InvocationTargetException
The following error occurred while executing this line:
/common/home/bel/matthies/lnx/eclipse-2019-03/fesa.plugin.ui/build.xml:324: The following error occurred while executing this line:
/common/home/bel/matthies/lnx/eclipse-2019-03/fesa.plugin.ui/build.xml:264: java.lang.reflect.InvocationTargetException

Solutions

  • a few code changes are required, ElementImpl, AttrImpl should not be used anymore in fesa.plugin.ui
  • possible solution to allow debugging of plug-in's sources:
    • don't use maven build within eclipse, it does not properly work; stick to the 'old' way to build the plg-in within eclipse for debugging purposes
    • keep required libraries in fesa.plugin.ui/META-INF/MANIFEST.MF in Bundle-Classpath
    • remove troublesome libraries from project classpath
    • exclude the troublesome libraries from the maven dependencies in pom.xml for release build

-- SolveighMatthies - 29 Mar 2019
Topic revision: r8 - 16 May 2019, SolveighMatthies
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback