Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Programmatically compare two files(how to programmatically open the compare editor and feed it with two files)
Programmatically compare two files [message #508343] Mon, 18 January 2010 13:55 Go to next message
Nadine K is currently offline Nadine KFriend
Messages: 27
Registered: July 2009
Junior Member
Hi.
I'm currently trying to programmatically compare two files, but I don't know how to open the compare editor!
My original post is there (but I was redirected here):
http://www.eclipse.org/forums/index.php?t=msg&goto=50834 0&#msg_508340
I really hope somebody can help me...I can't imagine that something as trivial as feeding a compare editor per code is not possible?
Please do not post any more answers in the other post (admins may close it if they want to), but answer here in this thread.
thx
sth_Weird
Re: Programmatically compare two files [message #509018 is a reply to message #508343] Thu, 21 January 2010 07:54 Go to previous messageGo to next message
Harald    is currently offline Harald Friend
Messages: 37
Registered: July 2009
Member
AFAIK:

Take the compare action
org.eclipse.compare.internal.CompareAction
as a blue print for your program.

The action uses another internal class
org.eclipse.compare.internal.ResourceCompareInput
Maybe you have to write a clone to avoid the use of internal classes.

-- harald
icon5.gif  Re: Programmatically compare two files [message #548451 is a reply to message #508343] Wed, 21 July 2010 21:54 Go to previous message
Ivan is currently offline IvanFriend
Messages: 6
Registered: July 2010
Location: Serbia
Junior Member

Harald, have you found out how to invoke the Eclipse comparison view?

Best regards
Previous Topic:Setting default start level in product build
Next Topic:Programmatically compare two files
Goto Forum:
  


Current Time: Fri Apr 26 17:05:42 GMT 2024

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

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

Back to the top