Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » Model Explorer view reload
Model Explorer view reload [message #1778644] Tue, 19 December 2017 10:02 Go to next message
Kyrill Zotkin is currently offline Kyrill ZotkinFriend
Messages: 19
Registered: July 2009
Junior Member
Hello!
I asked this question after video and were asked to put it from the email to public forum. Here it is.
Is this OK to reload the Model Explorer view like this: ProjectImpl notifies ResourceChangeListeners with
ResourceChangeAdapter and updates the UI in ECPProvider?
The use-case is to create the new project with EnterpriseDomainProvider ECPProvider, checking "Software Contribution", waiting making of "Contribution", opening a model element EPackage or children, editing and saving it.
Besides it doesn't reveal the already opened model element after reload. It looks like select and reveal code doesn't work after the structural update of TreeViewer.

[Updated on: Tue, 19 December 2017 16:52]

Report message to a moderator

Re: Model Explorer view reload [message #1778657 is a reply to message #1778644] Tue, 19 December 2017 12:00 Go to previous messageGo to next message
Eugen Neufeld is currently offline Eugen NeufeldFriend
Messages: 129
Registered: May 2015
Senior Member
Hi Kyrill,

as far as I can see the code seems to be ok.
About the reveal not working I can't say anything conclusive, it would be helpful to have a minimal demo for this.

Cheers,
Eugen


--
Eugen Neufeld

Get professional Eclipse developer support:
http://eclipsesource.com/en/services/developer-support/
Re: Model Explorer view reload [message #1778662 is a reply to message #1778657] Tue, 19 December 2017 15:11 Go to previous messageGo to next message
Kyrill Zotkin is currently offline Kyrill ZotkinFriend
Messages: 19
Registered: July 2009
Junior Member
Hi Eugen,

Thanks a lot, good.
In what form do you prefer me to provide a demo? Please, excuse if it is a newbie question.

Best regards,
Kirill

[Updated on: Tue, 19 December 2017 15:23]

Report message to a moderator

Re: Model Explorer view reload [message #1778697 is a reply to message #1778662] Wed, 20 December 2017 09:30 Go to previous message
Eugen Neufeld is currently offline Eugen NeufeldFriend
Messages: 129
Registered: May 2015
Senior Member
Hi Kiril,

The best thing would be to have a plugin, similar to the autogenerated product example. So a plugin which contains:
- a target definition
- a product file
- the sample application
You can take a look at the MakeItHappen Example for 3x.

Cheers,
Eugen


--
Eugen Neufeld

Get professional Eclipse developer support:
http://eclipsesource.com/en/services/developer-support/
Previous Topic:Example implementation of ECPModelElementOpener
Next Topic:JavaFX support for ECP
Goto Forum:
  


Current Time: Wed Jan 24 08:02:54 GMT 2018

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

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