Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Use xml editor in rcp application
Use xml editor in rcp application [message #198561] Tue, 21 August 2007 10:47 Go to next message
Eclipse User
Originally posted by: wjfang.gmail.com

Hi,

I am creating an RCP application using WST's xml editor. My RCP application
is actually a wrapper of a plug-in that works fine.

When I try to open an xml file in RCP, I came across such an exception:

java.lang.IllegalArgumentException: can't find ID window
at
org.eclipse.jface.action.ContributionManager.insertBefore(Co ntributionManager.java:352)
at
org.eclipse.jface.action.SubContributionManager.insertBefore (SubContributionManager.java:180)
at
org.eclipse.wst.xml.ui.internal.tabletree.XMLTableTreeAction BarContributor.init(XMLTableTreeActionBarContributor.java:99 )
at
org.eclipse.wst.xml.ui.internal.tabletree.XMLTableTreeAction BarContributor.init(XMLTableTreeActionBarContributor.java:89 )
at
org.eclipse.wst.xml.ui.internal.tabletree.SourceEditorAction BarContributor.initDesignViewerActionBarContributor(SourceEd itorActionBarContributor.java:57)
at
org.eclipse.wst.xml.ui.internal.tabletree.XMLMultiPageEditor ActionBarContributor.initDesignViewerActionBarContributor(XM LMultiPageEditorActionBarContributor.java:29)
at
org.eclipse.wst.xml.ui.internal.tabletree.XMLMultiPageEditor ActionBarContributor.setActiveEditor(XMLMultiPageEditorActio nBarContributor.java:87)
at
org.eclipse.wst.xml.ui.internal.tabletree.XMLMultiPageEditor Part.createPages(XMLMultiPageEditorPart.java:551)
at
org.eclipse.ui.part.MultiPageEditorPart.createPartControl(Mu ltiPageEditorPart.java:283)
at
org.eclipse.ui.internal.EditorReference.createPartHelper(Edi torReference.java:661)
at
org.eclipse.ui.internal.EditorReference.createPart(EditorRef erence.java:426)
at
org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:592)
at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:29 9)
at
org.eclipse.ui.internal.presentations.PresentablePart.setVis ible(PresentablePart.java:179)
at
org.eclipse.ui.internal.presentations.util.PresentablePartFo lder.select(PresentablePartFolder.java:268)
at
org.eclipse.ui.internal.presentations.util.LeftToRightTabOrd er.select(LeftToRightTabOrder.java:65)
at
org.eclipse.ui.internal.presentations.util.TabbedStackPresen tation.selectPart(TabbedStackPresentation.java:400)
at
org.eclipse.ui.internal.PartStack.refreshPresentationSelecti on(PartStack.java:1256)
at org.eclipse.ui.internal.PartStack.setSelection(PartStack.jav a:1209)
at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:16 04)
at org.eclipse.ui.internal.PartStack.add(PartStack.java:499)
at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:103 )
at org.eclipse.ui.internal.PartStack.add(PartStack.java:485)
at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:112 )
at
org.eclipse.ui.internal.EditorSashContainer.addEditor(Editor SashContainer.java:63)
at
org.eclipse.ui.internal.EditorAreaHelper.addToLayout(EditorA reaHelper.java:217)
at
org.eclipse.ui.internal.EditorAreaHelper.addEditor(EditorAre aHelper.java:207)
at
org.eclipse.ui.internal.EditorManager.createEditorTab(Editor Manager.java:774)
at
org.eclipse.ui.internal.EditorManager.openEditorFromDescript or(EditorManager.java:673)
at org.eclipse.ui.internal.EditorManager.openEditor(EditorManag er.java:634)
at
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched( WorkbenchPage.java:2719)
at
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Workben chPage.java:2633)
at org.eclipse.ui.internal.WorkbenchPage.access$12(WorkbenchPag e.java:2625)
at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.j ava:2577)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
at
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2572)
at
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2556)
at
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2539)
at
uk.ac.soton.ecs.grimoires.eclipse.browser.GrimoiresBrowserVi ew$9$1.run(GrimoiresBrowserView.java:443)
// my code to open an xml file.

I suspect there might be some required plug-in missing. So I list the
plug-ins installed in the RCP application as follows:

