当前位置: 动力学知识库 > 问答 > 编程问答 >

java - Exception with xsd editor in RCP Eclipse

问题描述:

I added the XSD editor in my application from org.eclipse.wst.xsd.ui plugin.

But sometimes it work incorrectly. When I try to open a xsd-file at first time I have had an exception like follow:

!ENTRY org.eclipse.ui 4 4 2017-02-17 12:18:17.719

!MESSAGE Unable to initialize part

!STACK 0

java.lang.IllegalArgumentException: can't find IDadditions

at org.eclipse.jface.action.ContributionManager.insertAfter(ContributionManager.java:324)

at org.eclipse.jface.action.SubContributionManager.insertAfter(SubContributionManager.java:137)

at org.eclipse.ui.internal.EditorMenuManager.prependToGroup(EditorMenuManager.java:120)

at org.eclipse.wst.xsd.ui.internal.editor.XSDMultiPageEditorContributor.contributeToMenu(XSDMultiPageEditorContributor.java:207)

at org.eclipse.ui.part.EditorActionBarContributor.init(EditorActionBarContributor.java:169)

at org.eclipse.ui.part.EditorActionBarContributor.init(EditorActionBarContributor.java:148)

at org.eclipse.wst.xsd.ui.internal.editor.XSDMultiPageEditorContributor.init(XSDMultiPageEditorContributor.java:252)

at org.eclipse.ui.internal.EditorReference.createEditorActionBars(EditorReference.java:444)

at org.eclipse.ui.internal.EditorReference.initialize(EditorReference.java:358)

at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:319)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

...

!ENTRY org.eclipse.e4.ui.workbench 4 0 2017-02-17 12:18:17.728

!MESSAGE

!STACK 0

java.lang.NullPointerException

at org.eclipse.wst.xsd.ui.internal.editor.InternalXSDMultiPageEditor.dispose(InternalXSDMultiPageEditor.java:322)

at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.handlePartInitException(CompatibilityPart.java:288)

at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:326)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

...

!ENTRY org.eclipse.ui 4 4 2017-02-17 12:18:17.729

!MESSAGE Unable to create part

!SUBENTRY 1 org.eclipse.ui 4 0 2017-02-17 12:18:17.729

!MESSAGE can't find IDadditions

But next time any xsd-files opens well.

How I can to fix it?

I did not define the editor manually in plugin.xml, if I do it I have another exception every time when I try to open xsd-file.

分享给朋友:
您可能感兴趣的文章:
随机阅读: