Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » EMF Forms to RCP App
EMF Forms to RCP App [message #1407723] Wed, 13 August 2014 09:50 Go to next message
Madalina Luciana is currently offline Madalina LucianaFriend
Messages: 6
Registered: July 2014
Location: Munich
Junior Member
Hello,


so what I'm basically trying to do is embedding a EMF Forms View into my RCP App.
As I wrote this

try {
ECPSWTViewRenderer.INSTANCE.render(formChild, gep );
} catch (ECPRendererException e1) {
e1.printStackTrace();
}


I got


!ENTRY org.eclipse.ui 4 0 2014-08-13 11:35:03.277
!MESSAGE Unhandled event loop exception
!STACK 0
java.lang.NullPointerException
at org.eclipse.emf.ecp.view.internal.swt.SWTRendererFactoryImpl.getRenderer(SWTRendererFactoryImpl.java:217)
at org.eclipse.emf.ecp.view.internal.swt.ECPSWTViewRendererImpl.render(ECPSWTViewRendererImpl.java:70)
at org.eclipse.emf.ecp.view.internal.swt.ECPSWTViewRendererImpl.render(ECPSWTViewRendererImpl.java:58)
at org.eclipse.emf.ecp.view.internal.swt.ECPSWTViewRendererImpl.render(ECPSWTViewRendererImpl.java:45)
at reiseapp.swt.TableClass$2.mouseUp(TableClass.java:298)
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.Display.sendEvent(Display.java:4353)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1061)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4172)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
at reiseapp.swt.Application.start(Application.java:20)
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:382)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:236)
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:648)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
at org.eclipse.equinox.launcher.Main.main(Main.java:1438)



Does anybody know how to fix this, or maybe some source where I can look up for the steps necessary to successfully embed the form-based UI?


ps: I followed the steps from the "Getting started with EMF Forms" tutorial.



Re: EMF Forms to RCP App [message #1408071 is a reply to message #1407723] Thu, 14 August 2014 06:57 Go to previous messageGo to next message
Paweł Doleciński is currently offline Paweł DolecińskiFriend
Messages: 44
Registered: January 2014
Member
Hi,

could you write your plug-in dependencies? Looks like it's missing something.
Re: EMF Forms to RCP App [message #1408089 is a reply to message #1408071] Thu, 14 August 2014 07:54 Go to previous messageGo to next message
Madalina Luciana is currently offline Madalina LucianaFriend
Messages: 6
Registered: July 2014
Location: Munich
Junior Member
Hello,

sure.



org.eclipse.core.databinding.observable

org.eclipse.core.resources

org.eclipse.core.runtime

org.eclipse.emf.ecore

org.eclipse.emf.ecp.cdo.core

org.eclipse.emf.ecp.cdo.ui

org.eclipse.emf.ecp.ui.view.swt

org.eclipse.emf.ecp.view.model.provider.xmi

org.eclipse.emf.ecp.view.model.provider.generator

org.eclipse.jface.databinding

org.eclipse.swt

org.eclipse.ui

org.eclipse.ui.workbench

org.junit
Re: EMF Forms to RCP App [message #1408151 is a reply to message #1408089] Thu, 14 August 2014 10:59 Go to previous messageGo to next message
Paweł Doleciński is currently offline Paweł DolecińskiFriend
Messages: 44
Registered: January 2014
Member
Try to add org.eclipse.emf.ecp.view.core.swt additionally. This is where basic renderers are registered.
Re: EMF Forms to RCP App [message #1408166 is a reply to message #1408151] Thu, 14 August 2014 12:00 Go to previous message
Madalina Luciana is currently offline Madalina LucianaFriend
Messages: 6
Registered: July 2014
Location: Munich
Junior Member
It worked! Thank you Smile
Previous Topic:[CDO] CDO Server not recognizing dropins
Next Topic:[xcore] Dynamic instance deserialization problem
Goto Forum:
  


Current Time: Wed Oct 23 17:41:41 GMT 2019

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

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

Back to the top