Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 324196 - [properties view] No possibility to set body and language attributes of opaque expressions
Summary: [properties view] No possibility to set body and language attributes of opaqu...
Status: RESOLVED FIXED
Alias: None
Product: Papyrus
Classification: Modeling
Component: Core (show other bugs)
Version: 0.7.1   Edit
Hardware: PC Windows XP
: P3 normal with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Camille Letavernier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 321225 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-09-01 09:59 EDT by alanusse Mising name CLA
Modified: 2011-09-23 07:53 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description alanusse Mising name CLA 2010-09-01 09:59:53 EDT
No possibility to set body and language attributes of opaque expressions in properties view

+ When selecting the green "+" sign the only result is to get language0 value for language and body0 value for body. It is not possible to change the value afterwards.

Normally we should be able to select OCL, natural Language of a programming language and we should be able to enter the expression in the body part.

+ Moreover when trying to click within the corresponding attributes in the advanced tab we get the following  error

eclipse.buildId=I20100608-0911
java.version=1.6.0_03
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=fr_FR
Framework arguments:  -product org.eclipse.epp.package.modeling.product
Command-line arguments:  -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.modeling.product


Error
Wed Sep 01 15:54:47 CEST 2010
Unhandled event loop exception

java.lang.ClassCastException: org.eclipse.emf.edit.provider.ItemPropertyDescriptor$PropertyValueWrapper cannot be cast to java.util.List
at org.eclipse.emf.edit.ui.provider.PropertyDescriptor$4.openDialogBox(PropertyDescriptor.java:496)
at org.eclipse.jface.viewers.DialogCellEditor$2.widgetSelected(DialogCellEditor.java:244)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:234)
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.java:4066)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2629)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2593)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2427)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:670)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:663)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
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:369)
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:619)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
Comment 1 Remi Schnekenburger CLA 2010-09-21 08:50:08 EDT
*** Bug 321225 has been marked as a duplicate of this bug. ***
Comment 2 remy.brugnon CLA 2011-04-06 06:05:47 EDT
It is same for OpaqueBehavior, it is impossible to fill body lines (body0, body1, ..., bodyn).
What is the proposed solution?
Thank you.
Comment 3 Camille Letavernier CLA 2011-09-23 07:53:43 EDT
This is now possible with the new property view framework, since 0.8.0