Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [EMFStore] EMFStore does not work with E4?
[EMFStore] EMFStore does not work with E4? [message #1725409] Thu, 03 March 2016 10:34 Go to next message
Teohari Simona is currently offline Teohari SimonaFriend
Messages: 40
Registered: September 2015
Member
Hi guys,

My question is if EMFStore has support for E4.
I have started an e4 demo application following the guide from http://eclipsesource.com/blogs/tutorials/getting-started-with-the-emf-client-platform/ (in short: select org.eclipse.emf.ecp.application.e4.product, select demo.e4.feature and add its requirements) . When I start a local server I get the following error:

!ENTRY org.eclipse.emf.emfstore.common.model 1 1 2016-03-03 12:14:00.731
!MESSAGE Server is RUNNING...Time to relax...
Server is RUNNING...Time to relax...

!ENTRY org.eclipse.e4.ui.workbench 4 0 2016-03-03 12:14:29.362
!MESSAGE Internal Error
!STACK 0
org.eclipse.e4.core.di.InjectionException: java.lang.IllegalStateException: Workbench has not been created yet.
at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:68)
at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:252)
at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:234)
at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:132)
at org.eclipse.e4.core.commands.internal.HandlerServiceHandler.execute(HandlerServiceHandler.java:152)
at org.eclipse.core.commands.Command.executeWithChecks(Command.java:493)
at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:486)
at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:210)
at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.executeItem(HandledContributionItem.java:799)
at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.handleWidgetSelection(HandledContributionItem.java:675)
at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.access$7(HandledContributionItem.java:659)
at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem$4.handleEvent(HandledContributionItem.java:592)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4362)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1113)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4180)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3769)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:1127)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:337)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1018)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:156)
at org.eclipse.e4.ui.internal.workbench.swt.E4Application.start(E4Application.java:159)
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:380)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
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:669)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:608)
at org.eclipse.equinox.launcher.Main.run(Main.java:1515)
at org.eclipse.equinox.launcher.Main.main(Main.java:1488)
Caused by: java.lang.IllegalStateException: Workbench has not been created yet.
at org.eclipse.ui.PlatformUI.getWorkbench(PlatformUI.java:93)
at org.eclipse.emf.emfstore.internal.client.ui.common.MonitoredEMFStoreAction.execute(MonitoredEMFStoreAction.java:61)
at org.eclipse.emf.ecp.emfstore.internal.ui.handler.EMFStoreLogInHelper.login(EMFStoreLogInHelper.java:41)
at org.eclipse.emf.ecp.e4.emfstore.LogInHandler.execute(LogInHandler.java:17)
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.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
... 34 more

I guess this is the same bug opened here: https://bugs.eclipse.org/bugs/show_bug.cgi?id=469451#c1 ?

But there is another way in which we can use EMFStore with E4 or am I doing something wrong?

