Cannot extend DDiagramImpl or AbstractSpecificDDiagramEditor [message #1768710] |
Fri, 21 July 2017 16:57  |
Eclipse User |
|
|
|
When I try the following simple class declaration :
public class MyEditor extends AbstractSpecificDDiagramEditor { }
-or-
public class MyEditor extends DDiagramEditorImpl { }
I get this build error: "The hierarchy of the type "MyEditor" is inconsistent"
This error suggests that a plugin dependency references a class that is not accessible. From stack overflow:
"That means class which implemented by you has reference to the interface or class which again references some other classes or interfaces in other libraries and those are not available."
Both DDiagramEditor and AbstractSpecificDDiagramEditor are in:
--- org.eclipse.sirius.diagram.ui --- but it seems like guesswork to know which plugin(s) are needed from here.
Below is a list of my project's current plugin dependencies so the missing plugin(s) must exist somewhere else?
org.eclipse.ui,
org.eclipse.core.runtime,
org.eclipse.sirius,
org.eclipse.emf.transaction,
org.eclipse.sirius.ui,
org.eclipse.ui.ide,
org.eclipse.gef,
org.eclipse.gmf.runtime.diagram.ui,
org.eclipse.sirius.common,
org.eclipse.sirius.diagram,
org.eclipse.ui.navigator,
org.eclipse.jface,
org.eclipse.sirius.ecore.extender;bundle-version="3.1.1",
org.eclipse.emf.mwe.core,
org.eclipse.emf.ecore,
org.eclipse.ui.navigator.resources,
org.eclipse.core.expressions;bundle-version="3.4.600",
org.eclipse.sirius.diagram.ui;bundle-version="3.1.1",
org.eclipse.sirius.ext.base;bundle-version="3.1.1"
[Updated on: Fri, 21 July 2017 21:35] by Moderator
|
|
|
|
|
|
Re: Cannot extend DDiagramImpl or AbstractSpecificDDiagramEditor [message #1769714 is a reply to message #1768893] |
Wed, 02 August 2017 16:37  |
Eclipse User |
|
|
|
Steve,
I considered using the default expression: final IEditorPart editorPart = WorkbenchUtil.getActivePage().openEditor(editorInput, EDITOR_ID); but this looks different than the DialectUIServices#openEditor process. As a bit of an experiment to avoid the need to override any Sirius init code, I set the id for my custom editor to:
"org.eclipse.sirius.diagram.ui.part.SiriusDiagramEditorID"
This was mostly an experiment to see if my editor would be activated instead of its parent class DDiagramEditorImpl which uses the same editor ID. Apparently my editor is in fact the one that gets called... but I'm not familiar enough with the extension point contribution mechanisms to know if this can be considered deterministic.
Regards,
Chris
[Updated on: Wed, 02 August 2017 16:40] by Moderator
|
|
|
Powered by
FUDForum. Page generated in 0.25132 seconds