Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc) » EMFCP is crashing the eclipse workspace
EMFCP is crashing the eclipse workspace [message #1100539] |
Tue, 03 September 2013 04:26  |
Eclipse User |
|
|
|
Hello together,
i am developing an eclipse rcp application and would like to use the EMFCP plugins. i started with this tutorial: eclipsesource.com/blogs/tutorials/getting-started-with-the-emf-client-platform/
after plugin installation, my eclipse opens a default workspace every time i start it and i am not able to change it back to save the last known workspace. at least the "switch workspace" option works fine.
In addition: after 1 or 2 starts eclipse takes more then 10 minuts to load the workspace.
i tryed to install the EMFCP plugins into a new eclipse with same results.
also: where is the bugtracker for the project? the link from the homepage (http://www.eclipse.org/emfclient/support.html) is a dead end.
any one else with this problem?
thanks
PS: I am using eclipse kepler and also tryed it with 4.2
[Updated on: Tue, 03 September 2013 04:59] by Moderator
|
|
| | | | | |
Re: EMFCP is crashing the eclipse workspace [message #1101514 is a reply to message #1101332] |
Wed, 04 September 2013 10:59   |
Eclipse User |
|
|
|
Hi,
I can reproduce this. I have created a bug for this:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=416531
It has probably something to do with the initialization oder of
services, however hard to debug. I will try to fix this a soon as
possible. In the meantime, I hope this is no blocker for you. If you
want to avoid manually switching your workspace everytime you re-start,
you might want to define an explicit target platform and add ECP in
that. That allows you do deinstall it from the IDE as long as the issue
occurs.
Regards
Jonas
Am 04.09.2013 12:14, schrieb Jonas Helming:
> thanks, I am looking into it now...
>
> Am 04.09.2013 09:16, schrieb Simon Stumps:
>> Hello again,
>>
>> here is what i have done:
>>
>> - http://eclipse.org/emfclient/gettingstarted.html -> step 1 download
>> and then on the top right klicked the "the latest modeling edition" link
>> and downloaded the "eclipse-modeling-kepler-R-win32-x86_64.zip".
>> - unpack and start
>> - then I used the eclipse update site under
>> http://download.eclipse.org/emfclient/releases/102 to install all
>> available packages:
>>
>> picture(remove whitespace since i am under 5 posts): http://
>> i.imgur.com/kktlpbu.png
>> after restarting eclipse, I closed it and opened it again, the workspace
>> was already changed and I had to manually change it back to the one I
>> have chosen at the first start of this new eclipse. It looks like that
>> the workspace location changes to C:/user/[username]/workspace. The
>> workspace I have created only contains a .metadata folder with the
>> typically ".mylyn", and ".plugins" folders, that's all.
>> Maybe you can reproduce it at your own computer.
>>
>> Regards,
>> Simon
>>
>
|
|
|
Re: EMFCP is crashing the eclipse workspace [message #1103236 is a reply to message #1101514] |
Fri, 06 September 2013 10:16   |
Eclipse User |
|
|
|
Hi,
the issue should be fixed in 1.1.M1, I suggest you upgrade to this version.
http://eclipse.org/emfclient/download.html#milestone
Please tell me, if this resolves the problems.
Regards
Jonas
Am 04.09.2013 16:59, schrieb Jonas Helming:
> Hi,
> I can reproduce this. I have created a bug for this:
>
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=416531
>
> It has probably something to do with the initialization oder of
> services, however hard to debug. I will try to fix this a soon as
> possible. In the meantime, I hope this is no blocker for you. If you
> want to avoid manually switching your workspace everytime you re-start,
> you might want to define an explicit target platform and add ECP in
> that. That allows you do deinstall it from the IDE as long as the issue
> occurs.
>
> Regards
>
> Jonas
>
> Am 04.09.2013 12:14, schrieb Jonas Helming:
>> thanks, I am looking into it now...
>>
>> Am 04.09.2013 09:16, schrieb Simon Stumps:
>>> Hello again,
>>>
>>> here is what i have done:
>>>
>>> - http://eclipse.org/emfclient/gettingstarted.html -> step 1 download
>>> and then on the top right klicked the "the latest modeling edition" link
>>> and downloaded the "eclipse-modeling-kepler-R-win32-x86_64.zip".
>>> - unpack and start
>>> - then I used the eclipse update site under
>>> http://download.eclipse.org/emfclient/releases/102 to install all
>>> available packages:
>>>
>>> picture(remove whitespace since i am under 5 posts): http://
>>> i.imgur.com/kktlpbu.png
>>> after restarting eclipse, I closed it and opened it again, the workspace
>>> was already changed and I had to manually change it back to the one I
>>> have chosen at the first start of this new eclipse. It looks like that
>>> the workspace location changes to C:/user/[username]/workspace. The
>>> workspace I have created only contains a .metadata folder with the
>>> typically ".mylyn", and ".plugins" folders, that's all.
>>> Maybe you can reproduce it at your own computer.
>>>
>>> Regards,
>>> Simon
>>>
>>
>
|
|
| | | | | |
Re: EMFCP is crashing the eclipse workspace [message #1106643 is a reply to message #1106583] |
Wed, 11 September 2013 07:04   |
Eclipse User |
|
|
|
Hi,
looking at the line where the NPE is thrown let me assume, that the
model element is null (getModelElement()). Could you please check this?
getModelElement() should return the EObject to be opened.
However, in 1.1.M1, we provide a new API, which makes it much easier to
create an editor. We are planning to deprecate the ECPControlContext in
future versions. However, the new API does not yet support references
features yet. If your EObjects only have simple attributes, you can
already try it. It is documented here:
http://eclipsesource.com/blogs/tutorials/emf-client-platform-how-to-customize-the-editor-layout/
(last paragraph)
If you experience any more issues, you can also contact me on Skype if
you want: "JonasHelming"
Thanks for the feedback!
Regards
Jonas
Am 11.09.2013 11:26, schrieb Simon Stumps:
> In my MyECPControlContextImpl i use the new
> ViewModelContextImpl(getView(), getModelElement()); method to get a
> ViewContext. i use a copy from ECPControlContextImpl.getView() and there
> is the NPE.
>
> private View getView() {
> int highestPrio = IViewProvider.NOT_APPLICABLE;
> IViewProvider selectedProvider = null;
> for (final IViewProvider viewProvider :
> ViewProviderHelper.getViewProviders()) {
> final int prio = viewProvider.canRender(getModelElement());
> if (prio > highestPrio) {
> highestPrio = prio;
> selectedProvider = viewProvider;
> }
> }
> if (selectedProvider != null) {
> return selectedProvider.generate(getModelElement());
> }
> return null;
> }
>
>
> NPE is in the "final int prio =
> viewProvider.canRender(getModelElement());" line
>
> java.lang.NullPointerException
> at
> org.eclipse.emf.ecp.view.model.provider.xmi.ViewModelFileExtensionsManager.hasViewModelFor(ViewModelFileExtensionsManager.java:139)
>
> at
> org.eclipse.emf.ecp.view.model.provider.xmi.ExtensionXMIViewModelProvider.canRender(ExtensionXMIViewModelProvider.java:30)
>
> at
> com.project.presentation.produktmodellierung.editor.MyECPControlContextImpl.getView(MyECPControlContextImpl.java:124)
>
> at
> com.project.presentation.produktmodellierung.editor.MyECPControlContextImpl.<init>(MyECPControlContextImpl.java:47)
>
|
|
| |
Goto Forum:
Current Time: Wed Jul 23 10:34:27 EDT 2025
Powered by FUDForum. Page generated in 0.25229 seconds
|