about outline view [message #1075635] |
Mon, 29 July 2013 15:43  |
Eclipse User |
|
|
|
Hi,
I have grammar which only defines one kind of element with one feature-content.
def _createChildren(DocumentRootNode parentNode, LCFGModel lcfgmodel) {
for(Element element: lcfgmodel.getElements()) {
createNode(parentNode, element)
}
}
works good but
def createChildren(IOutlineNode parentNode, Element element) {
createEStructuralFeatureNode(parentNode,element,LCFGPackage.Literals.ELEMENT__CONTENT, null, "abc", false)
}
never be invoked?
Could anyone tell me why this happens?
thanks
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: about outline view [message #1076761 is a reply to message #1076629] |
Wed, 31 July 2013 16:41  |
Eclipse User |
|
|
|
No, I didn't~~ but I found them in the template file(.xpt file)
«IMPORT org::ui::wizard»
«DEFINE main FOR LCFGProjectInfo»
«EXPAND model FOR this»
«EXPAND workflow FOR this»
«ENDDEFINE»
«DEFINE model FOR LCFGProjectInfo»
«FILE "src/model/Model.lcfg"-»
/*
* This is an example model
*/
Hello Xtext!
«ENDFILE»
«ENDDEFINE»
«DEFINE workflow FOR LCFGProjectInfo»
«FILE "src/Generator.mwe2"-»
module Generator
var targetDir = "src-gen"
var modelPath = "src/model"
Workflow {
component = @workflow.LCFGGenerator auto-inject {}
}
«ENDFILE»
«ENDDEFINE»
|
|
|
Powered by
FUDForum. Page generated in 0.56641 seconds