Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Eclipse modelling - which plugins would be helpful for models creating/editing/validating...(Question about my own plugin that should use models/metamodels)
Eclipse modelling - which plugins would be helpful for models creating/editing/validating... [message #690659] Wed, 29 June 2011 23:03 Go to next message
Piotr  aj?czkowski is currently offline Piotr aj?czkowskiFriend
Messages: 8
Registered: June 2011
Junior Member

Welcome everybody ! This is my first post here, so please, have mercy on me Smile

Ok, first of all I apologise for my english language skills.

Secondly - here is the "problem":

I have to write my own Eclipse plugins that will help user to:

  1. create models (compatibile with some metamodels) and fill them with data from variuos files (.csv, .xml, etc.)
  2. save data from model to files mentioned above (.csv, etc.)
  3. will generate "transformation template" file (in QVT Operational language) based on choosen metamodels


Ad. 1: I think about couple of plugins - one per file-type - that will have metamodels "registered" in Eclipse (like metamodels used by File->New...->Other...->Example EMF Model Creation Wizards->(different example models wizards)). Every of that plugins should:

  • register the command in popup menu for one file type ("Convert to model...")
  • be able to load a file (for example .csv) into model (compatibile with its metamodel)
  • validate this model
  • create model file in the project (maybe some dialog box asking for target file name)


Ad. 2: This is similiar to the first point. Only in different way. I think that this popup menu commands should be grouped, so u can choose for example: Convert to CSV, Convert to XML, etc. Also dialog boxes that allows choosing the options (for example delimiter character for CSV file)

Ad. 3: I have to metamodels (from two of plugins mentioned above - "input" plugin and "output" plugin) and want to generate an QVT Operational template transformation (simple code in the file).

The important thing about this all is that I don't want to reinvent the wheel and I would like to use existing Eclipse plugins for some actions (f.e. validating models, filling models with data, etc.). I tried to "Google out" those things but I failed. I know that projects I should be interested in are: EMF, Ecore and M2M, but I failed on searching the details how to use them in my own plugins (most of data I found was about user-expirience side of those plugins/projects).

So I ask you, please, advise me/guide me through the plurality of the Eclipse projects and tell me, which projects will be the best for my work-to-do.

Sorry for posting such a topic in newscomers group, but it's more "newbie" question rather than question for "Eclipse modelling" group (in my opinion).

I would be grateful for any help and advice Smile

P.S.
Concrete problems are (for example):

  • how to implement this metamodel registering ?
  • how to use validation/model creation features from EMF/Ecore from my plugin ?
  • how to implement the architecture of those "input"/"output" plugins so I will not have to repeat some code fragments (for example - creating an empty model is the same everywhere) ?
  • how to "list" my plugins ("input" and "output") to get metamodels they registered - it's neccesary for generating this "template transformation" ?



--
Peter
Re: Eclipse modelling - which plugins would be helpful for models creating/editing/validating... [message #690664 is a reply to message #690659] Wed, 29 June 2011 23:54 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33216
Registered: July 2009
Senior Member
Piotr,

I'd suggest you start with
http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclipse.emf.doc/tutorials/xlibmod/xlibmod.html,
read
http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse.emf.doc/references/overview/EMF.html
and look to http://www.eclipse.org/modeling/emf/docs/ for more details.
It's highly unlikely that anyone here will answer questions about QVT to
ATL so best you follow up on specific newsgroups for that.


On 29/06/2011 4:03 PM, Piotr aj?czkowski wrote:
> Welcome everybody ! This is my first post here, so please, have mercy
> on me :)
>
> Ok, first of all I apologise for my english language skills.
>
> Secondly - here is the "problem":
>
> I have to write my own Eclipse plugins that will help user to:
>
> create models (compatibile with some metamodels) and fill them with
> data from variuos files (.csv, .xml, etc.)
> save data from model to files mentioned above (.csv, etc.)
> will generate "transformation template" file (in QVT Operational
> language) based on choosen metamodels
>
>
> Ad. 1: I think about couple of plugins - one per file-type - that will
> have metamodels "registered" in Eclipse (like metamodels used by
> File->New...->Other...->Example EMF Model Creation Wizards->(different
> example models wizards)). Every of that plugins should:
> register the command in popup menu for one file type ("Convert to
> model...")
> be able to load a file (for example .csv) into model (compatibile with
> its metamodel)
> validate this model
> create model file in the project (maybe some dialog box asking for
> target file name)
>
>
> Ad. 2: This is similiar to the first point. Only in different way. I
> think that this popup menu commands should be grouped, so u can choose
> for example: Convert to CSV, Convert to XML, etc. Also dialog boxes
> that allows choosing the options (for example delimiter character for
> CSV file)
>
> Ad. 3: I have to metamodels (from two of plugins mentioned above -
> "input" plugin and "output" plugin) and want to generate an QVT
> Operational template transformation (simple code in the file).
>
> The important thing about this all is that I don't want to reinvent
> the wheel and I would like to use existing Eclipse plugins for some
> actions (f.e. validating models, filling models with data, etc.). I
> tried to "Google out" those things but I failed. I know that projects
> I should be interested in are: EMF, Ecore and M2M, but I failed on
> searching the details how to use them in my own plugins (most of data
> I found was about user-expirience side of those plugins/projects).
>
> So I ask you, please, advise me/guide me through the plurality of the
> Eclipse projects and tell me, which projects will be the best for my
> work-to-do.
>
> Sorry for posting such a topic in newscomers group, but it's more
> "newbie" question rather than question for "Eclipse modelling" group
> (in my opinion).
> I would be grateful for any help and advice :)
>
> P.S.
> Concrete problems are (for example):
>
> how to implement this metamodel registering ?
> how to use validation/model creation features from EMF/Ecore from my
> plugin ?
> how to implement the architecture of those "input"/"output" plugins so
> I will not have to repeat some code fragments (for example - creating
> an empty model is the same everywhere) ?
> how to "list" my plugins ("input" and "output") to get metamodels they
> registered - it's neccesary for generating this "template
> transformation" ?
>
>
>
> --
> Peter


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Eclipse modelling - which plugins would be helpful for models creating/editing/validating... [message #690691 is a reply to message #690664] Thu, 30 June 2011 02:52 Go to previous message
Piotr  aj?czkowski is currently offline Piotr aj?czkowskiFriend
Messages: 8
Registered: June 2011
Junior Member

Thank you for your help Smile I will read this all carefully. About QVT it is not necesarry to know it - my question connected with that topic was about registering metamodels in Eclipse and getting a list of installed plugins that registered own metamodels (some specific kind of plugins - my "input" and "output" plugins).

Ed Merks wrote on Wed, 29 June 2011 19:54
Piotr,

I'd suggest you start with
<link cut due to I have less than 5 posts>
read
<link cut> and look to <link cut> for more details.
It's highly unlikely that anyone here will answer questions about QVT to
ATL so best you follow up on specific newsgroups for that.


[Updated on: Thu, 30 June 2011 02:53]

Report message to a moderator

Previous Topic:Error with JSTL tags
Next Topic:finding an old question
Goto Forum:
  


Current Time: Thu Sep 19 10:24:28 GMT 2024

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

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

Back to the top