Programmatically Opening Diagram Errors [message #1714402] |
Thu, 12 November 2015 07:44  |
Eclipse User |
|
|
|
Hello,
I just recently upgraded to Sirius 3.1 from running Sirius 2.0.5 and I am having some problems with opening my diagram programmatically. When I try and open it using the DialectUIManager.INSTANCE.openEditor() command, I get an error:
org.eclipse.ui.PartInitException: Unable to open editor, unknown editor ID: 'org.eclipse.sirius.diagram.ui.part.SiriusDiagramEditorID'
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:3178)
at org.eclipse.ui.internal.WorkbenchPage.access$25(WorkbenchPage.java:3149)
at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:3131)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:3126)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:3090)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:3071)
at org.eclipse.sirius.diagram.ui.business.internal.dialect.DiagramDialectUIServices$1.run(DiagramDialectUIServices.java:206)
From further investigation that string ID(org.eclipse.sirius.diagram.ui.part.SiriusDiagramEditorID) is not something I can set or can change.
I am not sure if something changed in the process that I am supposed to use to open a diagram programmatically but this used to work fine in Sirius 2.0.5.
Can you help.
Thanks,
Bailey
|
|
|
Re: Programmatically Opening Diagram Errors [message #1714408 is a reply to message #1714402] |
Thu, 12 November 2015 08:00   |
Eclipse User |
|
|
|
Le 12/11/2015 13:44, Bailey Trenton a écrit :
> Hello,
> I just recently upgraded to Sirius 3.1 from running Sirius 2.0.5 and
> I am having some problems with opening my diagram programmatically.
> When I try and open it using the DialectUIManager.INSTANCE.openEditor()
> command, I get an error:
>
> org.eclipse.ui.PartInitException: Unable to open editor, unknown editor
> ID: 'org.eclipse.sirius.diagram.ui.part.SiriusDiagramEditorID'
Hi,
This looks like an unintended side-effect of bug #456771 "Split UI
contributions into optional plug-ins", where we moved most UI-related
contributions (via the various plugin.xml) into new plug-ins. The idea
was to allow people to consume the core of Sirius without having all the
UI contributions enabled (all the views, perspectives, context menus etc.).
Apparently we were a little overzealous and moved the editor
contribution too, even though its registration does not risk cluttering
the UI and is not optional (like you discovered).
For the time being, a simple fix on you side would be to add an explicit
dependency towards org.eclipse.sirius.diagram.ui.ext (and all the new
*.ext plug-ins for that matter), and confirm if this fixes your issue.
If it does, we'll reopen the ticket (or create a new one) to fix this
and review the other changes made for #456771 for potential similar issues.
Note that this should not affect people who depend the Sirius features
(as opposed to individual plug-ins), and the features in 3.0 include the
new *.ext plug-ins.
Sorry for the inconvenience,
Pierre-Charles
--
Pierre-Charles David - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
|
Re: Programmatically Opening Diagram Errors [message #1714431 is a reply to message #1714411] |
Thu, 12 November 2015 11:12  |
Eclipse User |
|
|
|
Le 12/11/2015 14:23, Bailey Trenton a écrit :
> Hello,
> Adding all the ext plugins did fix the issue and the diagram does
> open. So you may want to reopen/create a new ticket if this is not the
> desired solution.
Thanks for the confirmation. I've opened bug #482029 for this (it will
probably be cloned to backport on 3.0.x and 3.1.x in addition to master).
--
Pierre-Charles David - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
Powered by
FUDForum. Page generated in 0.03302 seconds