Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » [Oxygen][Properties View] Editing a property typed by a stereotype (EReference) in a DataType
[Oxygen][Properties View] Editing a property typed by a stereotype (EReference) in a DataType [message #1772000] Sun, 03 September 2017 10:59 Go to next message
Adrian Bernal Bermejo is currently offline Adrian Bernal BermejoFriend
Messages: 10
Registered: May 2017
Junior Member
Hello,

I want to add a property view tab for the following profile:
index.php/fa/30576/0/

In Neon I had my *.ctx file in which I had a MultiReference widget for the property rackElements.

Now, In Oxygen I have DataTypeEditor. However, according to Bug 511095 -https://bugs.eclipse.org/bugs/show_bug.cgi?id=511095 the EReference to Rack stereotype it isn't editable. It looks like this:
index.php/fa/30580/0/

I tried to change the widget like in Neon but then I get the following exeception:

!ENTRY org.eclipse.papyrus.infra.properties.ui 4 0 2017-09-03 12:32:56.684
!MESSAGE Cannot find a valid IObservableList for SIMCAN:DataCenter:rackElements
!STACK 0
java.lang.ClassCastException: com.sun.proxy.$Proxy64 cannot be cast to org.eclipse.core.databinding.observable.list.IObservableList
at org.eclipse.papyrus.infra.properties.ui.widgets.AbstractPropertyEditor.getInputObservableList(AbstractPropertyEditor.java:470)
at org.eclipse.papyrus.infra.properties.ui.widgets.AbstractMultiReference.doBinding(AbstractMultiReference.java:73)
at org.eclipse.papyrus.infra.properties.ui.widgets.AbstractPropertyEditor.checkInput(AbstractPropertyEditor.java:181)
at org.eclipse.papyrus.infra.properties.ui.widgets.AbstractPropertyEditor.setInput(AbstractPropertyEditor.java:336)
at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.xwt.javabean.metadata.properties.BeanProperty.setValue(BeanProperty.java:91)
at org.eclipse.xwt.javabean.ResourceLoader.initSegmentAttribute(ResourceLoader.java:1849)
at org.eclipse.xwt.javabean.ResourceLoader.initAttribute(ResourceLoader.java:1594)
at org.eclipse.xwt.javabean.ResourceLoader.init(ResourceLoader.java:1194)
at org.eclipse.xwt.javabean.ResourceLoader.doCreate(ResourceLoader.java:681)
at org.eclipse.xwt.javabean.ResourceLoader.doCreate(ResourceLoader.java:717)
at org.eclipse.xwt.javabean.ResourceLoader.doCreate(ResourceLoader.java:717)
at org.eclipse.xwt.javabean.ResourceLoader.createUIElement(ResourceLoader.java:378)
at org.eclipse.xwt.internal.core.Core.createCLRElement(Core.java:630)
at org.eclipse.xwt.internal.core.Core.load(Core.java:772)
at org.eclipse.xwt.internal.core.Core.load(Core.java:660)
at org.eclipse.xwt.XWTLoader.loadWithOptions(XWTLoader.java:1072)
at org.eclipse.xwt.XWT.loadWithOptions(XWT.java:623)
at org.eclipse.papyrus.infra.properties.ui.runtime.DefaultDisplayEngine.createSection(DefaultDisplayEngine.java:322)
at org.eclipse.papyrus.infra.properties.ui.runtime.DefaultDisplayEngine.createSection(DefaultDisplayEngine.java:215)
at org.eclipse.papyrus.infra.properties.ui.xwt.XWTSection.display(XWTSection.java:164)
at org.eclipse.papyrus.infra.properties.ui.xwt.XWTSection.refresh(XWTSection.java:175)
at org.eclipse.ui.views.properties.tabbed.TabContents$6.run(TabContents.java:211)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.ui.internal.JFaceUtil.lambda$0(JFaceUtil.java:44)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:173)
at org.eclipse.ui.views.properties.tabbed.TabContents.refresh(TabContents.java:214)
at org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage$SelectionChangedListener.selectionChanged(TabbedPropertySheetPage.java:221)
at org.eclipse.jface.viewers.Viewer$1.run(Viewer.java:155)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.ui.internal.JFaceUtil.lambda$0(JFaceUtil.java:44)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:173)
at org.eclipse.jface.viewers.Viewer.fireSelectionChanged(Viewer.java:152)
at org.eclipse.jface.viewers.StructuredViewer.updateSelection(StructuredViewer.java:2180)
at org.eclipse.jface.viewers.StructuredViewer.handleSelect(StructuredViewer.java:1223)
at org.eclipse.jface.viewers.StructuredViewer$4.widgetSelected(StructuredViewer.java:1252)
at org.eclipse.jface.util.OpenStrategy.fireSelectionEvent(OpenStrategy.java:240)
at org.eclipse.jface.util.OpenStrategy.access$4(OpenStrategy.java:235)
at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:400)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:86)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4428)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1079)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1103)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1088)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:802)
at org.eclipse.ui.internal.views.properties.tabbed.view.TabbedPropertyList.select(TabbedPropertyList.java:862)
at org.eclipse.ui.internal.views.properties.tabbed.view.TabbedPropertyList$ListElement$2.mouseUp(TabbedPropertyList.java:175)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:221)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:86)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4428)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1079)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4238)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3817)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1155)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1044)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:153)
at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:680)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:594)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:148)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:151)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
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:653)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:590)
at org.eclipse.equinox.launcher.Main.run(Main.java:1499)


¿Is there any way to show it with a MultiReference widget like in Neon while it isn't allowed to edit from the DataTypeEditor widget? or ¿Does anybody know a better solution?

Thanks.
Re: [Oxygen][Properties View] Editing a property typed by a stereotype (EReference) in a DataType [message #1772062 is a reply to message #1772000] Tue, 05 September 2017 07:05 Go to previous messageGo to next message
Sebastien Gabel is currently offline Sebastien GabelFriend
Messages: 16
Registered: July 2013
Junior Member
Hi Adrian,

Did you try to generate your property pages with the 'Standard layout generator' instead of the 'Generator for Profile with Datatypes' ? Normally, you will have the Neon editors.

HTH
Re: [Oxygen][Properties View] Editing a property typed by a stereotype (EReference) in a DataType [message #1772476 is a reply to message #1772062] Mon, 11 September 2017 09:10 Go to previous message
Adrian Bernal Bermejo is currently offline Adrian Bernal BermejoFriend
Messages: 10
Registered: May 2017
Junior Member
Hi Sebastien,

yes, I tried. But with the Neon editors I have the exception I plublished before when I try to show the properties tab.
Then I have an exception with Neon editors and a non editable widget (only integers and strings are editable) with Oxygen editors.

Regards.
Previous Topic:Crashing while installing Papyrus Designer
Next Topic:How to Control Display of Custom Stereotype Attributes?
Goto Forum:
  


Current Time: Wed Sep 19 19:06:56 GMT 2018

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

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

Back to the top