How do i register a CodeStyleSettingsProvider? Dan Cioca Created April 02, 2008 13:46 Am I overseeing something obvious here?
Found the answer myself:
Extensions.getRootArea().
getExtensionPoint(CodeStyleSettingsProvider.EXTENSION_POINT_NAME).
registerExtension(new MyCodeStyleSettingsProvider());
Hello Dan,
You usually register extensions via an extension tag in plugin.xml, not via
code. For example, for this interface you would add something like:
]]>
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
Thanks Dmitry.
You're right, this shouldn't be done programmatically.
I tried it and it works. Still, the "codeStyleSettingsProvider" it is not complaint with the plugin.dtd.
Dan