Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [EEF] Using EEF with Abstact class, inheritance and reference.
[EEF] Using EEF with Abstact class, inheritance and reference. [message #916886] Wed, 19 September 2012 15:45
aurelien didier is currently offline aurelien didierFriend
Messages: 11
Registered: June 2012
Junior Member
Hi everybody,

I have a problem when I use EEF with an Interface and SubTypes, when I use the model bellow.

index.php/fa/11565/0/

I have added edition element linked to a view which dispaly Advanced Table Composition widget, but when I try to create a new SequencingRelation, I have the following problem :

!ENTRY org.eclipse.emf.common 2 0 2012-09-19 12:12:16.660
!MESSAGE An exception was ignored during command execution
!STACK 0
org.eclipse.emf.common.util.WrappedException: An exception was ignored during command execution
at org.eclipse.emf.common.command.BasicCommandStack.handleError(BasicCommandStack.java:287)
at org.eclipse.emf.common.command.BasicCommandStack.execute(BasicCommandStack.java:118)
at org.eclipse.emf.eef.runtime.impl.components.StandardPropertiesEditionComponent.firePropertiesChanged(StandardPropertiesEditionComponent.java:185)
at MoSaRT.SoftwarePlatform.SoftwareBehaviour.parts.forms.GlobalBehaviourPropertiesEditionPartForm$9.handleAdd(GlobalBehaviourPropertiesEditionPartForm.java:387)
at org.eclipse.emf.eef.runtime.ui.widgets.ReferencesTable$AddButtonlistener.mouseUp(ReferencesTable.java:563)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:219)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3588)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3209)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2701)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
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:344)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
Caused by: java.lang.NullPointerException
at org.eclipse.emf.eef.runtime.impl.utils.EEFUtils.instanciableSubTypes(EEFUtils.java:182)
at org.eclipse.emf.eef.runtime.impl.utils.EEFUtils.instanciableTypesInHierarchy(EEFUtils.java:174)
at org.eclipse.emf.eef.runtime.ui.wizards.PropertiesEditionWizard$ElementCreationWizardPage.createControl(PropertiesEditionWizard.java:232)
at org.eclipse.jface.wizard.Wizard.createPageControls(Wizard.java:174)
at org.eclipse.emf.eef.runtime.ui.wizards.PropertiesEditionWizard.createPageControls(PropertiesEditionWizard.java:188)
at org.eclipse.jface.wizard.WizardDialog.createPageControls(WizardDialog.java:736)
at org.eclipse.jface.wizard.WizardDialog.createContents(WizardDialog.java:608)
at org.eclipse.jface.window.Window.create(Window.java:431)
at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1089)
at org.eclipse.jface.window.Window.open(Window.java:790)
at org.eclipse.emf.eef.runtime.policies.impl.CreateEditingPolicy.execute(CreateEditingPolicy.java:69)
at MoSaRT.SoftwarePlatform.SoftwareBehaviour.components.GlobalBehaviourPropertiesEditionComponent.updateSemanticModel(GlobalBehaviourPropertiesEditionComponent.java:297)
at org.eclipse.emf.eef.runtime.impl.components.StandardPropertiesEditionComponent$2.execute(StandardPropertiesEditionComponent.java:190)
at org.eclipse.emf.common.command.BasicCommandStack.execute(BasicCommandStack.java:84)
... 29 more

!ENTRY org.eclipse.emf.common 2 0 2012-09-19 12:15:30.806
!MESSAGE An exception was ignored during command execution
!STACK 0
org.eclipse.emf.common.util.WrappedException: An exception was ignored during command execution
at org.eclipse.emf.common.command.BasicCommandStack.handleError(BasicCommandStack.java:287)
at org.eclipse.emf.common.command.BasicCommandStack.execute(BasicCommandStack.java:118)
at org.eclipse.emf.eef.runtime.impl.components.StandardPropertiesEditionComponent.firePropertiesChanged(StandardPropertiesEditionComponent.java:185)
at MoSaRT.SoftwarePlatform.SoftwareBehaviour.parts.forms.GlobalBehaviourPropertiesEditionPartForm$5.handleAdd(GlobalBehaviourPropertiesEditionPartForm.java:291)
at org.eclipse.emf.eef.runtime.ui.widgets.ReferencesTable$AddButtonlistener.mouseUp(ReferencesTable.java:563)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:219)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3588)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3209)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2701)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
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:344)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
Caused by: java.lang.NullPointerException
at org.eclipse.emf.eef.runtime.impl.utils.EEFUtils.instanciableSubTypes(EEFUtils.java:182)
at org.eclipse.emf.eef.runtime.impl.utils.EEFUtils.instanciableTypesInHierarchy(EEFUtils.java:174)
at org.eclipse.emf.eef.runtime.ui.wizards.PropertiesEditionWizard$ElementCreationWizardPage.createControl(PropertiesEditionWizard.java:232)
at org.eclipse.jface.wizard.Wizard.createPageControls(Wizard.java:174)
at org.eclipse.emf.eef.runtime.ui.wizards.PropertiesEditionWizard.createPageControls(PropertiesEditionWizard.java:188)
at org.eclipse.jface.wizard.WizardDialog.createPageControls(WizardDialog.java:736)
at org.eclipse.jface.wizard.WizardDialog.createContents(WizardDialog.java:608)
at org.eclipse.jface.window.Window.create(Window.java:431)
at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1089)
at org.eclipse.jface.window.Window.open(Window.java:790)
at org.eclipse.emf.eef.runtime.policies.impl.CreateEditingPolicy.execute(CreateEditingPolicy.java:69)
at MoSaRT.SoftwarePlatform.SoftwareBehaviour.components.GlobalBehaviourPropertiesEditionComponent.updateSemanticModel(GlobalBehaviourPropertiesEditionComponent.java:322)
at org.eclipse.emf.eef.runtime.impl.components.StandardPropertiesEditionComponent$2.execute(StandardPropertiesEditionComponent.java:190)
at org.eclipse.emf.common.command.BasicCommandStack.execute(BasicCommandStack.java:84)
... 29 more

