Bug 18561 - Unable to restore welcome editor
Summary: Unable to restore welcome editor
Status: RESOLVED DUPLICATE of bug 18820
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P1 critical (vote)
Target Milestone: 2.0 F3   Edit
Assignee: Randy Giffen CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 18353
Blocks:
  Show dependency tree
 
Reported: 2002-05-31 22:52 EDT by Nick Edgar CLA
Modified: 2002-06-03 14:22 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Edgar CLA 2002-05-31 22:52:01 EDT
Build 20020531 + latest changes

- launch new target
- exit
- restart
- get:
Unable to restore editor - cannot instantiate input element: 
org.eclipse.ui.internal.dialogs.WelcomeEditorInputFactory
Comment 1 Nick Edgar CLA 2002-05-31 23:12:39 EDT
To be clear, both times I was launching the target.

It's actually able to instantiate WelcomeEditorInputFactory, but createElement 
returns null due to Workbench.getFeaturesInfo() returning null, due to the 
Update problem (even though I have -update specified on my target command 
line).

I find the log message confusing since it was actually able to instantiate the 
factory (even though the message says element instead of factory).
Changed the log message to:
"Unable to restore editor - createElement returned null for factory: " + 
factoryID
Comment 2 Nick Edgar CLA 2002-05-31 23:14:29 EDT
This is caused by the same problem described in bug 18353.
However, in this case it does not make sense for us to suppress the error 
message.  This is just a regular editor that wants to restore itself, and 
cannot recreate its input element because it does not have the feature info.
So it returns null, and the workbench does the complaining for it.
But the workbench doesn't know that it was due to missing feature info.
Comment 3 Nick Edgar CLA 2002-05-31 23:30:35 EDT
Should not occur when (re)launching host since the feature info should be 
there.
Need to verify this in the test pass.
Comment 4 Nick Edgar CLA 2002-06-03 14:22:47 EDT
Marking as dup of 18820 because Eduardo reproduced the problem using the host, 
not the target.

*** This bug has been marked as a duplicate of 18820 ***