Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » How to call the difference view on two Java files
How to call the difference view on two Java files [message #912896] Fri, 14 September 2012 11:16 Go to next message
Gerald Hokamp is currently offline Gerald HokampFriend
Messages: 1
Registered: September 2012
Junior Member
Hello,

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
Re: How to call the difference view on two Java files [message #915117 is a reply to message #912896] Sun, 16 September 2012 14:07 Go to previous message
Stephan Herrmann is currently offline Stephan HerrmannFriend
Messages: 1853
Registered: July 2009
Senior Member
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
Previous Topic:Bytecode method signatures corresponding to a MethodDeclaration node
Next Topic:Find an IType in the whole (non workspace) classpath
Goto Forum:
  


Current Time: Thu Mar 28 08:32:32 GMT 2024

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

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

Back to the top