But I can edit it when I have create it with New Child in the tree view.

So, I have try to do the same thing on a simplier model (see the attachment), to see if it was caused by the use of inheritance but when I choose to create an eleve, everything work fine, whereas, when I choose to create a prof, the properties aren't display. That problem appears only during the creation, and I can edit my object prof normally as you can see.

index.php/fa/11566/0/

When I try to create a prof I have in the console:

This time my console display:

!ENTRY org.eclipse.ui 4 0 2012-09-19 11:42:06.506
!MESSAGE Unhandled event loop exception
!STACK 0
java.lang.ClassCastException: classe.impl.ProfImpl cannot be cast to classe.Eleve
at classe.components.ElevePropertiesEditionComponent.initPart(ElevePropertiesEditionComponent.java:72)
at org.eclipse.emf.eef.runtime.ui.viewers.PropertiesEditionContentProvider.initPart(PropertiesEditionContentProvider.java:226)
at org.eclipse.emf.eef.runtime.ui.viewers.PropertiesEditionViewer.addPartTab(PropertiesEditionViewer.java:518)
at org.eclipse.emf.eef.runtime.ui.viewers.PropertiesEditionViewer.initTabbedControl(PropertiesEditionViewer.java:481)
at org.eclipse.emf.eef.runtime.ui.viewers.PropertiesEditionViewer.initControl(PropertiesEditionViewer.java:447)
at org.eclipse.emf.eef.runtime.ui.viewers.PropertiesEditionViewer.inputChanged(PropertiesEditionViewer.java:416)
at org.eclipse.jface.viewers.ContentViewer.setInput(ContentViewer.java:280)
at org.eclipse.jface.viewers.StructuredViewer.setInput(StructuredViewer.java:1690)
at org.eclipse.emf.eef.runtime.ui.wizards.PropertiesEditionWizard$EditPropertyWizardPage.setInput(PropertiesEditionWizard.java:325)
at org.eclipse.emf.eef.runtime.ui.wizards.PropertiesEditionWizard$ElementCreationWizardPage$1.widgetSelected(PropertiesEditionWizard.java:254)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
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:4169)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
at org.eclipse.jface.window.Window.open(Window.java:801)
at org.eclipse.emf.eef.runtime.policies.impl.CreateEditingPolicy.execute(CreateEditingPolicy.java:69)
at classe.components.ClassePropertiesEditionComponent.updateSemanticModel(ClassePropertiesEditionComponent.java:175)
at org.eclipse.emf.eef.runtime.impl.components.StandardPropertiesEditionComponent$2.execute(StandardPropertiesEditionComponent.java:190)
at org.eclipse.emf.common.command.BasicCommandStack.execute(BasicCommandStack.java:78)
at org.eclipse.emf.eef.runtime.impl.components.StandardPropertiesEditionComponent.firePropertiesChanged(StandardPropertiesEditionComponent.java:185)
at classe.parts.forms.ClassePropertiesEditionPartForm$6.handleAdd(ClassePropertiesEditionPartForm.java:303)
at org.eclipse.emf.eef.runtime.ui.widgets.ReferencesTable$AddButtonlistener.mouseUp(ReferencesTable.java:563)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:220)
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:4169)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1022)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:916)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:585)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:540)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
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:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
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:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)

Sorry for the french example, and for my bad english.

I don't think that the two problem are linked, but the problem I faced with my example surprised me.

Any help will be great,

Thanks,

Aurélien.
  • Attachment: model.png
    (Size: 23.63KB, Downloaded 783 times)
  • Attachment: example.png
    (Size: 41.68KB, Downloaded 822 times)
Previous Topic:EMFStore server running within an AS
Next Topic:[EMF Teneo] problems with integration of MySQL and EclipseLink in EMF Teneo
Goto Forum:
  


Current Time: Fri Apr 26 07:02:36 GMT 2024

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

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

Back to the top