Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » All Models Finding(Finding All Models in the project)
All Models Finding [message #1731834] Tue, 10 May 2016 12:09 Go to next message
Dhananjay Deshmukh is currently offline Dhananjay DeshmukhFriend
Messages: 14
Registered: April 2016
Junior Member
Hello all,
I want a code for finding all the "Models" present in the project.
Model is the root element of DSL and present in each file. (same as Family element in basicfamily example and Model element of UML metamodel example).
I can find Model from any element from diagram by calling eContainer() method, But it is giving me root element form only one file( The file which is responsible to generate a diagram )
I want to find all the models present in the project ( Each file contains one model, and project contains many files)

Thank you,
Dhananjay
Re: All Models Finding [message #1732001 is a reply to message #1731834] Wed, 11 May 2016 15:02 Go to previous messageGo to next message
Julien Dupont is currently offline Julien DupontFriend
Messages: 172
Registered: July 2009
Senior Member
Hi,

You can retrieve your workspace resource and search all models present
in project.
Other solution will be to retrieve all models charged in Sirius session.
For that see online documentation:
https://www.eclipse.org/sirius/doc/developer/Architecture.html#session

Regards,

--
Julien - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: All Models Finding [message #1732026 is a reply to message #1732001] Thu, 12 May 2016 05:25 Go to previous message
Dhananjay Deshmukh is currently offline Dhananjay DeshmukhFriend
Messages: 14
Registered: April 2016
Junior Member
Thanks Julien
Previous Topic:Reconnect Edge Issue
Next Topic:SiriusDiagramActionBarContributor cannot be reused by reimplementing the Sirius Editor
Goto Forum:
  


Current Time: Fri Apr 26 08:55:51 GMT 2024

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

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

Back to the top