Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » class model contains a collection of itself
class model contains a collection of itself [message #164071] Tue, 04 December 2007 11:08 Go to next message
wong is currently offline wongFriend
Messages: 54
Registered: July 2009
Member
Hi, All,

I try define a class which has a attribute is Collection of itself.

/**
* @model
*/
public interface Concept {

/**
* @model
*/
String getName();

/**
* @model type="Concept" containment="true"
*/
Collections getBroader();
}

I got error on building gmfmap file

The required feature 'diagramLink' of 'Link Mapping
<Concept{Concept.broader:Concept->Concept.name:EString}/>' must be
set my/model

But the 'diagramLink' on the properties menu does not have a value to
allow me to set??

Thanks in advance.

Wong.
Re: class model contains a collection of itself [message #164102 is a reply to message #164071] Tue, 04 December 2007 12:13 Go to previous messageGo to next message
wong is currently offline wongFriend
Messages: 54
Registered: July 2009
Member
Hi,All,

I got above solved, but I got some validation error in gfmgen file.

one example is

Validation failed unexpectedly for 'Type Link Model Facet'. See log for
details. my/model skos.gmfgen

Thanks,
Wong.
Re: class model contains a collection of itself [message #164222 is a reply to message #164102] Tue, 04 December 2007 15:21 Go to previous message
wong is currently offline wongFriend
Messages: 54
Registered: July 2009
Member
Hi,

Does anybody know how to build a model which a class has a attribute which
is a collection of itself. I got stick with this of gmf generation. please
help.

Thanks

wong.
Previous Topic:perhaps a bit offtheme (sysout customization)
Next Topic:Multiple ecore and one editor
Goto Forum:
  


Current Time: Tue May 14 07:35:58 GMT 2024

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

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

Back to the top