Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Compare » Disable stage changes prompt
Disable stage changes prompt [message #1775082] Tue, 24 October 2017 12:09 Go to next message
Luis Mata is currently offline Luis MataFriend
Messages: 4
Registered: October 2017
Junior Member

We updated our EMFCompare version and we noticed that, in the conflict resolution, a new dialog is shown.

When conflicts are resolved and the CompareEditorInput okPressed() is called, a prompt is presented asking the user to stage the changes.
I found that this was a change in this commit.

But my question is how can we control it?
In our case, we have custom behaviours for staging and committing, which makes this dialog unnecessary, even unwanted.
I was expecting that some sort of flag would allow me to choose if I want to have this staging confirmation or not, but I could not find it, nor anything similar. :-(
Is there any way of preventing this prompt to be shown, and accept a default value?

Any information would be much appreciated!
Thank you,
Luis Mata
Re: Disable stage changes prompt [message #1775085 is a reply to message #1775082] Tue, 24 October 2017 12:55 Go to previous messageGo to next message
Philip Langer is currently offline Philip LangerFriend
Messages: 98
Registered: March 2015
Location: Vienna, Austria

Hi Luis,

as soon as you install the bundle in your IDE/application/product, the will register itself as a IMergeResolutionListener and invoke the behavior as you describe (see extension point There is unfortunately no preference right now to control it.

However, especially if you run a custom product, you can get rid of this dialog by excluding the bundle and optionally register your own IMergeResolutionListener implementation that implements your desired behavior instead. If you need the bundle in your product, you can still get rid of the editor by obtaining the registry that tracks all the IMergeResolutionListeners and remove the PostMergeStager from your custom plug-in. You can access the registry via EMFCompareIDEUIPlugin.getDefault().getMergeResolutionListenerRegistry() (see also

If none of the above works for you, it shouldn't be a lot of effort to add a preferences page to EMF Compare which allows users to enable or disable registered IMergeResolutionListeners -- similar to the EMF Compare engine or item providers selection preferences. Please let us know if you are interested in contributing such a preference. Also, feel free to open a bug report on that issue. Thanks!

I hope this helps!

Best wishes,


Philip Langer

Get professional Eclipse developer support:
Re: Disable stage changes prompt [message #1775139 is a reply to message #1775085] Wed, 25 October 2017 08:47 Go to previous message
Luis Mata is currently offline Luis MataFriend
Messages: 4
Registered: October 2017
Junior Member
Hello Phillip,

Thank you very much for the input! We opted to remove the PostMergeStager from the registry since this seemed the most appropriate solution to our current project state.
I already did a few tests and the prompt is not showing anymore, everything seems ok.

Best regards,
Luis Mata
Previous Topic:Changelog
Next Topic:expected behaviour of EMFCompare when Compare two UML models
Goto Forum:

Current Time: Sun Jan 29 04:03:19 GMT 2023

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

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

Back to the top