<plugin id="com.ibm.icu"/>
<plugin id="org.apache.xerces"/>
<plugin id="org.apache.xml.resolver"/>
<plugin id="org.eclipse.core.commands"/>
<plugin id="org.eclipse.core.contenttype"/>
<plugin id="org.eclipse.core.databinding"/>
<plugin id="org.eclipse.core.expressions"/>
<plugin id="org.eclipse.core.filebuffers"/>
<plugin id="org.eclipse.core.filesystem"/>
<plugin id="org.eclipse.core.filesystem.win32.x86" fragment="true"/>
<plugin id="org.eclipse.core.jobs"/>
<plugin id="org.eclipse.core.net"/>
<plugin id="org.eclipse.core.resources"/>
<plugin id="org.eclipse.core.resources.compatibility" fragment="true"/>
<plugin id="org.eclipse.core.resources.win32" fragment="true"/>
<plugin id="org.eclipse.core.runtime"/>
<plugin id="org.eclipse.core.runtime.compatibility.registry"
fragment="true"/>
<plugin id="org.eclipse.core.variables"/>
<plugin id="org.eclipse.debug.core"/>
<plugin id="org.eclipse.debug.ui"/>
<plugin id="org.eclipse.emf.common"/>
<plugin id="org.eclipse.emf.ecore"/>
<plugin id="org.eclipse.emf.ecore.xmi"/>
<plugin id="org.eclipse.equinox.app"/>
<plugin id="org.eclipse.equinox.common"/>
<plugin id="org.eclipse.equinox.preferences"/>
<plugin id="org.eclipse.equinox.registry"/>
<plugin id="org.eclipse.help"/>
<plugin id="org.eclipse.jem.util"/>
<plugin id="org.eclipse.jface"/>
<plugin id="org.eclipse.jface.databinding"/>
<plugin id="org.eclipse.jface.text"/>
<plugin id="org.eclipse.osgi"/>
<plugin id="org.eclipse.osgi.util"/>
<plugin id="org.eclipse.search"/>
<plugin id="org.eclipse.swt"/>
<plugin id="org.eclipse.swt.win32.win32.x86" fragment="true"/>
<plugin id="org.eclipse.text"/>
<plugin id="org.eclipse.ui"/>
<plugin id="org.eclipse.ui.console"/>
<plugin id="org.eclipse.ui.editors"/>
<plugin id="org.eclipse.ui.forms"/>
<plugin id="org.eclipse.ui.ide"/>
<plugin id="org.eclipse.ui.views"/>
<plugin id="org.eclipse.ui.win32" fragment="true"/>
<plugin id="org.eclipse.ui.workbench"/>
<plugin id="org.eclipse.ui.workbench.texteditor"/>
<plugin id="org.eclipse.update.configurator"/>
<plugin id="org.eclipse.update.core"/>
<plugin id="org.eclipse.update.core.win32" fragment="true"/>
<plugin id="org.eclipse.update.ui"/>
<plugin id="org.eclipse.wst.common.core"/>
<plugin id="org.eclipse.wst.common.environment"/>
<plugin id="org.eclipse.wst.common.frameworks"/>
<plugin id="org.eclipse.wst.common.project.facet.core"/>
<plugin id="org.eclipse.wst.common.ui"/>
<plugin id="org.eclipse.wst.common.uriresolver"/>
<plugin id="org.eclipse.wst.sse.core"/>
<plugin id="org.eclipse.wst.sse.ui"/>
<plugin id="org.eclipse.wst.validation"/>
<plugin id="org.eclipse.wst.xml.core"/>
<plugin id="org.eclipse.wst.xml.ui"/>
<plugin id="org.junit"/>

Your help is highly appreciated!

Thanks in advance,

