Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » how do i add a combo to a grid?(getting an unsupported exception )
icon5.gif  how do i add a combo to a grid? [message #663066] Sun, 03 April 2011 05:31 Go to next message
elhanan Maayan is currently offline elhanan MaayanFriend
Messages: 131
Registered: November 2009
Senior Member
hi..
i'm trying to add a combo to tableviewer (using wbpro) and i get this:
Exception in thread "main" java.lang.RuntimeException: java.lang.IllegalArgumentException: Widget [org.eclipse.swt.custom.CCombo] is not supported.
at com.model.window.Starter$1.run(Starter.java:32)
at org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:332)
at com.model.window.Starter.main(Starter.java:18)
Caused by: java.lang.IllegalArgumentException: Widget [org.eclipse.swt.custom.CCombo] is not supported.
at org.eclipse.jface.internal.databinding.swt.WidgetDelegatingV alueProperty.notSupported(WidgetDelegatingValueProperty.java :23)
at org.eclipse.jface.internal.databinding.swt.WidgetTextWithEve ntsProperty.doGetDelegate(WidgetTextWithEventsProperty.java: 61)
at org.eclipse.core.databinding.property.value.DelegatingValueP roperty.getDelegate(DelegatingValueProperty.java:54)
at org.eclipse.core.databinding.property.value.DelegatingValueP roperty.observe(DelegatingValueProperty.java:88)
at org.eclipse.core.databinding.property.value.ValueProperty$2. createObservable(ValueProperty.java:105)
at org.eclipse.core.internal.databinding.observable.masterdetai l.DetailObservableValue.updateInnerObservableValue(DetailObs ervableValue.java:112)
at org.eclipse.core.internal.databinding.observable.masterdetai l.DetailObservableValue. <init>(DetailObservableValue.java:78)
at org.eclipse.core.databinding.observable.masterdetail.MasterD etailObservables.detailValue(MasterDetailObservables.java:52 )
at org.eclipse.core.databinding.property.value.ValueProperty.ob serveDetail(ValueProperty.java:111)
at org.eclipse.core.internal.databinding.property.ValueProperty DetailValue.observe(ValuePropertyDetailValue.java:68)
at org.eclipse.core.databinding.property.value.ValueProperty.ob serve(ValueProperty.java:91)
at org.eclipse.jface.databinding.viewers.ObservableValueEditing Support$1.doCreateCellEditorObservable(ObservableValueEditin gSupport.java:64)
at org.eclipse.jface.databinding.viewers.ObservableValueEditing Support.initializeCellEditorValue(ObservableValueEditingSupp ort.java:150)
at org.eclipse.jface.viewers.ColumnViewerEditor.activateCellEdi tor(ColumnViewerEditor.java:194)
at org.eclipse.jface.viewers.ColumnViewerEditor.handleEditorAct ivationEvent(ColumnViewerEditor.java:444)
at org.eclipse.jface.viewers.ColumnViewer.triggerEditorActivati onEvent(ColumnViewer.java:680)
at org.eclipse.jface.viewers.ColumnViewer.handleMouseDown(Colum nViewer.java:664)
at org.eclipse.jface.viewers.ColumnViewer.access$0(ColumnViewer .java:660)
at org.eclipse.jface.viewers.ColumnViewer$1.mouseDown(ColumnVie wer.java:89)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:185)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:4066)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3657)
at com.model.window.Starter$1.run(Starter.java:27)
... 2 more

