Passing Module/Project down through your own model

Hello,

Just wanted to take the pulse of the community on a certain approach. Do many of you simply pass the module or project down through your own plug in module code? Are there alternatives such as a static accessor that can be considered?

Thanks,
Shaun

1 comment
Comment actions Permalink

Hello Shaun,

Just wanted to take the pulse of the community on a certain approach.
Do many of you simply pass the module or project down through your own
plug in module code? Are there alternatives such as a static accessor
that can be considered?


Its a bad idea to store projects or modules in static fields, because it's
very easy to get a memory leak this way (the reference from your static field
would keep the project alive).

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


0

Please sign in to leave a comment.