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


Home » Archived Projects » Kitalpha » ViewPoint extension available in layer combo
ViewPoint extension available in layer combo [message #601] Fri, 11 December 2015 04:33 Go to next message
labin78.hotmail.com is currently offline  labin78.hotmail.com
Messages: 51
Registered: December 2015
Member

Hi.

Again a question Razz

I made a viewpoint with kitalpha.
This viewpoint had datas who extend myapplication.ecore

I add the viewpoint in my application. It is detected and is active in the ViewPoint Manager.

How can the viewpoint be available in the "Layers Combo" in the graphical view ?

Thank you
Re: ViewPoint extension available in layer combo [message #602 is a reply to message #601] Fri, 11 December 2015 09:11 Go to previous messageGo to next message
labin78.hotmail.com is currently offline  labin78.hotmail.com
Messages: 51
Registered: December 2015
Member
And when I launch my application the following exception is catch
java.lang.ClassCastException: org.polarsys.kitalpha.emde.model.impl.EmdeFactoryImpl cannot be cast to emde.EmdeFactory

And when I play with my application the following exception is catch
java.lang.NullPointerException
        at org.polarsys.kitalpha.ad.viewpoint.handlers.ProjectUtils.getContainingProject(ProjectUtils.java:27)
        at org.polarsys.kitalpha.ad.viewpoint.ui.views.ProjectSelectionListener.analyseElement(ProjectSelectionListener.
        at org.polarsys.kitalpha.ad.viewpoint.ui.views.ProjectSelectionListener.selectionChanged(ProjectSelectionListene
        at org.polarsys.kitalpha.ad.viewpoint.ui.provider.DefaultSelectionProvider$1.selectionChanged(DefaultSelectionPr
        at org.eclipse.ui.internal.e4.compatibility.SelectionService.notifyListeners(SelectionService.java:154)
        at org.eclipse.ui.internal.e4.compatibility.SelectionService.access$3(SelectionService.java:151)
        at org.eclipse.ui.internal.e4.compatibility.SelectionService$1.selectionChanged(SelectionService.java:74)


Do you have an idea ?
Re: ViewPoint extension available in layer combo [message #603 is a reply to message #602] Fri, 11 December 2015 11:54 Go to previous messageGo to next message
labin78.hotmail.com is currently offline  labin78.hotmail.com
Messages: 51
Registered: December 2015
Member
It was just a EMF error.


I try to make a extension of a Class from my application model ecore.
In this Eclass, i modify the ESuperType with ExtensibleElement (from eMDE ecore)
In my viewpoint.data i extend my viewpoint class with the new ExtensibleElement.

What I forget?

Thanks

[Updated on: Fri, 11 December 2015 11:54]

Report message to a moderator

Re: ViewPoint extension available in layer combo [message #610 is a reply to message #603] Thu, 17 December 2015 03:12 Go to previous messageGo to next message
boubekeur.zendagui@thales is currently offline  boubekeur.zendagui@thales
Messages: 54
Registered: April 2015
Member
Hi,

Could you show me please how you extend your viewpoint class with ExtensibleElement?

In general, if you use "extends" in a viewpoint Class definition, this means that that class is an (eMDE) extension to an existing one. The extended class should inherits from the eMDE ExtensibleElement.

There is no need to add supper class for the Viewpoint class. The Viewpoint generation will set up the generated EClass with all necessary information (Adds two EMF Annotations and Adds inheritance from eMDE ElementExtension).

Boubekeur.

Re: ViewPoint extension available in layer combo [message #612 is a reply to message #610] Thu, 17 December 2015 03:41 Go to previous message
labin78.hotmail.com is currently offline  labin78.hotmail.com
Messages: 51
Registered: December 2015
Member
Hi,
In the viewpoint.data:

Data MonViewPointPojetComponent.data {
	Class ComponentElement {
		extends citrus.Component
		Attributes:
			nameExtends type ecore.EString
		Associations: 
			model contains [0,*] ComponentModel
	}



I checked in the generated viewpoint sources, and all necessaries informations are added.

- Do I need make modification in my application model.ecore ?




Previous Topic: Creates dropins folder in my product.
Next Topic: viewpoint: model extension
Goto Forum:
  


Current Time: Fri Jun 05 04:20:46 EST 2020

Total time taken to generate the page: 0.01689 seconds