Bug 214923 - Inform user when extension point schema unavailable
Summary: Inform user when extension point schema unavailable
Status: RESOLVED DUPLICATE of bug 255460
Alias: None
Product: PDE
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.4   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: PDE-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: bugday
Depends on:
Blocks:
 
Reported: 2008-01-10 12:04 EST by Markus Keller CLA
Modified: 2008-11-17 09:46 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Keller CLA 2008-01-10 12:04:31 EST
I20080108-1320, was OK in 3.3.1.1

- new workspace
- new plug-in project with wizard, all defaults
- try to add extension for "org.eclipse.core.runtime.adapters"

=> New Extension wizard shows no description
=> "Extensions" editor page does not know about structure of ext.pt.
=> Plug-in Search only finds a reference in an external plugin.xml
=> Show Description opens a useless template:

Identifier: null.null
Description: 
Configuration Markup:
Comment 1 Markus Keller CLA 2008-01-10 12:06:04 EST
Sorry, screwed up component.
Comment 2 Markus Keller CLA 2008-01-10 12:10:11 EST
Oh there's something in the log (already in M4):

Error
Thu Jan 10 17:55:12 CET 2008
JAR entry schema/adapters.exsd not found in C:\e\i\I20080108-1320\plugins\org.eclipse.equinox.registry.source_3.4.0.v20080107.jar

java.io.FileNotFoundException: JAR entry schema/adapters.exsd not found in C:\e\i\I20080108-1320\plugins\org.eclipse.equinox.registry.source_3.4.0.v20080107.jar
at sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:122)
at sun.net.www.protocol.jar.JarURLConnection.getInputStream(JarURLConnection.java:132)
at java.net.URL.openStream(URL.java:1009)
at org.eclipse.pde.internal.core.util.SchemaUtil.getInputStream(SchemaUtil.java:40)
at org.eclipse.pde.internal.core.util.SchemaUtil.parseURL(SchemaUtil.java:46)
at org.eclipse.pde.internal.ui.wizards.extension.PointSelectionPage.handlePointSelection(PointSelectionPage.java:582)
at org.eclipse.pde.internal.ui.wizards.extension.PointSelectionPage.selectionChanged(PointSelectionPage.java:545)
at org.eclipse.jface.viewers.Viewer$2.run(Viewer.java:162)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.runtime.Platform.run(Platform.java:857)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:46)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:199)
at org.eclipse.jface.viewers.Viewer.fireSelectionChanged(Viewer.java:160)
at org.eclipse.jface.viewers.StructuredViewer.updateSelection(StructuredViewer.java:2044)
at org.eclipse.jface.viewers.StructuredViewer.handleSelect(StructuredViewer.java:1138)
at org.eclipse.jface.viewers.StructuredViewer$4.widgetSelected(StructuredViewer.java:1168)
at org.eclipse.jface.util.OpenStrategy.fireSelectionEvent(OpenStrategy.java:227)
at org.eclipse.jface.util.OpenStrategy.access$3(OpenStrategy.java:221)
at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:388)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:952)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3758)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3369)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
at org.eclipse.jface.window.Window.open(Window.java:801)
at org.eclipse.pde.internal.ui.editor.plugin.ExtensionsSection$5.run(ExtensionsSection.java:503)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
at org.eclipse.pde.internal.ui.editor.plugin.ExtensionsSection.handleNew(ExtensionsSection.java:492)
at org.eclipse.pde.internal.ui.editor.plugin.ExtensionsSection.buttonSelected(ExtensionsSection.java:270)
at org.eclipse.pde.internal.ui.editor.TreeSection$PartAdapter.buttonSelected(TreeSection.java:38)
at org.eclipse.pde.internal.ui.parts.SharedPartWithButtons$SelectionHandler.buttonSelected(SharedPartWithButtons.java:36)
at org.eclipse.pde.internal.ui.parts.SharedPartWithButtons$SelectionHandler.widgetSelected(SharedPartWithButtons.java:29)
..
Comment 3 Markus Keller CLA 2008-01-10 12:34:25 EST
Actually, the underlying issue is that the org.eclipse.equinox.registry plug-in does not export the schema folder to the source bundle. I'll file a bug for them.

Still, PDE/UI should tell the user that the schema could not be found.
Comment 4 Brian Bauman CLA 2008-02-07 11:25:50 EST
We should be able to handle this case more gracefully.  
Comment 5 Curtis Windatt CLA 2008-11-17 09:46:57 EST
Marking as a dupe of a more recent bug with a patch that informs that user if a exsd file can't be found.

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