Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [emfstore-dev] ECP on Eclipse E4

Hi Hammad, 
You can follow this manual: http://eclipsesource.com/blogs/tutorials/getting-started-with-the-emf-client-platform/#custommodel
You have to select the "org.eclipse.emf.ecp.appliocation.e4.product" on the first page:
Inline-Bild 1
On the plug-ins tab you select the "org.eclipse.emf.ecp.demo.e4.feature" and press "select required". 

If you need additional plugins like your model, you can follow the instruction given in the manual. 

If you have further questions, please use the newsgroup instead of the mailing-list, this way other ecp users will be able to help you. Furthermore one can search the newsgroup for already asked and hopefully answered questions.

Thank you.

Cheers,
Eugen Neufeld, M.Sc.

Software Engineer / Consultant
EclipseSource Munich

Email: eneufeld@xxxxxxxxxxxxxxxxx
Web: http://eclipsesource.com/munich
Mobil: +49 176 22 85 11 50
Phone: +49 89 21 555 301 - 3
Fax: +49 89 21 555 301 - 9

EclipseSource München GmbH
Agnes-Pockels-Bogen 1
80992 München

General Managers: Dr. Jonas Helming, Dr. Maximilian Kögel
Registered Office: Sailerstraße 5, 80809 München, Commercial Register
München, HRB 191789


2014-02-26 19:01 GMT+01:00 Hammad Aslam Khan <hammad@xxxxxxxxxxxxxx>:
Hi Eugen,
I download the release_12 updated on 25th as it mentions. How can I run the ecp e4 ui example that it says is downloaded but its not there in the Eclipse examples?

Thanks,
Hammad


From: Eugen Neufeld <neufeld.eugen@xxxxxxxxxxxxxx>
Date: Wed, 26 Feb 2014 17:02:46 +0100
To: Hammad Aslam Khan <hammad@xxxxxxxxxxxxxx>
Cc: <emfstore-dev@xxxxxxxxxxx>
Subject: Fwd: [emfstore-dev] ECP on Eclipse E4

Hi Hammad, 
As far as I can see from your stacktrace, you are using an older version of ECP. During the last months we did a huge refactoring. I would recommend you to switch to ECP 1.2 which will be released today.
If you don't want to switch or need to solve this problem today, I can only recommend you to check your runconfiguration and check that all plugins with the naming schema ecp.view.* are checked, eg org.eclipse.emf.ecp.view.group.model, org.eclipse.emf.ecp.view.group.model.edit, org.eclipse.emf.ecp.view.group.model.ui and org.eclipse.emf.ecp.view.group.model.swt . 

If you have issues  configuring the runconfig please send a screenshot of your runconfig. 
If you have further questions please ask. You can find alot of already answered questions in the newsgroup which you can find here: http://www.eclipse.org/forums/?group=eclipse.technology.emft  (news://news.eclipse.org/eclipse.technology.emft)

Cheers,
Eugen


From: Hammad Aslam Khan <hammad@xxxxxxxxxxxxxx>
Date: 2014-02-26 12:28 GMT+01:00
Subject: [emfstore-dev] ECP on Eclipse E4
To: emfstore-dev@xxxxxxxxxxx


While using ECP in E4 application, when a certain editor is invoked for ModelElement -> double-click event, I get an exception. I am not sure where I am making a mistake… Exception occurs when EditorPageContext attempts to create UI I.e. edtrPgCntnt.createUI(composite)//in below code

Can someone help on some pointers?

My code:

@PostConstruct

public void postConstruct(Composite composite,@Named(IServiceConstants.ACTIVE_SELECTION) @Optional EObject mdlElmnt){


ECPEditorContext edtrCntxt=new EditorContext(mdlElmnt, ECPUtil.getECPProjectManager().getProject(mdlElmnt), composite.getShell());

IEditorCompositeProvider edtrPgCntnt = EditorFactory.INSTANCE.getEditorComposite(edtrCntxt);

edtrPgCntnt.createUI(composite);

}



Exception is:


org.eclipse.e4.core.di.InjectionException: java.lang.NullPointerException

at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:63)

at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:877)

at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:119)

at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:333)

at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:254)

at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:162)

at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:102)

at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:71)

at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:53)

at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:129)

at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:949)

at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:633)

at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:735)

at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:706)

at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:700)

at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)

at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:685)

at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer.showTab(StackRenderer.java:1096)

at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer$1.handleEvent(LazyStackRenderer.java:66)

at org.eclipse.e4.ui.services.internal.events.UIEventHandler$1.run(UIEventHandler.java:41)

at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)

at org.eclipse.swt.widgets.Display.syncExec(Display.java:4650)

