|
|
|
|
Re: Auto complete with curly brackets [message #1678171 is a reply to message #1677213] |
Mon, 16 March 2015 05:13 |
|
Hi,
the impl looks a bit strange. id expect
class SparqlAutoEditStrategyProvider extends DefaultAutoEditStrategyProvider {
override public void configureStringLiteral(AbstractEditStrategyProvider.IEditStrategyAcceptor acceptor) {
super.configureStringLiteral(acceptor);
acceptor.accept(singleLineTerminals.newInstance("<", ">"), IDocument.DEFAULT_CONTENT_TYPE);
}
}
with the following binding:
public class MyDslUiModule extends org.xtext.example.mydsl2.ui.AbstractMyDslUiModule {
public MyDslUiModule(AbstractUIPlugin plugin) {
super(plugin);
}
public Class<? extends AbstractEditStrategyProvider> bindAbstractEditStrategyProvider() {
return SparqlAutoEditStrategyProvider.class;
}
}
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
|
|
|
Powered by
FUDForum. Page generated in 0.04298 seconds