Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Compare » Java Packages Comparison(Need help to use EMF Compare to find the diffs between Java Packages)
Java Packages Comparison [message #521903] Fri, 19 March 2010 08:55
mRoby88 is currently offline mRoby88Friend
Messages: 4
Registered: March 2010
Junior Member
Dear All,
I'm developing an Eclipse Plug-in that needs to be able to compute the diff between Java Source files as well as Java Packages, as "Compare with Each other" Eclipse's functionality does.
Can EMF Compare help me? I installed in Eclipse all the materials as well as downloaded all the CVS projects via the *.psf file but I'm not able to use it as I want to.
I already take a look at the Stand-Alone project, as suggested in many threads, but it does not help since I reported errors while using it.

Loading resources.

org.eclipse.emf.ecore.resource.Resource$IOWrappedException: Content is not allowed in prolog.
	at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(
	at org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doLoad(
	at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(
	at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(
	at ExampleLauncher.main(
Caused by: org.xml.sax.SAXParseException: Content is not allowed in prolog.
	at javax.xml.parsers.SAXParser.parse(
	at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(
	... 6 more

Can someone, please, provide me a snippet of code that can help me comparing two Java Packages?

The plug-in displays a pop-up menu when in the Package Explorer the user selects two resources.
- Comparing files is done using
- Comparing Packages is not implemented so far.

I'd like to use EMF compare to do that. Seems interesting but I cannot manage to have it working. The idea is to have the user to select two packages (possibly two different versions of the same package) and then compute the diff over all the classes belonging to that package.

Best regards and thank in advance,
Roberto M.
Previous for Java Packages
Next Topic:Java Pseudo conflict woes
Goto Forum:

Current Time: Sun Sep 19 03:24:38 GMT 2021

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

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

Back to the top