|
Re: How to open a Papyrus editor programmatically [message #699332 is a reply to message #698676] |
Thu, 21 July 2011 11:27 |
Cedric Dumoulin Messages: 51 Registered: July 2009 |
Member |
|
|
Hi,
Sound like a bug. Can you report it in Bugzilla ?
When starting, Papyrus check if there is some registered
contentOutline. If one or more are found, Papyrus takes the one with the
highest priority. If none is found, Papyrus should fails silently. This
seem to be not the case.
As a workaround, you can try to add the simplest contentoutline
(plugins/other/org.eclipse.papyrus.outline) plugins in your test
environement.
Hope this help,
Cedric
Miles Parker a écrit :
> For testing purposes, I need to be able to open a Papyrus editor
> programmatically. But the usual approach doesn't work. For:
>
> UmlGmfDiagramEditor ed = (UmlGmfDiagramEditor) page.openEditor(input,
> "org.eclipse.papyrus.core.papyrusEditor");
>
> I get:
>
>
> Caused by: org.eclipse.papyrus.core.extension.NotFoundException: No
> ContentOutline registered.
> at
> org.eclipse.papyrus.core.contentoutline.ContentOutlineRegistry.getContentOutlineDescriptor(ContentOutlineRegistry.java:98)
>
> at
> org.eclipse.papyrus.core.contentoutline.ContentOutlineRegistry.createContentOutline(ContentOutlineRegistry.java:112)
>
> at
> org.eclipse.papyrus.core.contentoutline.ContentOutlineRegistry.getContentOutline(ContentOutlineRegistry.java:72)
>
> at
> org.eclipse.papyrus.core.editor.CoreMultiDiagramEditor.getAdapter(CoreMultiDiagramEditor.java:363)
>
> ... 74 more
>
> How should I accomplish this?
>
> thanks,
>
> Miles
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03460 seconds