Skip to main content



      Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [EMF Compare]icons for remote changes not implemented?
[EMF Compare]icons for remote changes not implemented? [message #122334] Tue, 13 May 2008 10:28 Go to next message
Eclipse UserFriend
Hi,

It seems the remote provider does not pick up the model icons contributed by
generated Edit plugins, and the image is shown as a generic diamond of EMF
models. It works fine for local changes though. The class I refer to is
RemoteAddModelElementItemProvider, here is the getImage() impl:

/**

* This returns RemoteAddModelElement.gif.

* <!-- begin-user-doc --> <!-- end-user-doc -->

* @generated

*/

@Override

public Object getImage(Object object) {

return overlayImage(object,
getResourceLocator().getImage("full/obj16/RemoteAddModelElement "));
//$NON-NLS-1$

}

Furthermore the icon referenced here is a diamond in the source code.

In comparison, the addmodelelementitemprovider implementation was overriden:



/**

* This returns AddModelElement.gif. <!-- begin-user-doc --> <!--
end-user-doc -->

*

* @generated NOT

*/

@Override

public Object getImage(Object object) {

final AddModelElement diff = (AddModelElement)object;

Object labelImage =
AdapterUtils.getItemProviderImage(diff.getRightElement());


if (labelImage != null) {

List<Object> images = new ArrayList<Object>(2);

images.add(labelImage);

images.add(getResourceLocator().getImage("full/obj16/AddModelElement "));
//$NON-NLS-1$

labelImage = new ComposedImage(images);

} else {

labelImage = getResourceLocator().getImage("full/obj16/AddModelElement");
//$NON-NLS-1$

}


return labelImage;

}



Thanks,

David
Re: [EMF Compare]icons for remote changes not implemented? [message #122462 is a reply to message #122334] Wed, 14 May 2008 04:00 Go to previous messageGo to next message
Eclipse UserFriend
This is a multi-part message in MIME format.
--------------050001030807050700010404
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

David,

Remote changes (3-way comparison) have been implemented after all
others. I guess we forgot the icons when implementing it :) (or worse,
we left "@generated" on the *Impl classes which effectively overrode the
modifications).

Though this doesn't seem to be of utmost importance, could you raise a
bugzilla on this issue?

Thanks

Laurent Goubet
Obeo

David Michonneau a
Re: [EMF Compare]icons for remote changes not implemented? [message #122472 is a reply to message #122462] Wed, 14 May 2008 04:19 Go to previous message
Eclipse UserFriend
https://bugs.eclipse.org/bugs/show_bug.cgi?id=232019 has been filed.

Thanks,

David

"laurent Goubet" <laurent.goubet@obeo.fr> wrote in message
news:g0e66b$912$1@build.eclipse.org...
> David,
>
> Remote changes (3-way comparison) have been implemented after all
> others. I guess we forgot the icons when implementing it :) (or worse,
> we left "@generated" on the *Impl classes which effectively overrode the
> modifications).
>
> Though this doesn't seem to be of utmost importance, could you raise a
> bugzilla on this issue?
>
> Thanks
>
> Laurent Goubet
> Obeo
>
> David Michonneau a
Re: [EMF Compare]icons for remote changes not implemented? [message #618042 is a reply to message #122334] Wed, 14 May 2008 04:00 Go to previous message
Eclipse UserFriend
This is a multi-part message in MIME format.
--------------050001030807050700010404
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

David,

Remote changes (3-way comparison) have been implemented after all
others. I guess we forgot the icons when implementing it :) (or worse,
we left "@generated" on the *Impl classes which effectively overrode the
modifications).

Though this doesn't seem to be of utmost importance, could you raise a
bugzilla on this issue?

Thanks

Laurent Goubet
Obeo

David Michonneau a
Re: [EMF Compare]icons for remote changes not implemented? [message #618043 is a reply to message #122462] Wed, 14 May 2008 04:19 Go to previous message
Eclipse UserFriend
https://bugs.eclipse.org/bugs/show_bug.cgi?id=232019 has been filed.

Thanks,

David

"laurent Goubet" <laurent.goubet@obeo.fr> wrote in message
news:g0e66b$912$1@build.eclipse.org...
> David,
>
> Remote changes (3-way comparison) have been implemented after all
> others. I guess we forgot the icons when implementing it :) (or worse,
> we left "@generated" on the *Impl classes which effectively overrode the
> modifications).
>
> Though this doesn't seem to be of utmost importance, could you raise a
> bugzilla on this issue?
>
> Thanks
>
> Laurent Goubet
> Obeo
>
> David Michonneau a
Previous Topic:[CDO 0.8.0M7] server problem
Next Topic:[CDO 0.8.0 M7] unknow error / problem
Goto Forum:
  


Current Time: Sat Jul 12 17:39:37 EDT 2025

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

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

Back to the top