Home » Modeling » EMF » [CDO] CDO Editor not showing EMF.edit images
[CDO] CDO Editor not showing EMF.edit images [message #646670] |
Wed, 29 December 2010 18:32 |
|
Dear CDO devs,
EMF editor shows my model images properly.
I'm also using Common Navigator Framework (CNF) views with EMF's
AdapterFactoryContentProvider and it can display my model's images
properly using EMF generated ItemProvider's.
However there are several problems with CDO Editor:
1. in CDO Editor they only display standard images.
2. in Outline view also display standard images.
3. Selection doesn't work in CDO Editor, Properties view is not
updated. However selecting an item in Outline view correctly updates
the selection and Properties view is updated.
Screenshot is here:
http://i23.photobucket.com/albums/b398/ceefour/Public/cdo-ed itor-not-
showing-icons.png
Please help. Thank youn.
--
Eclipse Driven Rich Application Development -
http://eclipsedriven.blogspot.com/
|
|
| |
Re: [CDO] CDO Editor not showing EMF.edit images [message #646722 is a reply to message #646701] |
Thu, 30 December 2010 13:34 |
Victor Roldan Betancort Messages: 524 Registered: July 2009 |
Senior Member |
|
|
Hi Hendy and Martin,
as Martin comments, CDO Editor is just a generic editor for
demonstration purpose. Dawn is definetively the way to go, as it
provides all the functionality needed to properly work with CDO
concepts, and furthermore if deals well with things like
TransactionalEditingDomain, which is particularly harmful when dealing
with big models.
Even though, you seem to be right with those issues in CDOEditor /
Outline view. However, I could not confirm the Properties View issue, it
seems to work well in my case. Could you please provide us some
information about your work environment (platform, architecture, eclipse
version, cdo version...).
Could you please also raise a bug to keep track of the .edit framework
images issue?
Thanks,
Víctor.
Martin Flügge escribió:
>
> Hi Hendy,
>
> the CDOEditor is more an instrument to demonstrate the functionality of
> CDO. I do not think that it is designed from productive code.
>
> If you want to have the same look and feel on your CDO based tree editor
> you should have a look at
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=323828
>
> It is not yet prepared for every possible switch in the EMF genmodel but
> works nice for the default settings.
>
> Unfortunately I haven't time to write a tutorial on how to use the
> generator for the EMF editor extension, but basically it works as
> described here (for GMF editors): http://wiki.eclipse.org/Dawn_Codegen
>
> Only use the EMF genmodel do create the Dawn GenModel.
>
> Hope this helps.
>
> Cheers,
>
> Martin
>
>
> Am 29.12.2010 19:32, schrieb Hendy Irawan:
>> Dear CDO devs,
>>
>> EMF editor shows my model images properly.
>> I'm also using Common Navigator Framework (CNF) views with EMF's
>> AdapterFactoryContentProvider and it can display my model's images
>> properly using EMF generated ItemProvider's.
>>
>> However there are several problems with CDO Editor:
>>
>> 1. in CDO Editor they only display standard images.
>> 2. in Outline view also display standard images.
>> 3. Selection doesn't work in CDO Editor, Properties view is not
>> updated. However selecting an item in Outline view correctly updates
>> the selection and Properties view is updated.
>>
>> Screenshot is here:
>>
>> http://i23.photobucket.com/albums/b398/ceefour/Public/cdo-ed itor-not-
>> showing-icons.png
>>
>> Please help. Thank youn.
>>
>
|
|
|
Re: [CDO] CDO Editor not showing EMF.edit images [message #646723 is a reply to message #646722] |
Thu, 30 December 2010 13:43 |
Victor Roldan Betancort Messages: 524 Registered: July 2009 |
Senior Member |
|
|
Hendy,
I just realized I didn't test your issue with the right model. I tested
with one of our test models, org.eclipse.emf.cdo.tests.model1, which
indeed doesn't have customized .edit icons.
However, I tested with org.eclipse.emf.cdo.examples.company, which does
have customized icons, and it worked properly: both CDOEditor and
Outline view showed the customized icons. Please do abort the submission
of the bug, my apologies.
Still, please let us know your work environment. Also, could you tell us
which steps are you following to use CDOEditor?
Cheers,
Víctor.
Víctor Roldán Betancort escribió:
> Hi Hendy and Martin,
>
> as Martin comments, CDO Editor is just a generic editor for
> demonstration purpose. Dawn is definetively the way to go, as it
> provides all the functionality needed to properly work with CDO
> concepts, and furthermore if deals well with things like
> TransactionalEditingDomain, which is particularly harmful when dealing
> with big models.
>
> Even though, you seem to be right with those issues in CDOEditor /
> Outline view. However, I could not confirm the Properties View issue, it
> seems to work well in my case. Could you please provide us some
> information about your work environment (platform, architecture, eclipse
> version, cdo version...).
>
> Could you please also raise a bug to keep track of the .edit framework
> images issue?
>
> Thanks,
> Víctor.
>
> Martin Flügge escribió:
>>
>> Hi Hendy,
>>
>> the CDOEditor is more an instrument to demonstrate the functionality of
>> CDO. I do not think that it is designed from productive code.
>>
>> If you want to have the same look and feel on your CDO based tree editor
>> you should have a look at
>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=323828
>>
>> It is not yet prepared for every possible switch in the EMF genmodel but
>> works nice for the default settings.
>>
>> Unfortunately I haven't time to write a tutorial on how to use the
>> generator for the EMF editor extension, but basically it works as
>> described here (for GMF editors): http://wiki.eclipse.org/Dawn_Codegen
>>
>> Only use the EMF genmodel do create the Dawn GenModel.
>>
>> Hope this helps.
>>
>> Cheers,
>>
>> Martin
>>
>>
>> Am 29.12.2010 19:32, schrieb Hendy Irawan:
>>> Dear CDO devs,
>>>
>>> EMF editor shows my model images properly.
>>> I'm also using Common Navigator Framework (CNF) views with EMF's
>>> AdapterFactoryContentProvider and it can display my model's images
>>> properly using EMF generated ItemProvider's.
>>>
>>> However there are several problems with CDO Editor:
>>>
>>> 1. in CDO Editor they only display standard images.
>>> 2. in Outline view also display standard images.
>>> 3. Selection doesn't work in CDO Editor, Properties view is not
>>> updated. However selecting an item in Outline view correctly updates
>>> the selection and Properties view is updated.
>>>
>>> Screenshot is here:
>>>
>>> http://i23.photobucket.com/albums/b398/ceefour/Public/cdo-ed itor-not-
>>> showing-icons.png
>>>
>>> Please help. Thank youn.
>>>
>>
>
|
|
|
Re: [CDO] CDO Editor not showing EMF.edit images [message #646778 is a reply to message #646723] |
Fri, 31 December 2010 03:54 |
|
Víctor Roldán Betancort wrote:
> Hendy,
>
> I just realized I didn't test your issue with the right model. I
tested
> with one of our test models, org.eclipse.emf.cdo.tests.model1, which
> indeed doesn't have customized .edit icons.
>
> However, I tested with org.eclipse.emf.cdo.examples.company, which
does
> have customized icons, and it worked properly: both CDOEditor and
> Outline view showed the customized icons. Please do abort the
submission
> of the bug, my apologies.
>
> Still, please let us know your work environment. Also, could you tell
us
> which steps are you following to use CDOEditor?
>
> Cheers,
> Víctor.
Thank you Victor, I've solved a part of the problem :
http://eclipsedriven.blogspot.com/2010/12/activating-emf-edi t-
itemprovider.html
I found the reason, I changed the model's nsURI and did not change all
references to it.
Now the images are showing in all views.
However the Outline problem still persists, and I've found a
reproducible way:
1. Open both CDO Editor and Outline view, and Properties view. Do NOT
click anything in Outline view.
2. Click objects in CDO Editor, Properties view updates properly.
3. Click objects in Outline view, Properties view updates properly.
4. Click objects in CDO Editor again.. Properties view do not update. It
still uses the selection from Outline view.
--
Eclipse Driven Rich Application Development -
http://eclipsedriven.blogspot.com/
|
|
| |
Goto Forum:
Current Time: Tue Sep 24 13:45:58 GMT 2024
Powered by FUDForum. Page generated in 1.08213 seconds
|