This service is archived, please use www.eclipse.org/forums


Home » Archived Projects » Kitalpha » viewpoint: model extension
viewpoint: model extension [message #604] Mon, 14 December 2015 05:18 Go to next message
labin78.hotmail.com is currently offline  labin78.hotmail.com
Messages: 51
Registered: December 2015
Member
Hi,

Could you help me for the build of viewpoint kitalpha ?

I want extend a model ecore class of my application.
In my model ecore i have a class A extends ExtensibleElement from eMBE.

In my kitalpha viewPoint, i create a class MyVP extends A.

I generate ViewPoint. OK
I generate and package ViewPoint OK

I drop this viewpoint in the dropins folder of my application
I launch Application and ViewPoint is displayed in the ViewPoint Manager.

But i can't use my viewpoint. In the view properties on the element "A" the extension model is not visible.



Thank you

Re: viewpoint: model extension [message #609 is a reply to message #604] Thu, 17 December 2015 02:51 Go to previous messageGo to next message
boubekeur.zendagui@thales is currently offline  boubekeur.zendagui@thales
Messages: 54
Registered: April 2015
Member
Hi,

Did you started your Viewpoint in the Viewpoint Manager?

To do that, right click on the Viewpoint and click on start menu item.

Boubekeur.
Re: viewpoint: model extension [message #613 is a reply to message #609] Thu, 17 December 2015 03:47 Go to previous messageGo to next message
labin78.hotmail.com is currently offline  labin78.hotmail.com
Messages: 51
Registered: December 2015
Member
Hi, Yes I started the viewpoint with the viewpoint manager.

How can i check if the viewpoint works ? Do properties extended are visible in the "Show view properties" (with the ownedExtensions association from ElementExtensible ) ?
Re: viewpoint: model extension [message #615 is a reply to message #613] Thu, 17 December 2015 04:50 Go to previous messageGo to next message
boubekeur.zendagui@thales is currently offline  boubekeur.zendagui@thales
Messages: 54
Registered: April 2015
Member
Hi,

An eMDE extension is a model element you can create by using the New Child menu available by right clicking on any model element (please see the two pictures bellow).

The properties view will show data of that model element (extension) if it is selected (in the EMF model editor for example).

Please, let us know if you this helps you.

Regards,
Boubekeur.

The viewpoint is not started yet.

index.php/fa/158/0/

The viewpoint is started.
index.php/fa/159/0/
Re: viewpoint: model extension [message #620 is a reply to message #615] Fri, 18 December 2015 05:18 Go to previous messageGo to next message
labin78.hotmail.com is currently offline  labin78.hotmail.com
Messages: 51
Registered: December 2015
Member
HI,

In your screenshot, i see that the root model is a viewpoint. Do I reverse my ecore model in viewpoint ? Or Can i work directly with my model ecore ?
Because actually, my extension element is not display in the new child list (and i work directly with the ecore model).
Re: viewpoint: model extension [message #623 is a reply to message #615] Fri, 18 December 2015 08:04 Go to previous messageGo to next message
boubekeur.zendagui@thales is currently offline  boubekeur.zendagui@thales
Messages: 54
Registered: April 2015
Member
Hi,

Yes, you can continue to use your model without transforming it to a viewpoint project.

Have you generated your application ecore model with the Kitalpha EMF Generation ?

Regards.

Re: viewpoint: model extension [message #624 is a reply to message #623] Fri, 18 December 2015 09:52 Go to previous messageGo to next message
labin78.hotmail.com is currently offline  labin78.hotmail.com
Messages: 51
Registered: December 2015
Member
For the application that i want extend, no.

But now i try with a sample application generated with kitalpha.
Re: viewpoint: model extension [message #628 is a reply to message #604] Sat, 19 December 2015 16:45 Go to previous message
labin78.hotmail.com is currently offline  labin78.hotmail.com
Messages: 51
Registered: December 2015
Member
Hi,

I'm blocked. I read all kitalpha documentations available on internet.
I don't know if the problem is my ecore model or it's the DSL viewpoint.



With kitalpha,

- I create a ecore model (New -> Project -> Empty EMF Project)
- I use ExtensibleElement (from embe model)
- after i built my model, i generated genmodel ( Extensible Provider Factory, Child Creation Extenders)
- I generate Model, Edit and Editor code.

- I create my Viewpoint DSL project (EMF Target)

Viewpoint test {
	name: "test"
	uses model "platform:/resource/projet/model/projet.ecore#/"
	Data test.data
	Configuration test.conf
}


- I implement MyViewPoint.data
import external "platform:/resource/projet/model/projet.ecore#/"

Data test.data {
	Class WithAttributes {
		extends projet.SubContainer
		Attributes:
			anAttribute type ecore.EString
	}
}


- I generate Model and Edit core with kitalpha generation.

And finally i launch my applicaiton.
- I run the viewpoint in viewpoint manager view. but my extension isn't visible under the "new child" menu

What is the step I forgot?

Thank you

Regards
Previous Topic: ViewPoint extension available in layer combo
Next Topic: import external model
Goto Forum:
  


Current Time: Tue Jun 02 12:53:36 EST 2020

Total time taken to generate the page: 0.01846 seconds