Couldn't find "IFileEditorInput" [message #282697] |
Thu, 17 March 2005 21:55 |
Eclipse User |
|
|
|
Originally posted by: zyang.bsu.edu
Im writing a plugin with a text editor in it using Eclipse 3.0.1.
Everything works perfect when I debug the plugin using Run-time Workbench.
But after I exported the plugin, added to the plugins directory, and
restarted Eclipse, the plugin doesnt work anymore. It told me that
IFileEditorInput couldnt be found. Here is the error message from the
log file:
.
!MESSAGE Problems occurred when invoking code from plug-in:
"org.eclipse.core.runtime".
!STACK 0
java.lang.NoClassDefFoundError: org/eclipse/ui/IFileEditorInput
at UMBuilder.editors.TTPEditor.createPages(TTPEditor.java:42)
at
org.eclipse.ui.part.MultiPageEditorPart.createPartControl(Mu ltiPageEditorPart.java:187)
at org.eclipse.ui.internal.PartPane$2.run(PartPane.java:137)
at
org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java:616)
at org.eclipse.core.runtime.Platform.run(Platform.java:747)
Here is the code causing the problem:
.
public class TTPEditor extends MultiPageEditorPart {
.
protected void createPages(){
if(this.getEditorInput() instanceof IFileEditorInput){
IFileEditorInput editorInput = (IFileEditorInput) this.getEditorInput();
IFile file = editorInput.getFile();
.
}
I checked my dependencies in the plugin.xml, org.eclipse.ui.ide was
there. What else could I miss? I searched the previous posts. There were
some similar questions. No answers could fit into my case.
Anybody here has any thoughts that why there is no trouble to find
IFileEditorInput at all when I debug the plugin using Run-time Workbench?
Any input is appreciated!
|
|
|
Re: Couldn't find "IFileEditorInput" [message #282702 is a reply to message #282697] |
Fri, 18 March 2005 00:04 |
Eclipse User |
|
|
|
Originally posted by: zyang.bsu.edu
I knid of slove the problem, although I still don't know the rationale
behind it.
These are the steps I made the plugin work:
1)remove the plugin from plugins directory
2)restart Eclipse
3)add the plugin back to the plugins directory,
4)restart Eclipse again.
Rui k-yang wrote:
> Im writing a plugin with a text editor in it using Eclipse 3.0.1.
> Everything works perfect when I debug the plugin using Run-time Workbench.
> But after I exported the plugin, added to the plugins directory, and
> restarted Eclipse, the plugin doesnt work anymore. It told me that
> IFileEditorInput couldnt be found. Here is the error message from the
> log file:
>
.
> !MESSAGE Problems occurred when invoking code from plug-in:
> "org.eclipse.core.runtime".
> !STACK 0
> java.lang.NoClassDefFoundError: org/eclipse/ui/IFileEditorInput
> at UMBuilder.editors.TTPEditor.createPages(TTPEditor.java:42)
> at
>
org.eclipse.ui.part.MultiPageEditorPart.createPartControl(Mu ltiPageEditorPart.java:187)
> at org.eclipse.ui.internal.PartPane$2.run(PartPane.java:137)
> at
>
org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java:616)
> at org.eclipse.core.runtime.Platform.run(Platform.java:747)
>
> Here is the code causing the problem:
>
.
> public class TTPEditor extends MultiPageEditorPart {
>
.
> protected void createPages(){
> if(this.getEditorInput() instanceof IFileEditorInput){
> IFileEditorInput editorInput = (IFileEditorInput) this.getEditorInput();
> IFile file = editorInput.getFile();
>
.
> }
> I checked my dependencies in the plugin.xml, org.eclipse.ui.ide was
> there. What else could I miss? I searched the previous posts. There were
> some similar questions. No answers could fit into my case.
> Anybody here has any thoughts that why there is no trouble to find
> IFileEditorInput at all when I debug the plugin using Run-time Workbench?
> Any input is appreciated!
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04166 seconds