|
Re: Print Structural differences to Console [message #1697640 is a reply to message #1696990] |
Fri, 05 June 2015 14:20 |
|
Hi Yasser,
You should directly depend on org.eclipse.emf.compare.edit and re-use the IItemXXXProviders that we use ourselves to display the UI. Basically, look at org.eclipse.emf.compare.provider.IItemDescriptionProvider and how you can use it. It should look a little like this:
AdapterFactory adapterFactory = new ComposedAdapterFactory(ComposedAdapterFactory.Descriptor.Registry.INSTANCE);
final IItemDescriptionProvider itemDescriptionProvider = (IItemDescriptionProvider) adapterFactory.adapt(attributeChange, IItemDescriptionProvider.class);
System.out.println(itemDescriptionProvider.getDescription(attributeChange);
or you can take a look at the org.eclipse.emf.compare.utils.EMFComparePrettyPrinter for something we used in unit tests to have a standalone console view of a comparison model.
Regards,
Laurent Goubet
Obeo
[Updated on: Fri, 05 June 2015 14:21] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.04214 seconds