This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 245422 - Enumeration annotation property doesn't work
Summary: Enumeration annotation property doesn't work
Status: CLOSED FIXED
Alias: None
Product: Tigerstripe (Archived)
Classification: Technology
Component: Annotations (show other bugs)
Version: 0.4   Edit
Hardware: PC Windows XP
: P2 normal (vote)
Target Milestone: 0.4M0   Edit
Assignee: Steve Jerman CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-27 14:07 EDT by Steve Jerman CLA
Modified: 2011-11-29 10:14 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Steve Jerman CLA 2008-08-27 14:07:49 EDT
So I have an enumeration property... the drop down is populated OK in the property viewer. Whne I hit save I get the following:

eclipse.buildId=I20080617-2000
java.version=1.6.0_06
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Framework arguments:  -product org.eclipse.sdk.ide
Command-line arguments:  -product org.eclipse.sdk.ide -data C:\workspaces\buckTest -dev file:C:/workspaces/gEclipseTigerstripe/.metadata/.plugins/org.eclipse.pde.core/Tigerstripe Workbench/dev.properties -os win32 -ws win32 -arch x86


Error
Wed Aug 27 11:07:46 PDT 2008
Unhandled event loop exception

java.lang.ClassCastException: The value of type 'class org.eclipse.tigerstripe.annotation.ocl.type' must be of type 'org.eclipse.emf.ecore.impl.EEnumImpl@1763f89 (eProxyURI: http:///org.eclipse.tigerstripe.annotation.ocl#//type)'
	at org.eclipse.emf.ecore.impl.EStructuralFeatureImpl$InternalSettingDelegateSingleDataDynamic.validate(EStructuralFeatureImpl.java:2078)
	at org.eclipse.emf.ecore.impl.EStructuralFeatureImpl$InternalSettingDelegateSingleData.dynamicSet(EStructuralFeatureImpl.java:1992)
	at org.eclipse.emf.ecore.impl.BasicEObjectImpl.eDynamicSet(BasicEObjectImpl.java:1126)
	at org.eclipse.emf.ecore.impl.BasicEObjectImpl.eSet(BasicEObjectImpl.java:1100)
	at org.eclipse.emf.ecore.impl.BasicEObjectImpl.eSet(BasicEObjectImpl.java:1071)
	at org.eclipse.tigerstripe.annotation.ui.core.properties.EPropertyImpl.setValue(EPropertyImpl.java:134)
	at org.eclipse.tigerstripe.annotation.ui.core.properties.EPropertyImpl.applyEditorValue(EPropertyImpl.java:47)
	at org.eclipse.tigerstripe.annotation.ui.internal.view.property.PropertyTree.applyEditorValue(PropertyTree.java:180)
	at org.eclipse.tigerstripe.annotation.ui.internal.view.property.PropertyTree.handleSelect(PropertyTree.java:202)
	at org.eclipse.tigerstripe.annotation.ui.internal.view.property.PropertyTree.access$3(PropertyTree.java:199)
	at org.eclipse.tigerstripe.annotation.ui.internal.view.property.PropertyTree$3.mouseDown(PropertyTree.java:138)
	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:179)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3823)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2382)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)
	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2198)
	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:488)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
	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:382)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
	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:549)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1212)
Comment 1 Yuri Strot CLA 2008-09-03 00:38:45 EDT
(In reply to comment #0)
> So I have an enumeration property... the drop down is populated OK in the
> property viewer. Whne I hit save I get the following:
> 
> eclipse.buildId=I20080617-2000
> java.version=1.6.0_06
> java.vendor=Sun Microsystems Inc.
> BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
> Framework arguments:  -product org.eclipse.sdk.ide
> Command-line arguments:  -product org.eclipse.sdk.ide -data
> C:\workspaces\buckTest -dev
> file:C:/workspaces/gEclipseTigerstripe/.metadata/.plugins/org.eclipse.pde.core/Tigerstripe
> Workbench/dev.properties -os win32 -ws win32 -arch x86
> 
> 
> Error
> Wed Aug 27 11:07:46 PDT 2008
> Unhandled event loop exception
> 
> java.lang.ClassCastException: The value of type 'class
> org.eclipse.tigerstripe.annotation.ocl.type' must be of type
> 'org.eclipse.emf.ecore.impl.EEnumImpl@1763f89 (eProxyURI:
> http:///org.eclipse.tigerstripe.annotation.ocl#//type)'
>         at
> org.eclipse.emf.ecore.impl.EStructuralFeatureImpl$InternalSettingDelegateSingleDataDynamic.validate(EStructuralFeatureImpl.java:2078)
>         at
> org.eclipse.emf.ecore.impl.EStructuralFeatureImpl$InternalSettingDelegateSingleData.dynamicSet(EStructuralFeatureImpl.java:1992)
>         at
> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eDynamicSet(BasicEObjectImpl.java:1126)
>         at
> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eSet(BasicEObjectImpl.java:1100)
>         at
> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eSet(BasicEObjectImpl.java:1071)
>         at
> org.eclipse.tigerstripe.annotation.ui.core.properties.EPropertyImpl.setValue(EPropertyImpl.java:134)
>         at
> org.eclipse.tigerstripe.annotation.ui.core.properties.EPropertyImpl.applyEditorValue(EPropertyImpl.java:47)
>         at
> org.eclipse.tigerstripe.annotation.ui.internal.view.property.PropertyTree.applyEditorValue(PropertyTree.java:180)
>         at
> org.eclipse.tigerstripe.annotation.ui.internal.view.property.PropertyTree.handleSelect(PropertyTree.java:202)
>         at
> org.eclipse.tigerstripe.annotation.ui.internal.view.property.PropertyTree.access$3(PropertyTree.java:199)
>         at
> org.eclipse.tigerstripe.annotation.ui.internal.view.property.PropertyTree$3.mouseDown(PropertyTree.java:138)
>         at
> org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:179)
>         at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
>         at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
>         at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3823)
>         at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422)
>         at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2382)
>         at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)
>         at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2198)
>         at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)
>         at
> org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
>         at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:488)
>         at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
>         at
> org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
>         at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
>         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:382)
>         at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
>         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:549)
>         at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
>         at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
>         at org.eclipse.equinox.launcher.Main.main(Main.java:1212)
> 

Is this bug can be closed? It looks similar to bug 243501.
Comment 2 Duncan Keysell CLA 2010-01-19 12:43:43 EST
This works for me. Can we close it?