Custumize MergeAction [message #1816222] |
Thu, 24 October 2019 05:44  |
Eclipse User |
|
|
|
Hello,
I use the emf compare plugin in my own RCP.
When the Compare Editor is displayed, i want to redefine the MergeAction because I want to check if the merge is possible for the selection in the TreeViewer.
How can i customize the CompareToolBar to use another class of MergeAction ?
Thanks.
|
|
|
|
Re: Custumize MergeAction [message #1816915 is a reply to message #1816222] |
Tue, 12 November 2019 02:30  |
Eclipse User |
|
|
|
Hello Laurent,
thanks for your answer, I tried to define a new extension point of "org.eclipse.compare.structureMergeViewers" .
When the "findStructureViewer(..)" method of the CompareUIPlugin class is called, my extension point is loaded and the "descriptors" variable contains 2 extensions point after this line :
"ViewerDescriptor[] descriptors = findStructureViewerDescriptor(oldViewer, input, configuration);"
Then, this line of code
"return getViewer(descriptors[0], oldViewer, parent, configuration);"
calls always the extension point of the "org.eclipse.emf.compare.ide.ui" plugin and never mine.
So I don't know how change it.
Stéphanie.
|
|
|
Powered by
FUDForum. Page generated in 0.03608 seconds