|
Re: Customize EMF Compare Toolbar [message #1738353 is a reply to message #1738195] |
Tue, 19 July 2016 08:57 |
|
Q1:
No, these buttons are contributed by default and there is no way to rmove them. There are no plans to make them removeable.
Q2:
The toolbar picks up menu contributions for "toolbar:org.eclipse.emf.compare.structuremergeviewer.toolbar" so you can just inject buttons through the usual eclipse extension points.
Q3:
undo and redo are already implemented and available through the usual ctrl+z (undo) and ctrl+y (redo).
Laurent Goubet
Obeo
|
|
|
|
Re: Customize EMF Compare Toolbar [message #1738482 is a reply to message #1738358] |
Wed, 20 July 2016 09:30 |
|
Hi,
The EMFCompareStructureMergeViewer hasn't been implemented with extension capabilities in mind, so you'll likely have quite a hard time overriding it. For example, its toolbar isn't easily replaceable since it's created right at instantiation time and is registered as a listener against the event bus we use internally. You could prevent the addition of the merge buttons by making both models uneditable (through the EMFCompareConfiguration) if that can work for you.
UndoAction and RedoAction in the org.eclipse.emf.compare.ide.ui.internal.contentmergeviewer.util package. This simply goes through our ICompareCommand stack to un/redo the last action. You can access that through the compare configuration (getCompareConfiguration().getEditingDomain().getCommmandStack() ).
Laurent Goubet
Obeo
|
|
|
Powered by
FUDForum. Page generated in 0.03026 seconds