yes, if I remove pshelf css from my running environment the CCE goes away.
Creepy.


On Thu, Oct 24, 2013 at 11:43 PM, Wim Jongman <[email protected]> wrote:

> I will ask the WB guys if they have a clue. It seems that the CSS engine
> sees that it can load the styled widget. I have installed the widget in my
> running eclipse. I try to de-install the css part of pshelf to see if that
> solves it.
>
> Cheers
>
>
> On Thu, Oct 24, 2013 at 11:23 PM, Tom Schindl <[email protected]
> > wrote:
>
>> Yes this looks like a classloader problem, but I have no freaking idea
>> what's going on :-(
>>
>> Tom
>>
>> On 24.10.13 23:19, Wim Jongman wrote:
>> > Tom,
>> >
>> > I try to load the new pshelf into Windowbuilder but I am getting a CCE
>> > on the same class. I guess the css engine loads pshelf through another
>> > classloader than WB.
>> >
>> > Any idea how to work around this?
>> >
>> > Cheers,
>> >
>> > Wim
>> >
>> > java.lang.ClassCastException: org.eclipse.nebula.widgets.pshelf.PShelf
>> > cannot be cast to org.eclipse.nebula.widgets.pshelf.PShelf
>> > at
>> >
>> org.eclipse.nebula.widgets.pshelf.css.internal.PShelfElementProvider.getElement(PShelfElementProvider.java:21)
>> > at
>> >
>> org.eclipse.e4.ui.css.core.impl.engine.AbstractCSSEngine.getElement(AbstractCSSEngine.java:912)
>> > at
>> >
>> org.eclipse.e4.ui.css.core.impl.engine.AbstractCSSEngine.applyStyles(AbstractCSSEngine.java:416)
>> > at
>> >
>> org.eclipse.e4.ui.css.core.impl.engine.AbstractCSSEngine.applyStyles(AbstractCSSEngine.java:405)
>> > at
>> >
>> org.eclipse.e4.ui.css.swt.engine.CSSSWTApplyStylesListener$1.handleEvent(CSSSWTApplyStylesListener.java:31)
>> > at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
>> > at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4344)
>> > at org.eclipse.swt.widgets.Display.runSkin(Display.java:4253)
>> > at org.eclipse.swt.widgets.Composite.computeSize(Composite.java:229)
>> > at org.eclipse.swt.widgets.Control.computeSize(Control.java:614)
>> > 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.wb.internal.core.utils.reflect.ReflectionUtils.invokeMethod(ReflectionUtils.java:869)
>> > at
>> >
>> org.eclipse.wb.internal.swt.support.ControlSupport.getPreferredSize(ControlSupport.java:135)
>> > at
>> >
>> org.eclipse.wb.internal.swt.model.widgets.ControlInfo.refresh_afterCreate(ControlInfo.java:117)
>> > at
>> org.eclipse.wb.core.model.ObjectInfo.refreshCreate0(ObjectInfo.java:552)
>> > at org.eclipse.wb.core.model.ObjectInfo.access$0(ObjectInfo.java:546)
>> > at org.eclipse.wb.core.model.ObjectInfo$5$1.run(ObjectInfo.java:486)
>> > at
>> >
>> org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runDesignTime(ExecutionUtils.java:145)
>> > at org.eclipse.wb.core.model.ObjectInfo$5.run(ObjectInfo.java:484)
>> > at
>> >
>> org.eclipse.wb.core.model.ObjectInfo.execRefreshOperation(ObjectInfo.java:514)
>> > at org.eclipse.wb.core.model.ObjectInfo.refresh(ObjectInfo.java:482)
>> > at
>> >
>> org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:580)
>> > at
>> >
>> org.eclipse.wb.internal.core.editor.DesignPage.access$9(DesignPage.java:522)
>> > at
>> >
>> org.eclipse.wb.internal.core.editor.DesignPage$8$1.run(DesignPage.java:449)
>> > at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
>> > at
>> org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
>> > at org.eclipse.swt.widgets.Display.syncExec(Display.java:4688)
>> > at
>> org.eclipse.wb.internal.core.editor.DesignPage$8.run(DesignPage.java:446)
>> > at
>> >
>> org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
>> > at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
>> > at
>> >
>> org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:507)
>> > at
>> >
>> org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF_withProgress(DesignPage.java:465)
>> > at
>> >
>> org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:415)
>> > at
>> >
>> org.eclipse.wb.internal.core.editor.UndoManager.refreshDesignerEditor(UndoManager.java:381)
>> > at
>> >
>> org.eclipse.wb.internal.core.editor.UndoManager.activate(UndoManager.java:90)
>> > at
>> >
>> org.eclipse.wb.internal.core.editor.DesignPage.handleActiveState_True(DesignPage.java:263)
>> > at
>> >
>> org.eclipse.wb.internal.core.editor.DesignPage.handleActiveState(DesignPage.java:241)
>> > at
>> >
>> org.eclipse.wb.internal.core.editor.multi.DefaultMultiMode.showPage(DefaultMultiMode.java:125)
>> > at
>> >
>> org.eclipse.wb.internal.core.editor.multi.DefaultMultiMode$1.widgetSelected(DefaultMultiMode.java:63)
>> > at
>> org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
>> > at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
>> > at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1057)
>> > at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1081)
>> > at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1066)
>> > at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:778)
>> > at org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java:3061)
>> > at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:1753)
>> > at org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.java:278)
>> > at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
>> > at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1057)
>> > at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4170)
>> > at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3759)
>> > at
>> >
>> org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1113)
>> > at
>> >
>> org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:331)
>> > at
>> >
>> org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:997)
>> > at
>> >
>> org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:138)
>> > at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:610)
>> > at
>> >
>> org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:331)
>> > at
>> >
>> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:567)
>> > at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
>> > at
>> >
>> org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
>> > at
>> >
>> org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
>> > at
>> >
>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
>> > at
>> >
>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
>> > at
>> >
>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:354)
>> > at
>> >
>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181)
>> > 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:636)
>> > at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
>> > at org.eclipse.equinox.launcher.Main.run(Main.java:1450)
>> > at org.eclipse.equinox.launcher.Main.main(Main.java:1426)
>> >
>> >
>> >
>> > _______________________________________________
>> > nebula-dev mailing list
>> > [email protected]
>> > https://dev.eclipse.org/mailman/listinfo/nebula-dev
>> >
>>
>> _______________________________________________
>> nebula-dev mailing list
>> [email protected]
>> https://dev.eclipse.org/mailman/listinfo/nebula-dev
>>
>
>
_______________________________________________
nebula-dev mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/nebula-dev

Reply via email to