Prioritize a Configuration Producer?

I am introducing a new RuntimeConfigurationProducer with my plugin that for certain files is a candidate for configuration along with another configuration producer bundled with IntelliJ. I would like to prioritize my plugin's producer over the existing one, but the existing producer returns a priority of PREFERRED in its compareTo implementation and because it is registered first it is ultimately the producer used. I cannot find any other way to prioritize my producer; can anyone point me in the right direction?

Thanks!

2 comments
Comment actions Permalink

Hello Don,

Probably the easiest thing to do is to specify order="first" in the declaration
of your extension in plugin.xml.

I am introducing a new RuntimeConfigurationProducer with my plugin
that for certain files is a candidate for configuration along with
another configuration producer bundled with IntelliJ. I would like to
prioritize my plugin's producer over the existing one, but the
existing producer returns a priority of PREFERRED in its compareTo
implementation and because it is registered first it is ultimately the
producer used. I cannot find any other way to prioritize my producer;
can anyone point in the right direction?


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


0
Comment actions Permalink

Worked like a charm!

0

Please sign in to leave a comment.