Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [Ecore Tools] Outline Model Navigator Empty(Outline Model Navigator Problem)
[Ecore Tools] Outline Model Navigator Empty [message #1269116] Tue, 11 March 2014 12:01 Go to next message
Angel Lopez is currently offline Angel LopezFriend
Messages: 8
Registered: January 2014
Junior Member
Dear all.

I have updated my Eclipse development environment from Juno to Kepler.
I have one model managed by a GMF Editor. This diagram uses the ecore tools outline (v that worked fine in Juno, but in Kepler(v only works the upper part with the diagram in small size and doesn't work the model navigator with the tree view. I don't know why.


Debugging the code in bot eclipse versions, the only difference i see arises in the AbstractModelNavigator.getModelResource(), Juno returns a GMFResource and Kepler a MymodelResourceImpl object, but the contents of both are the same, a ResourceImpl object with the model instance as data.

To use the ecore tools outline in Juno I followed the steps described here:

There is a bug in the 1.2 version with outline view? I have to follow another steps?.

I'll appreciate any help.

Best regards.

[Updated on: Tue, 11 March 2014 12:06]

Report message to a moderator

Re: [Ecore Tools] Outline Model Navigator Empty [message #1270189 is a reply to message #1269116] Wed, 12 March 2014 16:36 Go to previous message
Angel Lopez is currently offline Angel LopezFriend
Messages: 8
Registered: January 2014
Junior Member

Avoid the NavigatorContentProvider because this condition is never true due my model is not an EcorePackage.eINSTANCE. In Juno, returned as GMFResource, the condition was true and all worked.

Use and AdapterFactoryContentProvider .

protected void initProviders() {			
			AdapterFactoryContentProvider adapterContentProvider = new NavigatorAdapterFactoryContentProvider(getAdapterFactory());
			adapterContentProvider.inputChanged(getTreeViewer(), null, null);

Previous Topic:[EMFForms] How to enable creation and linking of Reference Features when embedding the Editor?
Next Topic:[EMF Forms] Editing composition
Goto Forum:

Current Time: Sun Mar 07 18:54:14 GMT 2021

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

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

Back to the top