|Re: emf compare [message #423821 is a reply to message #423659]
||Tue, 07 October 2008 14:55
Originally posted by: tschappi.web.de|
i am trying to launch this code from within eclipse, more concrete from within a unit-test.
I have a test-suite, which compares models with each other via EMF Compare.
If the test fails i would like to display the compare result with a compare editor.
Now, i tried running your code:
ModelCompareEditorInput input = new ModelCompareEditorInput(snapshot);
within my testCompose() method, alternatively within the tearDown() method, but nothing happens. No
editor opens, no error..nothing. The models i've compared are .ecore files and the snapshot-object
is not null. So, i've no idea whats wrong.
Another question, for what purpose do i need a ModelCompareEditorLauncher ?
It seems for me that it does the same thing CompareUI.openCompareEditor(input) does ?
> Thanks Ed ;)
> I need to know how you're trying to use EMF Compare? The ExampleLauncher
> on CVS should allow you to compare two models (if they can be loaded via
> EMF). For dependencies, simply look at the README file (
> http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.emf/org .eclipse.emf.compare/examples/org.eclipse.emf.compare.exampl es.standalone/README?revision=1.1&root=Modeling_Project& amp;view=markup
> ) which lists the required libraries of this example.
> If you're launching this code standalone, there is no way to load the
> result in the compare editor, nor is there to display it in the compare
> If you're launching this code from within eclipse, you can display the
> result in the editor by using a code as such :
> ModelCompareEditorInput input = new ModelCompareEditorInput(snapshot);
> with 'snapshot' being the result of the comparison as created in the
> ExampleLauncher class.
> Laurent Goubet
> Ed Merks a écrit :
>> It's best to use the EMFT newsgroup to ask about compare. I've added
>> it to the "to" list of the reply.
>> Silvio wrote:
>>> I would like to display my compare results in a compare-editor /
>>> As a test scenario i've used the ExampleLauncher.
>>> http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.emf/org .eclipse.emf.compare/tests/org.eclipse.emf.compare.tests/src /org/eclipse/emf/compare/tests/ExampleLauncher.java?root=Mod eling_Project&view=co
>>> I've read the org.eclipse.emf.compare api, but unfortunately I can't
>>> make head nor tail of it. :(
>>> I've tried sth. with ModelCompareEditorLauncher and
>>> ModelCompareEditorInput, but without any success.
>>> Do i need the org.eclipse.compare package for my purpose or is
>>> everything into org.eclipse.emf.compare i need ?
>>> Do you have an example implementation or some hints ?
>>> Thanks a lot!
Powered by FUDForum
. Page generated in 0.02018 seconds