Re: how do i add a combo to a grid? [message #663151 is a reply to message #663066] Mon, 04 April 2011 06:24 Go to previous messageGo to next message
Daniel Krügler is currently offline Daniel KrüglerFriend
Messages: 853
Registered: July 2009
Senior Member
On 2011-04-03 07:31, elhanan wrote:
> hi..
> i'm trying to add a combo to tableviewer (using wbpro) and i get this:
> Exception in thread "main" java.lang.RuntimeException:
> java.lang.IllegalArgumentException: Widget
> [org.eclipse.swt.custom.CCombo] is not supported.
> at com.model.window.Starter$1.run(Starter.java:32)
> at org.eclipse.core.databinding.observable.Realm.runWithDefault
> (Realm.java:332)
> at com.model.window.Starter.main(Starter.java:18)
> Caused by: java.lang.IllegalArgumentException: Widget
> [org.eclipse.swt.custom.CCombo] is not supported.
> at org.eclipse.jface.internal.databinding.swt.WidgetDelegatingV
> alueProperty.notSupported(WidgetDelegatingValueProperty.java :23)
> at org.eclipse.jface.internal.databinding.swt.WidgetTextWithEve
> ntsProperty.doGetDelegate(WidgetTextWithEventsProperty.java: 61)
> at org.eclipse.core.databinding.property.value.DelegatingValueP
> roperty.getDelegate(DelegatingValueProperty.java:54)
> at org.eclipse.core.databinding.property.value.DelegatingValueP
> roperty.observe(DelegatingValueProperty.java:88)
> at org.eclipse.core.databinding.property.value.ValueProperty$2.
> createObservable(ValueProperty.java:105)
> at org.eclipse.core.internal.databinding.observable.masterdetai
> l.DetailObservableValue.updateInnerObservableValue(DetailObs
> ervableValue.java:112)
> at org.eclipse.core.internal.databinding.observable.masterdetai
> l.DetailObservableValue. <init>(DetailObservableValue.java:78)
> at org.eclipse.core.databinding.observable.masterdetail.MasterD
> etailObservables.detailValue(MasterDetailObservables.java:52 )
> at org.eclipse.core.databinding.property.value.ValueProperty.ob
> serveDetail(ValueProperty.java:111)
> at org.eclipse.core.internal.databinding.property.ValueProperty
> DetailValue.observe(ValuePropertyDetailValue.java:68)
> at org.eclipse.core.databinding.property.value.ValueProperty.ob
> serve(ValueProperty.java:91)
> at org.eclipse.jface.databinding.viewers.ObservableValueEditing
> Support$1.doCreateCellEditorObservable(ObservableValueEditin
> gSupport.java:64)
> at org.eclipse.jface.databinding.viewers.ObservableValueEditing
> Support.initializeCellEditorValue(ObservableValueEditingSupp ort.java:150)
> at org.eclipse.jface.viewers.ColumnViewerEditor.activateCellEdi
> tor(ColumnViewerEditor.java:194)
> at org.eclipse.jface.viewers.ColumnViewerEditor.handleEditorAct
> ivationEvent(ColumnViewerEditor.java:444)
> at org.eclipse.jface.viewers.ColumnViewer.triggerEditorActivati
> onEvent(ColumnViewer.java:680)
> at org.eclipse.jface.viewers.ColumnViewer.handleMouseDown(Colum
> nViewer.java:664)
> at org.eclipse.jface.viewers.ColumnViewer.access$0(ColumnViewer .java:660)
> at org.eclipse.jface.viewers.ColumnViewer$1.mouseDown(ColumnVie
> wer.java:89)
> at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe
> ner.java:185)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:4066)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3657)
> at com.model.window.Starter$1.run(Starter.java:27)
> ... 2 more

An error report without a minimalistic code example that demonstrates
how to reproduce the error is - worthless, sorry. Please honor the basic
rules of asking questions in newsgroups, as explained here:

http://www.catb.org/~esr/faqs/smart-questions.html

The following article shows how to use editors in viewers:

http://www.vogella.de/articles/EclipseJFaceTable/article.htm l

HTH & Greetings from Bremen,

- Daniel
Re: how do i add a combo to a grid? [message #663160 is a reply to message #663151] Mon, 04 April 2011 07:33 Go to previous message
elhanan Maayan is currently offline elhanan MaayanFriend
Messages: 131
Registered: November 2009
Senior Member
thanks, i needed something like it, because in the mean time i found out that it happened becouse i bounded the text attribute of combo and not the selection attribute Sad all them secrets stuff , where can i find them?
Previous Topic:Oops - duplicate
Next Topic:SWT.EMBEDDED problem on OSX
Goto Forum:
  


Current Time: Tue Apr 16 15:51:07 GMT 2024

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

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

Back to the top