[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
Re: [platform-ui-dev] using an FileElementFactory within a plugin
|
- From: Nick Edgar <Nick_Edgar@xxxxxxxxxx>
- Date: Tue, 3 Aug 2004 15:52:24 -0400
- Delivered-to: platform-ui-dev@eclipse.org
Michael,
I've opened a bug report for this. Please see
https://bugs.eclipse.org/bugs/show_bug.cgi?id=71322.
Nick
Michael Spiegel <mspiegel@xxxxxxxxxxxxxxxxxxx>
Sent by: platform-ui-dev-admin@xxxxxxxxxxx
08/02/2004 01:52 PM
Please respond to
platform-ui-dev
To
platform-ui-dev@xxxxxxxxxxx
cc
Subject
[platform-ui-dev] using an FileElementFactory within a plugin
Hello,
I'm trying to use a FileEditorInputFactory within my plugin. I've
added the following extension point to my plugin.xml:
<extension
point = "org.eclipse.ui.elementFactories">
<factory
id ="org.eclipse.ui.part.FileEditorInputFactory"
class="org.eclipse.ui.part.FileEditorInputFactory">
</factory>
</extension>
I keep on getting the error, "Unable to restore editor - no input
factory ID."
I've tracked the problem down to org.eclipse.ui.internal.EditorManager,
where I get a NullPointerException thrown here:
// TODO - DDW - dynamic UI - a check for a null input was deliberately
removed here.
if (input instanceof IPathEditorInput) {
editorMem.putString(IWorkbenchConstants.TAG_PATH,((IPathEditorInput)inpu
t).getPath().toString());
}
So am I doing something wrong on my end, or is there a cleanup needed
in this eclipse code?
Thanks,
--Michael