Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Compare » Contributing to the structure merge viewer's toolbar?
Contributing to the structure merge viewer's toolbar? [message #1341450] Thu, 08 May 2014 13:41
Andreas Mayer is currently offline Andreas MayerFriend
Messages: 11
Registered: April 2014
Junior Member
Hi,

I would like to contribute a command of my own to the toolbar of EMF Compare's structure merge viewer. Since the toolbar picks up contributions for "toolbar:org.eclipse.emf.compare.structuremergeviewer.toolbar", that's quite easy. However, there seems to be no feasible way for the command handler to access the Comparison instance or the diff model. So you can contribute commands, but you can't actually do anything useful with it. Or am I missing something?

A few more details: In the command handler I can access current active editor (an instance of org.eclipse.team.internal.ui.synchronize.SaveablesCompareEditorInput) or its input (an instance of org.eclipse.compare.CompareEditorInput). Neither provides an API to access EMF Compare-specific information nor can they be adapted to something that does.

The CompareEditorInput.getCompareConfiguration() returns a CompareConfiguration, which supports generic properties. EMF Compare uses these properties to attach the Comparison instance (among others), which I am looking for, but the corresponding property key is a private implementation detail of org.eclipse.emf.compare.ide.ui.internal.configuration.EMFCompareConfiguration. This could be used for a hack, but again is no safe API to access the diff model.

Andreas
Previous Topic:[EMFCompare] duplicate post. Please ignore
Next Topic:[EMF Compare] Register custom EMF models for comparison
Goto Forum:
  


Current Time: Fri Apr 26 13:52:52 GMT 2024

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

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

Back to the top