Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » WindowBuilder » Using Nebula CDateTime in WindowBuilder (Errors in adding CDateTime to the Palette)
Using Nebula CDateTime in WindowBuilder [message #1238876] Sun, 02 February 2014 18:47 Go to next message
Baruch Youssin is currently offline Baruch YoussinFriend
Messages: 29
Registered: April 2013
Junior Member
I have installed Nebula widgets to my Kepler.
I have added them (both class files and the source) to the build path, so that when I use them in the code, the CDateTime class is found and the code compiles.
F3 also finds and displays the source code. (For some reason I do not understand, the tab header says CDateTime.class and CDT.class, not and as other classes, even though the tab contains the source code. However, this is not my problem.)

When I try to add CDateTime to the Palette, the Palette manager finds the class but reports that it cannot load it:

When I replace my DateTime widget in the source by CDateTime and try to switch to the Design tab, it cannot find the AST. (I found that it means Abstract Syntax Tree but no more helpful info.)

I would very much appreciate any help.

Here is the report:

Compilation unit /AlarmClock/src/com/byoussin/AlarmClock/ has primary type, but WindowBuilder can not find its AST. This can be caused by one of the following reasons:
Compilation unit references unknown type, most probably as part of generics.

org.eclipse.wb.internal.core.utils.exception.DesignerException: 110 (No primary type.). /AlarmClock/src/com/byoussin/AlarmClock/
at org.eclipse.wb.internal.core.utils.check.Assert.isTrueException(
at org.eclipse.wb.internal.core.parser.JavaInfoParser.prepareParseContext(
at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(
at org.eclipse.wb.internal.core.parser.JavaInfoParser.access$9(
at org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(
at org.eclipse.wb.internal.core.parser.JavaInfoParser$1.runObject(
at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runDesignTime(
at org.eclipse.wb.internal.core.parser.JavaInfoParser.parse(
at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(
at org.eclipse.wb.internal.core.editor.DesignPage.access$9(
at org.eclipse.wb.internal.core.editor.DesignPage$8$
at org.eclipse.swt.widgets.Synchronizer.syncExec(
at org.eclipse.ui.internal.UISynchronizer.syncExec(
at org.eclipse.swt.widgets.Display.syncExec(
at org.eclipse.wb.internal.core.editor.DesignPage$
at org.eclipse.jface.operation.ModalContext.runInCurrentThread(
at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF_withProgress(
at org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(
at org.eclipse.wb.internal.core.editor.UndoManager.refreshDesignerEditor(
at org.eclipse.wb.internal.core.editor.UndoManager.activate(
at org.eclipse.wb.internal.core.editor.DesignPage.handleActiveState_True(
at org.eclipse.wb.internal.core.editor.DesignPage.handleActiveState(
at org.eclipse.wb.internal.core.editor.multi.DefaultMultiMode.showPage(
at org.eclipse.wb.internal.core.editor.multi.DefaultMultiMode$1.widgetSelected(
at org.eclipse.swt.widgets.TypedListener.handleEvent(
at org.eclipse.swt.widgets.EventTable.sendEvent(
at org.eclipse.swt.widgets.Widget.sendEvent(
at org.eclipse.swt.widgets.Widget.sendEvent(
at org.eclipse.swt.widgets.Widget.sendEvent(
at org.eclipse.swt.widgets.Widget.notifyListeners(
at org.eclipse.swt.custom.CTabFolder.setSelection(
at org.eclipse.swt.custom.CTabFolder.onMouse(
at org.eclipse.swt.custom.CTabFolder$1.handleEvent(
at org.eclipse.swt.widgets.EventTable.sendEvent(
at org.eclipse.swt.widgets.Widget.sendEvent(
at org.eclipse.swt.widgets.Display.runDeferredEvents(
at org.eclipse.swt.widgets.Display.readAndDispatch(
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$
at org.eclipse.core.databinding.observable.Realm.runWithDefault(
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(
at org.eclipse.ui.internal.Workbench$
at org.eclipse.core.databinding.observable.Realm.runWithDefault(
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(
at org.eclipse.ui.internal.ide.application.IDEApplication.start(
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
at java.lang.reflect.Method.invoke(
at org.eclipse.equinox.launcher.Main.invokeFramework(
at org.eclipse.equinox.launcher.Main.basicRun(
at org.eclipse.equinox.launcher.Main.main(

[Updated on: Sun, 02 February 2014 18:49]

Report message to a moderator

Re: Using Nebula CDateTime in WindowBuilder [message #1239842 is a reply to message #1238876] Wed, 05 February 2014 07:13 Go to previous messageGo to next message
Baruch Youssin is currently offline Baruch YoussinFriend
Messages: 29
Registered: April 2013
Junior Member
I have found out myself what my problem was: I was missing another library in my class path, org.eclipse.nebula.cwt_0.9.0.201401291008.jar, that contains the class BaseCombo which is the superclass of CDateTime.

After I added it, everything worked with the exception of databinding to the selection property of CDateTime which I added in the code using CDateTimeObservableValue class; WindowBuilder parsed this code without complaints but did not notice this binding.
Re: Using Nebula CDateTime in WindowBuilder [message #1240179 is a reply to message #1239842] Wed, 05 February 2014 22:06 Go to previous message
Eric Clayberg is currently offline Eric ClaybergFriend
Messages: 979
Registered: July 2009
Location: Boston, MA
Senior Member
Makes sense. The ClassNotFoundException is consistent with a classpath issue.

I doubt that WB knows anything specific about any special Nebula data binding stuff. It would need to be taught about that.
Previous Topic:Binding items property of Combo using WindowBuilder
Next Topic:Binding to the selection property of CDateTime
Goto Forum:

Current Time: Wed Jul 08 23:48:10 GMT 2020

Powered by FUDForum. Page generated in 0.02230 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top