Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsHow to call the difference view on two Java files
https://www.eclipse.org/forums/index.php/mv/msg/376218/912896/#msg_912896
I have the following problem. In my plugin I create two Java files via AST and would like to show the difference view of the files.
I've found the explanation in the JDT manual, how to add the extension point in the plugin. Unfortunately I couldn't find a method with which it is possible to display the MergeView.
Is there such a method or isn't it possible at all to show the MergeView programmtically?
Any help would be appreciated.
Thanks,
Gerald ]]>Gerald Hokamp2012-09-14T11:16:42-00:00Re: How to call the difference view on two Java files
https://www.eclipse.org/forums/index.php/mv/msg/376218/915117/#msg_915117
Quote:
I've found the explanation in the JDT manual, how to add the extension point in the plugin.
what part of the manual are you referring to?
Did you create your own MergeViewer?
You may want to have a look at class CompareUI from org.eclipse.compare, which, however, requires that you already have a CompareEditorInput (not trivial).
Also org.eclipse.team.internal.ui.Utils (from org.eclipse.team.ui) may server for inspiration.
Stephan
]]>Stephan Herrmann2012-09-16T14:07:57-00:00