at org.eclipse.e4.ui.internal.workbench.swt.E4Application$1.syncExec(E4Application.java:205)

at org.eclipse.e4.ui.services.internal.events.UIEventHandler.handleEvent(UIEventHandler.java:38)

at org.eclipse.equinox.internal.event.EventHandlerWrapper.handleEvent(EventHandlerWrapper.java:197)

at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:197)

at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:1)

at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)

at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)

at org.eclipse.equinox.internal.event.EventAdminImpl.dispatchEvent(EventAdminImpl.java:135)

at org.eclipse.equinox.internal.event.EventAdminImpl.sendEvent(EventAdminImpl.java:78)

at org.eclipse.equinox.internal.event.EventComponent.sendEvent(EventComponent.java:39)

at org.eclipse.e4.ui.services.internal.events.EventBroker.send(EventBroker.java:80)

at org.eclipse.e4.ui.internal.workbench.UIEventPublisher.notifyChanged(UIEventPublisher.java:58)

at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:374)

at org.eclipse.e4.ui.model.application.ui.impl.ElementContainerImpl.setSelectedElement(ElementContainerImpl.java:171)

at org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.showElementInWindow(ModelServiceImpl.java:576)

at org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.bringToTop(ModelServiceImpl.java:543)

at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.delegateBringToTop(PartServiceImpl.java:605)

at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.activate(PartServiceImpl.java:585)

at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.activate(PartServiceImpl.java:539)

at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.activate(PartServiceImpl.java:528)

at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.showPart(PartServiceImpl.java:1021)

at org.eclipse.e4.ui.internal.workbench.ApplicationPartServiceImpl.showPart(ApplicationPartServiceImpl.java:111)

at com.mypackage.application.parts.views.MYECPModelElementOpener.openModelElement(MYECPModelElementOpener.java:22)

at org.eclipse.emf.ecp.internal.ui.util.ECPHandlerHelper.openModelElement(ECPHandlerHelper.java:395)

at com.mypackage.application.parts.ModelViewPart$1.doubleClick(ModelViewPart.java:64)

at org.eclipse.jface.viewers.StructuredViewer$1.run(StructuredViewer.java:845)

at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)

at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)

at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)

at org.eclipse.jface.viewers.StructuredViewer.fireDoubleClick(StructuredViewer.java:843)

at org.eclipse.jface.viewers.AbstractTreeViewer.handleDoubleSelect(AbstractTreeViewer.java:1477)

at org.eclipse.jface.viewers.StructuredViewer$4.widgetDefaultSelected(StructuredViewer.java:1246)

at org.eclipse.jface.util.OpenStrategy.fireDefaultSelectionEvent(OpenStrategy.java:249)

at org.eclipse.jface.util.OpenStrategy.access$0(OpenStrategy.java:246)

at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:307)

at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)

at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4166)

at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1466)

at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1489)

at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1474)

at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1279)

at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4012)

at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3651)

at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1113)

at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)

at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:997)

at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:138)

at org.eclipse.e4.ui.internal.workbench.swt.E4Application.start(E4Application.java:162)

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:354)

at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181)

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:606)

at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636)

at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)

at org.eclipse.equinox.launcher.Main.run(Main.java:1450)

at org.eclipse.equinox.launcher.Main.main(Main.java:1426)

Caused by: java.lang.NullPointerException

at org.eclipse.emf.ecp.internal.ui.view.builders.NodeBuilders.build(NodeBuilders.java:119)

at org.eclipse.emf.ecp.internal.ui.view.builders.NodeBuilders.build(NodeBuilders.java:103)

at org.eclipse.emf.ecp.ui.view.swt.internal.ECPSWTViewRendererImpl.render(ECPSWTViewRendererImpl.java:98)

at org.eclipse.emf.ecp.internal.editor.ViewModelEditorComposite.createUI(ViewModelEditorComposite.java:53)

at com.mypackage.application.parts.views.MYEditor.postConstruct(ECPE4Editor.java:36)

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:606)

at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)

... 82 more


_______________________________________________
emfstore-dev mailing list
emfstore-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/emfstore-dev





--
Eugen Neufeld, M.Sc.

Software Engineer / Consultant
EclipseSource Munich

Email: eneufeld@xxxxxxxxxxxxxxxxx
Web: http://eclipsesource.com/munich
Mobil: +49 176 22 85 11 50
Phone: +49 89 21 555 301 - 3
Fax: +49 89 21 555 301 - 9

EclipseSource München GmbH
Agnes-Pockels-Bogen 1
80992 München

General Managers: Dr. Jonas Helming, Dr. Maximilian Kögel
Registered Office: Sailerstraße 5, 80809 München, Commercial Register
München, HRB 191789



Back to the top