Eclipse 3.1M5a中创建RCP程序

展开阅读全文

RCP程序如何使用eclipse的office编辑器?

09-14

自己做了一个导航器,采用IDE.openEditor()调用编辑器,但是会出现以下错误。请教一下各位高手应该怎样才能够正常使用Eclipse下的office编辑器,实在不行的话请各位高手推荐一款其他的office编辑器插件,小弟我不甚感激啊!rnCould not open the editor: An unexpected exception was thrown.rnjava.lang.NullPointerExceptionrn at org.eclipse.ui.internal.editorsupport.win32.OleEditor.initializeWorkbenchMenus(OleEditor.java:512)rn at org.eclipse.ui.internal.editorsupport.win32.OleEditor.createPartControl(OleEditor.java:227)rn at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:662)rn at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:462)rn at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595)rn at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:313)rn at org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:180)rn at org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(PresentablePartFolder.java:270)rn at org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftToRightTabOrder.java:65)rn at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(TabbedStackPresentation.java:473)rn at org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:1256)rn at org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:1209)rn at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:1608)rn at org.eclipse.ui.internal.PartStack.add(PartStack.java:499)rn at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:103)rn at org.eclipse.ui.internal.PartStack.add(PartStack.java:485)rn at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:112)rn at org.eclipse.ui.internal.EditorSashContainer.addEditor(EditorSashContainer.java:63)rn at org.eclipse.ui.internal.EditorAreaHelper.addToLayout(EditorAreaHelper.java:225)rn at org.eclipse.ui.internal.EditorAreaHelper.addEditor(EditorAreaHelper.java:213)rn at org.eclipse.ui.internal.EditorManager.createEditorTab(EditorManager.java:778)rn at org.eclipse.ui.internal.EditorManager.openEditorFromDescriptor(EditorManager.java:677)rn at org.eclipse.ui.internal.EditorManager.openEditor(EditorManager.java:638)rn at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2854)rn at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2762)rn at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2754)rn at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2705)rn at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)rn at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2701)rn at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2685)rn at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2676)rn at org.eclipse.ui.ide.IDE.openEditor(IDE.java:651)rn at org.eclipse.ui.ide.IDE.openEditor(IDE.java:610)rn at com.coretek.ui.fawperspective.view.MyNavigatorView.handleDoubleClick(MyNavigatorView.java:267)rn at com.coretek.ui.fawperspective.view.MyNavigatorView$5.doubleClick(MyNavigatorView.java:216)rn at org.eclipse.jface.viewers.StructuredViewer$1.run(StructuredViewer.java:821)rn at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)rn at org.eclipse.core.runtime.Platform.run(Platform.java:888)rn at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:48)rn at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)rn at org.eclipse.jface.viewers.StructuredViewer.fireDoubleClick(StructuredViewer.java:819)rn at org.eclipse.jface.viewers.AbstractTreeViewer.handleDoubleSelect(AbstractTreeViewer.java:1419)rn at org.eclipse.jface.viewers.StructuredViewer$4.widgetDefaultSelected(StructuredViewer.java:1195)rn at org.eclipse.jface.util.OpenStrategy.fireDefaultSelectionEvent(OpenStrategy.java:238)rn at org.eclipse.jface.util.OpenStrategy.access$0(OpenStrategy.java:235)rn at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:296)rn at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)rn at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)rn at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3880)rn at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3473)rn at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2405)rn at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)rn at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221)rn at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)rn at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)rn at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:493)rn at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)rn at com.coretek.ui.fawperspective.Application.start(Application.java:20)rn at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)rn at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)rn at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)rn at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:368)rn at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)rn at java.lang.reflect.Method.invoke(Unknown Source)rn at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)rn at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)rn at org.eclipse.equinox.launcher.Main.run(Main.java:1311)rn at org.eclipse.equinox.launcher.Main.main(Main.java:1287)rn 论坛

没有更多推荐了,返回首页