Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[Dltk-dev] Enabling formatting

What is the DLTK way of enabling source formatting.  I have implemented SourceViewerConfigurations# getContentFormatter(). How do I connect the formatters to the Edit->Source->Format menu (currently shows as disabled) and set them to be triggered from the control-shift F key (currently does nothing)?

I have set a scope (and in plugin.xml):

protected void initializeKeyBindingScopes() {
setKeyBindingScopes(
new String[] { "org.eclipse.dltk.ui.myEditorScope" });
}

What more needs to be done?

Thanks,
Gerald
----
Gerald B. Rosenberg
Certiv Analytics

www.certiv.net

Back to the top