ComboBoxPropertyDescriptor Error [message #139204] |
Thu, 02 October 2003 22:46 ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: shathaway.antennasoftware.com
Has anyone seen this error when clicking on a property that is using the
ComboBoxPropertyDescriptor as the PropertyDescriptor?
org.eclipse.jface.util.Assert$AssertionFailedException: Assertion failed:
at org.eclipse.jface.util.Assert.isTrue(Assert.java:168)
at org.eclipse.jface.util.Assert.isTrue(Assert.java:154)
at
org.eclipse.jface.viewers.ComboBoxCellEditor.doSetValue(Comb oBoxCellEditor.j
ava:205)
at org.eclipse.jface.viewers.CellEditor.setValue(CellEditor.jav a:784)
at
org.eclipse.ui.views.properties.PropertySheetEntry.getEditor (PropertySheetEn
try.java:318)
at
org.eclipse.ui.views.properties.PropertySheetViewer.activate CellEditor(Prope
rtySheetViewer.java:143)
at
org.eclipse.ui.views.properties.PropertySheetViewer.handleSe lect(PropertyShe
etViewer.java:598)
at
org.eclipse.ui.views.properties.PropertySheetViewer.access$6 (PropertySheetVi
ewer.java:576)
at
org.eclipse.ui.views.properties.PropertySheetViewer$4.mouseD own(PropertyShee
tViewer.java:667)
at
org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:128)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :81)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:840)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:1838)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :1545)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1402)
at org.eclipse.ui.internal.Workbench.run(Workbench.java:1385)
at
org.eclipse.core.internal.boot.InternalBootLoader.run(Intern alBootLoader.jav
a:858)
at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl
..java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.eclipse.core.launcher.Main.basicRun(Main.java:291)
at org.eclipse.core.launcher.Main.run(Main.java:747)
at org.eclipse.core.launcher.Main.main(Main.java:583)
Thanks. If you need more info, let me know.
Scott
|
|
|
Re: ComboBoxPropertyDescriptor Error [message #139403 is a reply to message #139204] |
Fri, 03 October 2003 15:13 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: shathaway.antennasoftware.com
Ok. Fixed my own problem. When you use a ComboBoxPropertyDescriptor
getPropertyValue should return and int that represent the index of the item
chosen from your initial array of choices. Also, the setPropertyValue
receives an int. You create a LabelProvider to handle the mapping between
the ints and the strings.
"Scott Hathaway" <shathaway@antennasoftware.com> wrote in message
news:bli9ng$udi$1@eclipse.org...
> Has anyone seen this error when clicking on a property that is using the
> ComboBoxPropertyDescriptor as the PropertyDescriptor?
>
> org.eclipse.jface.util.Assert$AssertionFailedException: Assertion failed:
> at org.eclipse.jface.util.Assert.isTrue(Assert.java:168)
> at org.eclipse.jface.util.Assert.isTrue(Assert.java:154)
> at
>
org.eclipse.jface.viewers.ComboBoxCellEditor.doSetValue(Comb oBoxCellEditor.j
> ava:205)
> at org.eclipse.jface.viewers.CellEditor.setValue(CellEditor.jav a:784)
> at
>
org.eclipse.ui.views.properties.PropertySheetEntry.getEditor (PropertySheetEn
> try.java:318)
> at
>
org.eclipse.ui.views.properties.PropertySheetViewer.activate CellEditor(Prope
> rtySheetViewer.java:143)
> at
>
org.eclipse.ui.views.properties.PropertySheetViewer.handleSe lect(PropertyShe
> etViewer.java:598)
> at
>
org.eclipse.ui.views.properties.PropertySheetViewer.access$6 (PropertySheetVi
> ewer.java:576)
> at
>
org.eclipse.ui.views.properties.PropertySheetViewer$4.mouseD own(PropertyShee
> tViewer.java:667)
> at
> org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:128)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :81)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:840)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:1838)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :1545)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1402)
> at org.eclipse.ui.internal.Workbench.run(Workbench.java:1385)
> at
>
org.eclipse.core.internal.boot.InternalBootLoader.run(Intern alBootLoader.jav
> a:858)
> at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39
> )
> at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl
> .java:25)
> at java.lang.reflect.Method.invoke(Method.java:324)
> at org.eclipse.core.launcher.Main.basicRun(Main.java:291)
> at org.eclipse.core.launcher.Main.run(Main.java:747)
> at org.eclipse.core.launcher.Main.main(Main.java:583)
>
> Thanks. If you need more info, let me know.
>
> Scott
>
>
|
|
|
Re: ComboBoxPropertyDescriptor Error [message #275740 is a reply to message #139403] |
Thu, 11 November 2004 19:53 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: ranjit.notMyId.com
Hey Scott,
Thanx for this quick explanation. I was banging my head on this one for
almost a day now . you are the man :).
-Ranjit
Scott Hathaway wrote:
> Ok. Fixed my own problem. When you use a ComboBoxPropertyDescriptor
> getPropertyValue should return and int that represent the index of the item
> chosen from your initial array of choices. Also, the setPropertyValue
> receives an int. You create a LabelProvider to handle the mapping between
> the ints and the strings.
>
>
> "Scott Hathaway" <shathaway@antennasoftware.com> wrote in message
> news:bli9ng$udi$1@eclipse.org...
>
>>Has anyone seen this error when clicking on a property that is using the
>>ComboBoxPropertyDescriptor as the PropertyDescriptor?
>>
<snip>
|
|
|
Powered by
FUDForum. Page generated in 0.03002 seconds