Thanks,
S.
Re: [EMFStore] EMFStore does not work with E4? [message #1725535 is a reply to message #1725409] Fri, 04 March 2016 08:51 Go to previous messageGo to next message
Jonas Helming is currently offline Jonas HelmingFriend
Messages: 699
Registered: July 2009
Senior Member
Hi,

EMFStore itself has not UI dependencies, so it can be used in e4 and e4.
The default UI for EMFStore is currently bound to the 3.x workbench.
It would be definitly possible with a reasonable amount of effort to
resolve this and make the default EMFStore UI compatible with e4, too.
Are you interested in sponsoring or a contibution?

Best regards

Jonas


Am 03.03.2016 um 11:34 schrieb Teohari Simona:
> Hi guys,
>
> My question is if EMFStore has support for E4.
> I have started an e4 demo application following the guide from
> http://eclipsesource.com/blogs/tutorials/getting-started-with-the-emf-client-platform/
> (in short: select org.eclipse.emf.ecp.application.e4.product, select
> demo.e4.feature and add its requirements) . When I start a local server
> I get the following error:
>
> !ENTRY org.eclipse.emf.emfstore.common.model 1 1 2016-03-03 12:14:00.731
> !MESSAGE Server is RUNNING...Time to relax...
> Server is RUNNING...Time to relax...
>
> !ENTRY org.eclipse.e4.ui.workbench 4 0 2016-03-03 12:14:29.362
> !MESSAGE Internal Error
> !STACK 0
> org.eclipse.e4.core.di.InjectionException:
> java.lang.IllegalStateException: Workbench has not been created yet.
> at
> org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:68)
>
> at
> org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:252)
>
> at
> org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:234)
> at
> org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:132)
>
> at
> org.eclipse.e4.core.commands.internal.HandlerServiceHandler.execute(HandlerServiceHandler.java:152)
>
> at
> org.eclipse.core.commands.Command.executeWithChecks(Command.java:493)
> at
> org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:486)
>
> at
> org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:210)
>
> at
> org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.executeItem(HandledContributionItem.java:799)
>
> at
> org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.handleWidgetSelection(HandledContributionItem.java:675)
>
> at
> org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.access$7(HandledContributionItem.java:659)
>
> at
> org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem$4.handleEvent(HandledContributionItem.java:592)
>
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
> at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4362)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1113)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4180)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3769)
> at
> org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:1127)
>
> at
> org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:337)
>
> at
> org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1018)
>
> at
> org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:156)
>
> at
> org.eclipse.e4.ui.internal.workbench.swt.E4Application.start(E4Application.java:159)
>
> 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:380)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
>
> 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:669)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:608)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1515)
> at org.eclipse.equinox.launcher.Main.main(Main.java:1488)
> Caused by: java.lang.IllegalStateException: Workbench has not been
> created yet.
> at org.eclipse.ui.PlatformUI.getWorkbench(PlatformUI.java:93)
> at
> org.eclipse.emf.emfstore.internal.client.ui.common.MonitoredEMFStoreAction.execute(MonitoredEMFStoreAction.java:61)
>
> at
> org.eclipse.emf.ecp.emfstore.internal.ui.handler.EMFStoreLogInHelper.login(EMFStoreLogInHelper.java:41)
>
> at
> org.eclipse.emf.ecp.e4.emfstore.LogInHandler.execute(LogInHandler.java:17)
> 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.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
>
> ... 34 more
>
> I guess this is the same bug opened here:
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=469451#c1 ?
>
> But there is another way in which we can use EMFStore with E4 or am I
> doing something wrong?
>
> Thanks,
> S.
>


--
--

Jonas Helming

Get professional Eclipse developer support:

http://eclipsesource.com/en/services/developer-support/
Re: [EMFStore] EMFStore does not work with E4? [message #1725749 is a reply to message #1725535] Mon, 07 March 2016 12:18 Go to previous messageGo to next message
Teohari Simona is currently offline Teohari SimonaFriend
Messages: 40
Registered: September 2015
Member
Hi Jonas,

Actually, I am sorry, from friday I do not need the EMFStore in my E4 application. Smile
So, I am struggling to make the e4 app work with the default file data provider.
Now , after I eliminate the following plug-ins:

org.eclipse.emf.ecp.emfstore.ui
org.eclipse.emf.ecp.emfstore.core
org.eclipse.emf.ecp.emfstore.ui.e4
org.eclipse.emf.ecp.emfstore.ui.search

When I run the app and try to create a new project I have a UI error: "No Provider Please check if a suitable provider is installed".
How can I use the default file provider with e4? Can you please give me an advice on the necessary plug-ins for the default file provider (Eclipse Workspace Experimental)?

Thank you,
S.

Re: [EMFStore] EMFStore does not work with E4? [message #1725940 is a reply to message #1725749] Tue, 08 March 2016 15:10 Go to previous messageGo to next message
Eugen Neufeld is currently offline Eugen NeufeldFriend
Messages: 147
Registered: May 2015
Senior Member
Hi Simona,

To use the workspace provider/ file provider you need to add ecp.workspace.core and ecp.workspace.ui .

Cheers,
Eugen


--
Eugen Neufeld

Get professional Eclipse developer support:
http://eclipsesource.com/en/services/developer-support/
Re: [EMFStore] EMFStore does not work with E4? [message #1725946 is a reply to message #1725940] Tue, 08 March 2016 15:22 Go to previous message
Teohari Simona is currently offline Teohari SimonaFriend
Messages: 40
Registered: September 2015
Member
Hi Eugen,

Thank you very much for your help.
It worked.

Best wishes,
S.
Previous Topic:Bugs: collabsible Groups
Next Topic:[EMF Forms] nested attributes in table control
Goto Forum:
  


Current Time: Mon Oct 22 15:20:48 GMT 2018

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

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

Back to the top