Significance of ProjectComponent

Hi,

I am a little unclear about the usage of ProjectComponent class. When and
why do we need to extend this class?

~Priya


3 comments

Hello Priya,

P> I am a little unclear about the usage of ProjectComponent class.
P> When and why do we need to extend this class?

You need to have a ProjectComponent when there must be one instance of your
class for every project in IDEA. In most cases, you need to have a ProjectComponent
when your class works with IDEA services which are also project components
(and a large percentage of IDEA service are project components).

--
Dmitry Jemerov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com
"Develop with pleasure!"


0

Can give some examples of IDEA services?

"Dmitry Jemerov (JetBrains)" <yole@jetbrains.com> wrote in message
news:83ca25fd26108c8c7fad11b701210@news.intellij.net...

Hello Priya,

>

P> I am a little unclear about the usage of ProjectComponent class.
P> When and why do we need to extend this class?

>

You need to have a ProjectComponent when there must be one instance of

your

class for every project in IDEA. In most cases, you need to have a

ProjectComponent

when your class works with IDEA services which are also project components
(and a large percentage of IDEA service are project components).

>

--
Dmitry Jemerov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com
"Develop with pleasure!"

>
>


0

Hello Priya,

PsiManager


P> Can give some examples of IDEA services?
P>
P> "Dmitry Jemerov (JetBrains)" <yole@jetbrains.com> wrote in message
P> news:83ca25fd26108c8c7fad11b701210@news.intellij.net...
P>
>> Hello Priya,
>>
>> P> I am a little unclear about the usage of ProjectComponent class.
>> P> When and why do we need to extend this class?
>>
>> You need to have a ProjectComponent when there must be one instance
>> of
>>
P> your
P>
>> class for every project in IDEA. In most cases, you need to have a
>>
P> ProjectComponent
P>
>> when your class works with IDEA services which are also project
>> components (and a large percentage of IDEA service are project
>> components).
>>
>> --
>> Dmitry Jemerov
>> Software Developer
>> JetBrains, Inc.
>> http://www.jetbrains.com
>> "Develop with pleasure!"
--
Dmitry Jemerov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com
"Develop with pleasure!"


0

Please sign in to leave a comment.