Dynamically add File Types and Color Setting Pages?

I get a few emails every month about updating the old Simple Syntax Highlighting plugin I wrote for IDEA 6. But starting with IDEA 7 it looks like it is now impossible to add/remove application components like File Types, Languages, Color Setting Pages, etc while IDEA is running.

Well. The question is: Did I overlook a proper way to do this? Or does IDEA not want you to mess with these things after the initial plugin loading phase?

With all the changes to the plugin.xml and its extension points etc I guess I am supposed to know at startup what I need. In case of the Simple Syntax plugin this would force the user to restart IDEA after adding a new File Type plus the highlighting configuration. Probably an acceptable solution..

Any help appreciated..

Cheers,
Daniel

2 comments
Comment actions Permalink

Hello Daniel,

Actually you can register any extension point implementation dynamically
using ExtensionPoint.registerExtension().

I get a few emails every month about updating the old Simple Syntax
Highlighting plugin I wrote for IDEA 6. But starting with IDEA 7 it
looks like it is now impossible to add/remove application components
like File Types, Languages, Color Setting Pages, etc +while IDEA is
running+.

Well. The question is: Did I overlook a proper way to do this? Or does
IDEA not want you to mess with these things after the initial plugin
loading phase?

With all the changes to the plugin.xml and its extension points etc I
guess I am supposed to know at startup what I need. In case of the
Simple Syntax plugin this would force the user to restart IDEA after
adding a new File Type plus the highlighting configuration. Probably
an acceptable solution..

Any help appreciated..

Cheers,
Daniel
---
Original message URL:
http://www.jetbrains.net/devnet/message/5250063#5250063

--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

Thank you very much, Dmitry! Exactly what I needed..

daniel

0

Please sign in to leave a comment.