about outline view [message #1075635] |
Mon, 29 July 2013 19:43 |
Yueming Hong Messages: 87 Registered: April 2013 |
Member |
|
|
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 #1076290 is a reply to message #1076188] |
Wed, 31 July 2013 05:38 |
|
Hi,
i dont understand your problem
public class NullFoldingRegionProvider implements IFoldingRegionProvider {
@Override
public Collection<FoldedPosition> getFoldingRegions(
IXtextDocument xtextDocument) {
return Collections.emptyList();
}
}
public class MyDslUiModule extends AbstractMyDslUiModule {
public MyDslUiModule(AbstractUIPlugin plugin) {
super(plugin);
}
public Class<? extends IFoldingRegionProvider> bindIFoldingRegionProvider() {
return NullFoldingRegionProvider.class;
}
}
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.07045 seconds