Weijian
Re: Use xml editor in rcp application [message #198581 is a reply to message #198561] Tue, 21 August 2007 13:25 Go to previous message
Eclipse User
Originally posted by: wjfang.gmail.com

Solved. xml editor will create a workbench menu before the windows menu. So
the windows menu must be created in rcp.

Thanks.

"Weijian" <wjfang@gmail.com> wrote in message
news:faefs2$3d7$1@build.eclipse.org...
> Hi,
>
> I am creating an RCP application using WST's xml editor. My RCP
> application is actually a wrapper of a plug-in that works fine.
>
> When I try to open an xml file in RCP, I came across such an exception:
>
> java.lang.IllegalArgumentException: can't find ID window
> at
> org.eclipse.jface.action.ContributionManager.insertBefore(Co ntributionManager.java:352)
> at
> org.eclipse.jface.action.SubContributionManager.insertBefore (SubContributionManager.java:180)
> at
> org.eclipse.wst.xml.ui.internal.tabletree.XMLTableTreeAction BarContributor.init(XMLTableTreeActionBarContributor.java:99 )
> at
> org.eclipse.wst.xml.ui.internal.tabletree.XMLTableTreeAction BarContributor.init(XMLTableTreeActionBarContributor.java:89 )
> at
> org.eclipse.wst.xml.ui.internal.tabletree.SourceEditorAction BarContributor.initDesignViewerActionBarContributor(SourceEd itorActionBarContributor.java:57)
> at
> org.eclipse.wst.xml.ui.internal.tabletree.XMLMultiPageEditor ActionBarContributor.initDesignViewerActionBarContributor(XM LMultiPageEditorActionBarContributor.java:29)
> at
> org.eclipse.wst.xml.ui.internal.tabletree.XMLMultiPageEditor ActionBarContributor.setActiveEditor(XMLMultiPageEditorActio nBarContributor.java:87)
> at
> org.eclipse.wst.xml.ui.internal.tabletree.XMLMultiPageEditor Part.createPages(XMLMultiPageEditorPart.java:551)
> at
> org.eclipse.ui.part.MultiPageEditorPart.createPartControl(Mu ltiPageEditorPart.java:283)
> at
> org.eclipse.ui.internal.EditorReference.createPartHelper(Edi torReference.java:661)
> at
> org.eclipse.ui.internal.EditorReference.createPart(EditorRef erence.java:426)
> at
> org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:592)
> at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:29 9)
> at
> org.eclipse.ui.internal.presentations.PresentablePart.setVis ible(PresentablePart.java:179)
> at
> org.eclipse.ui.internal.presentations.util.PresentablePartFo lder.select(PresentablePartFolder.java:268)
> at
> org.eclipse.ui.internal.presentations.util.LeftToRightTabOrd er.select(LeftToRightTabOrder.java:65)
> at
> org.eclipse.ui.internal.presentations.util.TabbedStackPresen tation.selectPart(TabbedStackPresentation.java:400)
> at
> org.eclipse.ui.internal.PartStack.refreshPresentationSelecti on(PartStack.java:1256)
> at org.eclipse.ui.internal.PartStack.setSelection(PartStack.jav a:1209)
> at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:16 04)
> at org.eclipse.ui.internal.PartStack.add(PartStack.java:499)
> at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:103 )
> at org.eclipse.ui.internal.PartStack.add(PartStack.java:485)
> at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:112 )
> at
> org.eclipse.ui.internal.EditorSashContainer.addEditor(Editor SashContainer.java:63)
> at
> org.eclipse.ui.internal.EditorAreaHelper.addToLayout(EditorA reaHelper.java:217)
> at
> org.eclipse.ui.internal.EditorAreaHelper.addEditor(EditorAre aHelper.java:207)
> at
> org.eclipse.ui.internal.EditorManager.createEditorTab(Editor Manager.java:774)
> at
> org.eclipse.ui.internal.EditorManager.openEditorFromDescript or(EditorManager.java:673)
> at
> org.eclipse.ui.internal.EditorManager.openEditor(EditorManag er.java:634)
> at
> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched( WorkbenchPage.java:2719)
> at
> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Workben chPage.java:2633)
> at
> org.eclipse.ui.internal.WorkbenchPage.access$12(WorkbenchPag e.java:2625)
> at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.j ava:2577)
> at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
> at
> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2572)
> at
> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2556)
> at
> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2539)
> at
> uk.ac.soton.ecs.grimoires.eclipse.browser.GrimoiresBrowserVi ew$9$1.run(GrimoiresBrowserView.java:443)
> // my code to open an xml file.
>
> I suspect there might be some required plug-in missing. So I list the
> plug-ins installed in the RCP application as follows:
>
> <plugin id="com.ibm.icu"/>
> <plugin id="org.apache.xerces"/>
> <plugin id="org.apache.xml.resolver"/>
> <plugin id="org.eclipse.core.commands"/>
> <plugin id="org.eclipse.core.contenttype"/>
> <plugin id="org.eclipse.core.databinding"/>
> <plugin id="org.eclipse.core.expressions"/>
> <plugin id="org.eclipse.core.filebuffers"/>
> <plugin id="org.eclipse.core.filesystem"/>
> <plugin id="org.eclipse.core.filesystem.win32.x86" fragment="true"/>
> <plugin id="org.eclipse.core.jobs"/>
> <plugin id="org.eclipse.core.net"/>
> <plugin id="org.eclipse.core.resources"/>
> <plugin id="org.eclipse.core.resources.compatibility" fragment="true"/>
> <plugin id="org.eclipse.core.resources.win32" fragment="true"/>
> <plugin id="org.eclipse.core.runtime"/>
> <plugin id="org.eclipse.core.runtime.compatibility.registry"
> fragment="true"/>
> <plugin id="org.eclipse.core.variables"/>
> <plugin id="org.eclipse.debug.core"/>
> <plugin id="org.eclipse.debug.ui"/>
> <plugin id="org.eclipse.emf.common"/>
> <plugin id="org.eclipse.emf.ecore"/>
> <plugin id="org.eclipse.emf.ecore.xmi"/>
> <plugin id="org.eclipse.equinox.app"/>
> <plugin id="org.eclipse.equinox.common"/>
> <plugin id="org.eclipse.equinox.preferences"/>
> <plugin id="org.eclipse.equinox.registry"/>
> <plugin id="org.eclipse.help"/>
> <plugin id="org.eclipse.jem.util"/>
> <plugin id="org.eclipse.jface"/>
> <plugin id="org.eclipse.jface.databinding"/>
> <plugin id="org.eclipse.jface.text"/>
> <plugin id="org.eclipse.osgi"/>
> <plugin id="org.eclipse.osgi.util"/>
> <plugin id="org.eclipse.search"/>
> <plugin id="org.eclipse.swt"/>
> <plugin id="org.eclipse.swt.win32.win32.x86" fragment="true"/>
> <plugin id="org.eclipse.text"/>
> <plugin id="org.eclipse.ui"/>
> <plugin id="org.eclipse.ui.console"/>
> <plugin id="org.eclipse.ui.editors"/>
> <plugin id="org.eclipse.ui.forms"/>
> <plugin id="org.eclipse.ui.ide"/>
> <plugin id="org.eclipse.ui.views"/>
> <plugin id="org.eclipse.ui.win32" fragment="true"/>
> <plugin id="org.eclipse.ui.workbench"/>
> <plugin id="org.eclipse.ui.workbench.texteditor"/>
> <plugin id="org.eclipse.update.configurator"/>
> <plugin id="org.eclipse.update.core"/>
> <plugin id="org.eclipse.update.core.win32" fragment="true"/>
> <plugin id="org.eclipse.update.ui"/>
> <plugin id="org.eclipse.wst.common.core"/>
> <plugin id="org.eclipse.wst.common.environment"/>
> <plugin id="org.eclipse.wst.common.frameworks"/>
> <plugin id="org.eclipse.wst.common.project.facet.core"/>
> <plugin id="org.eclipse.wst.common.ui"/>
> <plugin id="org.eclipse.wst.common.uriresolver"/>
> <plugin id="org.eclipse.wst.sse.core"/>
> <plugin id="org.eclipse.wst.sse.ui"/>
> <plugin id="org.eclipse.wst.validation"/>
> <plugin id="org.eclipse.wst.xml.core"/>
> <plugin id="org.eclipse.wst.xml.ui"/>
> <plugin id="org.junit"/>
>
> Your help is highly appreciated!
>
> Thanks in advance,
>
> Weijian
>
>
Previous Topic:need tutorial
Next Topic:Cannot create web project
Goto Forum:
  


Current Time: Mon Oct 20 11:41:54 GMT 2014

Powered by FUDForum. Page generated in 0.09610 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software