Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-ui-dev] using an FileElementFactory within a plugin

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



Back to the top