IntelliJ Community . CurrentProjectComponent

 
CurrentProjectComponent 

HOME INDEX SEARCH CHANGES GO  

Main.Trash.CurrentProjectComponent

This plugin currently is depricated. This one have no good idea to track for "current project" now, becose build since #630 have a multiproject support by SDI notation. This plugin may used only in previos build #629.


See Also: PhantomPlugins

Description

It's very simple ApplicationComponent and ProjectManagerAdapter. some times you needed to get current project, just call to this component. I think that in feature this class will depricate, but now API for this expected.

Back to top

Using

try {
  Project project = CurrentProjectComponent.getProject();
  if (project == null) {
    // No project opened
  } else {
    // Some operation with project
  }
} catch (ComponentNotFoundException ex) {
  log.error(ex);
}

Back to top

Discussion

  • Hmm, I would be carefull using this. Take a look at the Project Singleton. -- JohannesSchneider - 24 Jun 2002
  • I see this, but can you describe your opinion? -- AlexeyEfimov - 25 Jun 2002
  • How do you consider this to be working with multi project support? -- MikeAizatsky - 27 Jun 2002
    • If multi project has avaible then only one of projects may be current. Otherwise the project level components come to unstable, becose it's have a constructor with project parameter. I think that will be a workspace. In this workspace where are projects, but only one project may be selected at one time. I wrong? So ProjectManagerListener has changes - add one new method selectedProject. So, then it avaible i will rewrite the code and this new code will set current project in method selectedProject. I think that multi project support in IntelliJ be is a another gui for existing code - Recently Used Projects algoritm. But maybe i wrong. And i also guess, that currentProject must be geted via open API. -- AlexeyEfimov - 27 Jun 2002

Back to top

Download

Back to top

Instalation

Download this plugin. Copy phantom-plugins-currentProject.jar into $IDEA_HOME$/plugins directory.

Back to top

-- AlexeyEfimov - 25 Jun 2002

e d i t a t t a c h r e f - b y d i f f s m o r e
Have ideas, requests, problems regarding this site? Send feedback.
Copyright © 2000-2003 by the contributing authors. All materials at intellij.org are the property of the contributing authors.