Bug 497717 - DefaultContentProvider has been removed
Summary: DefaultContentProvider has been removed
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Libra (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal with 4 votes (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Holger Staudacher CLA
URL:
Whiteboard:
Keywords:
: 496727 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-07-11 19:18 EDT by Hannes Erven CLA
Modified: 2022-02-24 11:24 EST (History)
4 users (show)

See Also:


Attachments
Suggested patch against master (c5aecb8f593759275b76c374f36d24b3f7732744) (6.29 KB, patch)
2016-07-11 19:23 EDT, Hannes Erven CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Hannes Erven CLA 2016-07-11 19:18:26 EDT
Per https://bugs.eclipse.org/bugs/show_bug.cgi?id=487943 , DefaultContentProvider has been retired and removed.

The WAR Products UI has ContentProviders that extend that class.

e.g. when your WAR product config has an error, the following exception will be logged:

java.lang.NoClassDefFoundError: org/eclipse/libra/warproducts/ui/validation/PluginStatusDialogContentProvider
	at org.eclipse.libra.warproducts.ui.validation.PluginStatusContentVisualizer.createControls(PluginStatusContentVisualizer.java:27)
	at org.eclipse.libra.warproducts.ui.exportwizard.ValidationPage.createControl(ValidationPage.java:54)
	at org.eclipse.jface.wizard.Wizard.createPageControls(Wizard.java:175)
	at org.eclipse.jface.wizard.WizardDialog.createPageControls(WizardDialog.java:696)
	at org.eclipse.jface.wizard.WizardDialog.createContents(WizardDialog.java:588)
	at org.eclipse.jface.window.Window.create(Window.java:426)
	at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1095)
	at org.eclipse.libra.warproducts.ui.editor.WARProductExportAction.run(WARProductExportAction.java:56)
	at org.eclipse.libra.warproducts.ui.editor.OverviewPage.linkActivated(OverviewPage.java:83)
	at org.eclipse.ui.forms.widgets.FormText.activateLink(FormText.java:1577)
	at org.eclipse.ui.forms.widgets.FormText.handleMouseClick(FormText.java:1386)
	at org.eclipse.ui.forms.widgets.FormText.access$16(FormText.java:1357)
	at org.eclipse.ui.forms.widgets.FormText$6.mouseUp(FormText.java:455)
	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:221)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4410)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1079)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4228)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3816)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:1121)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1022)
	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:150)
	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:687)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:604)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:148)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:138)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:673)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:610)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1519)


See also https://www.eclipse.org/forums/index.php/m/1737556/
Comment 1 Hannes Erven CLA 2016-07-11 19:23:49 EDT
Created attachment 263034 [details]
Suggested patch against master (c5aecb8f593759275b76c374f36d24b3f7732744)
Comment 2 Silvan Brenner CLA 2016-07-28 08:49:28 EDT
Is there a way to get the patch installed?
Comment 3 Hannes Erven CLA 2016-07-28 08:54:25 EDT
You could check out my git branch into an empty Eclipse workspace (you only need the "org.eclipse.libra.warproducts.ui" plugin):
https://github.com/hannibal218bc/libra/tree/_hannibal218bc

and then create an "Eclipse Application" launch config to start your usual development workspace with the patched plugin in effect -- there might be other ways to do this, but that's what I'm doing now.
Comment 4 Hannes Erven CLA 2016-09-05 10:08:28 EDT
Fixed with commit https://github.com/eclipse/libra/commit/48fd1c245ad666f2c459f41cd9d29cf53cfd0090

Fix version R-0.3.1-201609011955

see mailing list post by Kaloyan:
http://dev.eclipse.org/mhonarc/lists/libra-dev/msg00182.html
Comment 5 Hannes Erven CLA 2016-10-16 15:39:04 EDT
*** Bug 496727 has been marked as a duplicate of this bug. ***