Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 135963

Summary: [WorkbenchLauncher] Errors: Bad extension specification, and, startup class must implement org.eclipse.ui.IStartup
Product: [Eclipse Project] Platform Reporter: Simon Archer <sja.eclipse>
Component: UIAssignee: Boris Bokowski <bokowski>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3    
Version: 3.2   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Example none

Description Simon Archer CLA 2006-04-10 15:00:45 EDT
Using Eclipse 3.2/M6

I have been told that when extending the extension point "org.eclipse.ui.startup" it is no longer necessary to specify a class, since the bundle activator is automatically found and started in place of a start up class.  I have also been told that it is no longer necessary to implement IStartup.  

Whether I implement IStartup or not, the following messages get written to the log when I use the "org.eclipse.ui.startup" extension point.

  !ENTRY org.eclipse.ui 4 4 2006-04-10 14:31:23.597
  !MESSAGE Bad extension specification

  !ENTRY foobar 4 0 2006-04-10 14:31:23.607
  !MESSAGE startup class must implement org.eclipse.ui.IStartup


I shall attach my project to this bug report.
Comment 1 Simon Archer CLA 2006-04-10 15:03:11 EDT
Created attachment 38197 [details]
Example
Comment 2 Simon Archer CLA 2006-04-10 22:45:37 EDT
Looking at the description for the org.eclipse.ui.startup extension point I see the following that implies that the nested <startup> element (that defines a class implementing IStartup) is optional.

"If the startup element has a class attribute, the class will be instantiated and earlyStartup() will be called on the result. Otherwise, this method will be called on the plug-in class."

Once I added a <startup> element the messages written to the .log go away.  I would rather that the <startup> element is optional.  But perhaps all of this is just weaknesses in the documentation of the org.eclipse.ui.startup extension point.
Comment 3 Boris Bokowski CLA 2006-04-11 16:35:48 EDT
It's a weakness in the documentation that I fixed recently. See bug 128178 comment 14.

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