|
Re: CDO view does not start correct model editor [message #425490 is a reply to message #425489] |
Thu, 27 November 2008 15:05 |
Victor Roldan Betancort Messages: 524 Registered: July 2009 |
Senior Member |
|
|
Hi Andres,
currently CDO View opens a generic editor for all your models.
This editor uses the ItemProvider defined in the .edit project of your
model. If you have customized your .edit, the generic editor should show
the custom icons/labels. Is your model .edit loaded in the Eclipse
instance you are using, or you only have it as a project in your
workspace? In that case you should launch a second instance of the
workbench, so it loads your model and .edit plugins.
Have you generated you models code as CDO Native? The current 2.0 branch
does not have support for it :( But it will arrive, sooner or later! :P
If it's native, you can use "automatic package registry", so you won't
need to register the .ecore model. Otherwise, dynamic registration (the
way you are currently doing) should do the trick as well.
Anders Forsell escribió:
> Hi,
>
> I am having trouble using the CDO viewer in Eclipse to start the correct
> model editor. I register the workspace .ecore file before opening a
> transaction and then load/create a resource. In some scenarios it
> doesn't seem to find an editor and shows the root package with an
> incorrect icon. In other scenarios it seems to be the wrong version of
> the model editor.
>
> How does the CDO view in Eclipse know which model editor (EMF.Editor) to
> use?
>
> ---
> Anders
|
|
|
Re: CDO view does not start correct model editor [message #425491 is a reply to message #425490] |
Thu, 27 November 2008 21:36 |
Anders Forsell Messages: 127 Registered: July 2009 |
Senior Member |
|
|
Hi,
Thanks for the clarification of the use of the generic editor for the CDO
View.
It seems my problem was due to an old version of the .ecore file being
registered in the DB.
After cleaning the DB, it actually works both when using the CDO viewer in
the same workspace as the model/edit code, and when running a runtime
workbench.
---
Anders
"Víctor Roldán Betancort" <vroldan@opencanarias.com> skrev i meddelandet
news:ggmcvk$k38$1@build.eclipse.org...
> Hi Andres,
>
> currently CDO View opens a generic editor for all your models.
> This editor uses the ItemProvider defined in the .edit project of your
> model. If you have customized your .edit, the generic editor should show
> the custom icons/labels. Is your model .edit loaded in the Eclipse
> instance you are using, or you only have it as a project in your
> workspace? In that case you should launch a second instance of the
> workbench, so it loads your model and .edit plugins.
>
> Have you generated you models code as CDO Native? The current 2.0 branch
> does not have support for it :( But it will arrive, sooner or later! :P
>
> If it's native, you can use "automatic package registry", so you won't
> need to register the .ecore model. Otherwise, dynamic registration (the
> way you are currently doing) should do the trick as well.
>
> Anders Forsell escribió:
>> Hi,
>>
>> I am having trouble using the CDO viewer in Eclipse to start the correct
>> model editor. I register the workspace .ecore file before opening a
>> transaction and then load/create a resource. In some scenarios it doesn't
>> seem to find an editor and shows the root package with an incorrect icon.
>> In other scenarios it seems to be the wrong version of the model editor.
>>
>> How does the CDO view in Eclipse know which model editor (EMF.Editor) to
>> use?
>>
>> ---
>> Anders
|
|
|
Powered by
FUDForum. Page generated in 0.03302 seconds