3 comments
Comment actions Permalink

Found the answer myself:

Extensions.getRootArea().
getExtensionPoint(CodeStyleSettingsProvider.EXTENSION_POINT_NAME).
registerExtension(new MyCodeStyleSettingsProvider());

0
Comment actions Permalink

Hello Dan,

Am I overseeing something obvious here?


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!"


0
Comment actions Permalink

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

0

Please sign in to leave a comment.