Is facet auto-detection for plug-ins too?

Hi,

Is Facet auto-detection (on creation of a new module from existing sources) for custom plug-ins too, e.g. when the plug-in has it's own facet ? If yes, how to do it?

Also what about the cases when the facet depends upon another one, e.g. the Web Facet to be detected and registered first? How to delay the custom one to be active only when the Web Facet is up?

Thank you,

Demetrios.

5 comments
Comment actions Permalink

I have the same question for plugins supplying VCS integrations, is there a way to have them auto detecting if the current project/module is managed by the vcs the plugin is supporting ?

0
Comment actions Permalink

Hello dkyriakis,

Is Facet auto-detection (on creation of a new module from existing
sources) for custom plug-ins too, e.g. when the plug-in has it's own
facet ? If yes, how to do it?


Yes. See FacetDetector and FacetDetectorRegistry APIs.

Also what about the cases when the facet depends upon another one,
e.g. the Web Facet to be detected and registered first? How to delay
the custom one to be active only when the Web Facet is up?


If you have declared the underlying facet type of your facet, this should
work correctly.

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


0
Comment actions Permalink

Hello Thibaut,

I have the same question for plugins supplying VCS integrations, is
there a way to have them auto detecting if the current project/module
is managed by the vcs the plugin is supporting ?


Yes. Override AbstractVcs.isVersionedDirectory().

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


0
Comment actions Permalink

Is Facet auto-detection (on creation of a new module from existing
sources) for custom plug-ins too, e.g. when the plug-in has it's own
facet ? If yes, how to do it?


Yes. See FacetDetector and FacetDetectorRegistry APIs.

Also what about the cases when the facet depends upon another one,
e.g. the Web Facet to be detected and registered first? How to delay
the custom one to be active only when the Web Facet is up?


If you have declared the underlying facet type of your facet, this should
work correctly.

Thank you very much :).

I was wondering, because none of the existing 3rd party web frameworks plug-ins seem to use auto-detection functionality described by you :).

Demetrios.

0
Comment actions Permalink

thanks !
i've been wanting to ask for it for a long time :)

0

Please sign in to leave a comment.