Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 #618030] Tue, 13 May 2008 14:28
David Michonneau is currently offline David MichonneauFriend
Messages: 85
Registered: July 2009
Member
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
Previous Topic:[Teneo] Unique Id generation size
Next Topic:org.eclipse.emf.teneo.hibernate has vanished from update site ?
Goto Forum:
  


Current Time: Sat Mar 28 19:12:33 GMT 2020

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

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

Back to the top