Java源码示例:org.eclipse.xtext.ui.editor.autoedit.AbstractEditStrategy
示例1
public void configureDebugMode(Binder binder) {
if (Boolean.getBoolean("org.eclipse.xtext.xtend.debug")) {
binder.bindConstant().annotatedWith(Names.named(AbstractEditStrategy.DEBUG)).to(true);
}
// matches ID of org.eclipse.ui.contexts extension registered in plugin.xml
binder.bindConstant().annotatedWith(Names.named(XtextEditor.KEY_BINDING_SCOPE)).to("org.eclipse.xtend.ide.XtendEditorScope");
}
示例2
public void configureDebugMode(Binder binder) {
if (Boolean.getBoolean("io.sarl.lang.debug") //$NON-NLS-1$
|| Boolean.getBoolean("org.eclipse.xtext.xtend.debug")) { //$NON-NLS-1$
binder.bindConstant().annotatedWith(Names.named(AbstractEditStrategy.DEBUG)).to(true);
}
// matches ID of org.eclipse.ui.contexts extension registered in plugin.xml
binder.bindConstant().annotatedWith(Names.named(XtextEditor.KEY_BINDING_SCOPE))
.to("io.sarl.lang.ui.scoping.SARLEditorScope"); //$NON-NLS-1$
}
示例3
@Override
public void configure(Binder binder) {
super.configure(binder);
binder.bindConstant().annotatedWith(Names.named(AbstractEditStrategy.DEBUG)).to(true);
}
示例4
@Override
public void configure(Binder binder) {
super.configure(binder);
binder.bindConstant().annotatedWith(Names.named(AbstractEditStrategy.DEBUG)).to(true);
}