Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » plugin editor
plugin editor [message #459841] Thu, 07 December 2006 15:03 Go to next message
Eclipse UserFriend
Hi,

I have just made a simple editor for Eclipse, based on a sample. It works
fine if I try to open a file from a project, but if I try to open from
filesystem it gives me an exception. Any clues?

org.eclipse.ui.PartInitException: Invalid Input: Must be IFileEditorInput
at com.mercurio.adsm.logexec.editors.LogExecuter.init(LogExecut er.java:332)
at org.eclipse.ui.internal.EditorManager.createSite(EditorManag er.java:840)
at
org.eclipse.ui.internal.EditorReference.createPartHelper(Edi torReference.java:583)
at
org.eclipse.ui.internal.EditorReference.createPart(EditorRef erence.java:372)
at
org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:566)
at
org.eclipse.ui.internal.EditorReference.getEditor(EditorRefe rence.java:214)
at
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched( WorkbenchPage.java:2595)
at
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Workben chPage.java:2528)
at org.eclipse.ui.internal.WorkbenchPage.access$10(WorkbenchPag e.java:2520)
at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.ja va:2505)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
at
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2500)
at
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2477)
at
org.eclipse.ui.internal.editors.text.OpenExternalFileAction. run(OpenExternalFileAction.java:132)
at
org.eclipse.ui.internal.editors.text.OpenExternalFileAction. run(OpenExternalFileAction.java:100)
at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginActi on.java:254)
at
org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPl uginAction.java:229)
at
org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:539)
at
org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:488)
at
org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:400)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3348)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2968)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1914)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:419)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:95)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:78)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:92)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:68)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:400)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:177)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336 )
at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.Main.main(Main.java:952)
Re: plugin editor [message #459897 is a reply to message #459841] Fri, 08 December 2006 08:33 Go to previous messageGo to next message
Eclipse UserFriend
yes ... that editor won't open anything that's not an IFileEditorInput
.... i.e. it will only open files in the workspace.

Later,
PW
Re: plugin editor [message #460005 is a reply to message #459897] Mon, 11 December 2006 08:55 Go to previous message
Eclipse UserFriend
Ok, what shall I use? Is a simple signature change or I have to make a
bigger change?

"Paul Webster" <pwebster@ca.ibm.com> wrote in message
news:elbpkv$h3v$1@utils.eclipse.org...
> yes ... that editor won't open anything that's not an IFileEditorInput ...
> i.e. it will only open files in the workspace.
>
> Later,
> PW
Previous Topic:Description in WizardPage
Next Topic:Best Practices
Goto Forum:
  


Current Time: Wed Mar 19 04:59:45 EDT 2025

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

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

Back to the top