Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [EMF Compare] opening editor programmatically results in unexpected/wrong view
[EMF Compare] opening editor programmatically results in unexpected/wrong view [message #674978] Sun, 29 May 2011 21:55 Go to next message
Eclipse UserFriend
Originally posted by: Birgit Engelmann


I am currently trying to create an emf compare editor view in an eclipse
plugin. What happens is that the elements of the tree, where usually the
structual changes are displayed, show some strange texts like "Model
Element Change Right Target false" (seems like the internal
description). And the visualization part is completely empty and only in
the properties view some entries are displayed.

The code to do so is the following:

// creating two models
Tournament t1 = BowlingFactory.eINSTANCE.createTournament();

Tournament t2 = BowlingFactory.eINSTANCE.createTournament();

// matching and diffing
MatchModel match = MatchService.doMatch(t1, t2, null);
DiffModel diff = DiffService.doDiff(match, false);

// create snapshot
ComparisonResourceSnapshot snapshot =

// open editor
ModelCompareEditorInput input = new ModelCompareEditorInput(snapshot);
CompareUI.openCompareEditor(input. true);

The created models are standard ecore models.
The code up until creating the DiffModel seems to work fine. I can print
the DiffElements and it finds that one Matchup was deleted. No error is
thrown when creating the view.

Any idea what I am doing wrong and how I can resolve this issue?

Thanks and regards,
Re: [EMF Compare] opening editor programmatically results in unexpected/wrong view [message #903684 is a reply to message #674978] Fri, 24 August 2012 21:15 Go to previous message
Stacey Hopkins is currently offline Stacey HopkinsFriend
Messages: 34
Registered: March 2012
I have had this similar problem recently... it was resolved for me by ensuring the plugin was included in my run config.... this was for v1.3....just wanted to share ... I know its over a year ago Sad
Previous Topic:orm:delimited-identifiers
Next Topic:[Texo] JSONTexoResource, DynamicModelObject support
Goto Forum:

Current Time: Wed May 23 09:24:51 GMT 2018

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

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

Back to the top