[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.m2m] how obtain a tree with rules

Good morning,

I want to obtain a tree with two knots. the father is the "editor"(finalDSL!Editor) and the son is the list of containers which do not contain graphic objects (frames).I try different rules but i don't obtain wchich i would.

Here are my two rules:


rule E2P {
from e : finalDSL!Editor (e.MyContainer->size()<>0)


to out : javadestination!Package (
name <- e.name, classes <- finalDSL!Container.allInstances()->collect(c|thisModule.C2C(c))
)
}


unique lazy rule C2C {
from e : finalDSL!Container (e.MyGObject->size()=0) to out : javadestination!JAVAClass (
name <- e.name

) }


think you a lot