UI generation of EMF model [message #961850] |
Sun, 28 October 2012 12:56  |
Eclipse User |
|
|
|
Hi,
This is in continuation of my post - http://www.eclipse.org/forums/index.php/m/929563/#msg_929563
Since my question is related to EEF and ECP, I think this is the right forum....
I had a look at EEF and also ECP(EMF Client Platform).
From what I saw, EEF has enhanced the Properties View to provide a good Look and feel.
But, I liked the ECP look and feel better since it is very much closer to what we were thinking about...
- Having a navigator where the objects are created(Even compositions)
- Having an Editor for each object where each of the EStructuralFeatures are represented by generic Controls (like METextControl, MEBoolControl etc. )
However, from my understanding so far ECP sems to be tightly integrated with EMF-Store which is not really preferred for our use case since we want to persist the model into XML files.
So, two questions from me right now -
1) Can EEF generate Editors and Controls like ECP? If yes, can you pl. point us to some samples
2) If no, Can ECP be modified to not use EMF-Store and persist into XML files?
Thanks,
Ranjith
|
|
|
|
|
|
|
Re: UI generation of EMF model [message #965887 is a reply to message #965323] |
Wed, 31 October 2012 11:27   |
Eclipse User |
|
|
|
Hi,
you need to install at least one provider, e.g. EMFStore or CDO. Further
you need to install the according backend. In case you want to try
EMFstore, you also need to install it:
http://download.eclipse.org/emf-store/milestones/latest
same for CDO: eclipse.org/CDO
I have create a BR to notify the user in case no provider is installed:
http://download.eclipse.org/emf-store/milestones/latest
Cheer
Jonas
Am 31.10.2012 07:20, schrieb Ranjith Chungath:
> I tried using ECP 1.0.0.M3, but having some trouble while creating a new
> project in the ECP Model Explorer....
>
> It does not create the project and throws a stack trace in the console...
>
> The following are the installation details...
> - Eclipse SDK - 4.2.1M20120914-1800
> - EMF SDK - 2.8.1v20120917-0436
> - EMF Client Platform - 1.0.0.M3
> - EMF Client Platform(Workspace Support) - 1.0.0.M3
> - Extended Editing Framework - 1.1.1.201206051542
> Runtime
> SDK
> Development Tools
> Extension
> Richtext widget
> EMF Edit generation using Acceleo
>
> The following is the console output...
>
> ProviderDescriptor: org.eclipse.emf.ecp.workspace.core [306] -->
> file:D:\myapps\eclipse-4.2.1-ecp1\eclipse\plugins\org.eclipse.emf.ecp.workspace.core_1.0.0.M3.jar
>
> Loading ECPRepositoryManagerImpl from
> D:\myapps\eclipse-4.2.1-ecp1\runtime-New_configuration\.metadata\.plugins\org.eclipse.emf.ecp.core\repositories
>
> RepositoryDescriptor: org.eclipse.emf.ecp.workspace.core [306] -->
> file:D:\myapps\eclipse-4.2.1-ecp1\eclipse\plugins\org.eclipse.emf.ecp.workspace.core_1.0.0.M3.jar
>
> Loading ECPProjectManagerImpl from
> D:\myapps\eclipse-4.2.1-ecp1\runtime-New_configuration\.metadata\.plugins\org.eclipse.emf.ecp.core\projects
>
> UIProviderDescriptor: org.eclipse.emf.ecp.workspace.ui [307] -->
> file:D:\myapps\eclipse-4.2.1-ecp1\eclipse\plugins\org.eclipse.emf.ecp.workspace.ui_1.0.0.M3.jar
>
> !SESSION 2012-10-31 11:15:42.443
> -----------------------------------------------
> eclipse.buildId=M20120914-1800
> java.version=1.7.0
> java.vendor=Oracle Corporation
> BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
> Framework arguments: -product org.eclipse.sdk.ide
> Command-line arguments: -product org.eclipse.sdk.ide -data
> D:\myapps\eclipse-4.2.1-ecp1\workspace/../runtime-New_configuration -dev
> file:D:/myapps/eclipse-4.2.1-ecp1/workspace/.metadata/.plugins/org.eclipse.pde.core/New_configuration/dev.properties
> -os win32 -ws win32 -arch x86 -consoleLog
>
> !ENTRY org.eclipse.ui 4 0 2012-10-31 11:16:21.149
> !MESSAGE Unhandled event loop exception
> !STACK 0
> org.eclipse.e4.core.di.InjectionException:
> java.util.ConcurrentModificationException
> at
> org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:63)
>
> at
> org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:229)
>
> at
> org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:210)
> at
> org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:131)
>
> at
> org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:171)
>
> at
> org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.executeItem(HandledContributionItem.java:814)
>
> at
> org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.handleWidgetSelection(HandledContributionItem.java:707)
>
> at
> org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.access$7(HandledContributionItem.java:691)
>
> at
> org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem$4.handleEvent(HandledContributionItem.java:630)
>
> 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:1029)
>
> at
> org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
>
> at
> org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:923)
>
> at
> org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
>
> at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
> at
> org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
>
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
> 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(NativeMethodAccessorImpl.java:57)
>
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>
> at java.lang.reflect.Method.invoke(Method.java:601)
> 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)
>
>
>
> Caused by: java.util.ConcurrentModificationException
> at java.util.HashMap$HashIterator.nextEntry(HashMap.java:806)
> at java.util.HashMap$KeyIterator.next(HashMap.java:841)
> at
> org.eclipse.emf.ecp.internal.core.ECPProjectImpl.setupFilteredEPackages(ECPProjectImpl.java:167)
>
> at
> org.eclipse.emf.ecp.internal.core.ECPProjectImpl.<init>(ECPProjectImpl.java:80)
> at
> org.eclipse.emf.ecp.internal.core.ECPProjectManagerImpl.createProject(ECPProjectManagerImpl.java:46)
>
> at
> org.eclipse.emf.ecp.ui.util.HandlerHelper.createProject(HandlerHelper.java:77)
>
> at
> org.eclipse.emf.ecp.ui.commands.CreateProjectHandler.execute(CreateProjectHandler.java:27)
>
> at
> org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:290)
>
> at
> org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:76)
>
> 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:601)
> at
> org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
>
> ... 34 more
>
> Pl. let me know if I am missing something here....
>
> Thanks,
> Ranjith
>
|
|
|
Re: UI generation of EMF model [message #965901 is a reply to message #965323] |
Wed, 31 October 2012 11:41  |
Eclipse User |
|
|
|
On a second thought, this looks like a different error, have you already
installed emfstore? if yes, which version?
Am 31.10.2012 07:20, schrieb Ranjith Chungath:
> I tried using ECP 1.0.0.M3, but having some trouble while creating a new
> project in the ECP Model Explorer....
>
> It does not create the project and throws a stack trace in the console...
>
> The following are the installation details...
> - Eclipse SDK - 4.2.1M20120914-1800
> - EMF SDK - 2.8.1v20120917-0436
> - EMF Client Platform - 1.0.0.M3
> - EMF Client Platform(Workspace Support) - 1.0.0.M3
> - Extended Editing Framework - 1.1.1.201206051542
> Runtime
> SDK
> Development Tools
> Extension
> Richtext widget
> EMF Edit generation using Acceleo
>
> The following is the console output...
>
> ProviderDescriptor: org.eclipse.emf.ecp.workspace.core [306] -->
> file:D:\myapps\eclipse-4.2.1-ecp1\eclipse\plugins\org.eclipse.emf.ecp.workspace.core_1.0.0.M3.jar
>
> Loading ECPRepositoryManagerImpl from
> D:\myapps\eclipse-4.2.1-ecp1\runtime-New_configuration\.metadata\.plugins\org.eclipse.emf.ecp.core\repositories
>
> RepositoryDescriptor: org.eclipse.emf.ecp.workspace.core [306] -->
> file:D:\myapps\eclipse-4.2.1-ecp1\eclipse\plugins\org.eclipse.emf.ecp.workspace.core_1.0.0.M3.jar
>
> Loading ECPProjectManagerImpl from
> D:\myapps\eclipse-4.2.1-ecp1\runtime-New_configuration\.metadata\.plugins\org.eclipse.emf.ecp.core\projects
>
> UIProviderDescriptor: org.eclipse.emf.ecp.workspace.ui [307] -->
> file:D:\myapps\eclipse-4.2.1-ecp1\eclipse\plugins\org.eclipse.emf.ecp.workspace.ui_1.0.0.M3.jar
>
> !SESSION 2012-10-31 11:15:42.443
> -----------------------------------------------
> eclipse.buildId=M20120914-1800
> java.version=1.7.0
> java.vendor=Oracle Corporation
> BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
> Framework arguments: -product org.eclipse.sdk.ide
> Command-line arguments: -product org.eclipse.sdk.ide -data
> D:\myapps\eclipse-4.2.1-ecp1\workspace/../runtime-New_configuration -dev
> file:D:/myapps/eclipse-4.2.1-ecp1/workspace/.metadata/.plugins/org.eclipse.pde.core/New_configuration/dev.properties
> -os win32 -ws win32 -arch x86 -consoleLog
>
> !ENTRY org.eclipse.ui 4 0 2012-10-31 11:16:21.149
> !MESSAGE Unhandled event loop exception
> !STACK 0
> org.eclipse.e4.core.di.InjectionException:
> java.util.ConcurrentModificationException
> at
> org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:63)
>
> at
> org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:229)
>
> at
> org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:210)
> at
> org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:131)
>
> at
> org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:171)
>
> at
> org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.executeItem(HandledContributionItem.java:814)
>
> at
> org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.handleWidgetSelection(HandledContributionItem.java:707)
>
> at
> org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.access$7(HandledContributionItem.java:691)
>
> at
> org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem$4.handleEvent(HandledContributionItem.java:630)
>
> 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:1029)
>
> at
> org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
>
> at
> org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:923)
>
> at
> org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
>
> at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
> at
> org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
>
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
> 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(NativeMethodAccessorImpl.java:57)
>
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>
> at java.lang.reflect.Method.invoke(Method.java:601)
> 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)
>
>
>
> Caused by: java.util.ConcurrentModificationException
> at java.util.HashMap$HashIterator.nextEntry(HashMap.java:806)
> at java.util.HashMap$KeyIterator.next(HashMap.java:841)
> at
> org.eclipse.emf.ecp.internal.core.ECPProjectImpl.setupFilteredEPackages(ECPProjectImpl.java:167)
>
> at
> org.eclipse.emf.ecp.internal.core.ECPProjectImpl.<init>(ECPProjectImpl.java:80)
> at
> org.eclipse.emf.ecp.internal.core.ECPProjectManagerImpl.createProject(ECPProjectManagerImpl.java:46)
>
> at
> org.eclipse.emf.ecp.ui.util.HandlerHelper.createProject(HandlerHelper.java:77)
>
> at
> org.eclipse.emf.ecp.ui.commands.CreateProjectHandler.execute(CreateProjectHandler.java:27)
>
> at
> org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:290)
>
> at
> org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:76)
>
> 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:601)
> at
> org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
>
> ... 34 more
>
> Pl. let me know if I am missing something here....
>
> Thanks,
> Ranjith
>
|
|
|
Powered by
FUDForum. Page generated in 0.34564 seconds