Default project

Can someone please explain what exactly the "defaultProject" is for?

The reason I'm asking is that the IDEA framework is creating instances of my ProjectComponents for the default project too. In my case a console window. Even though I only have one project open I get two console windows but one of them does not get initiated propertly. The reason for this is that I create the UI for my project component in the onLoad() method which is called by IDEA. But onLoad is not called for the defaultProject so the project component that is related to the default project does not get initiated properly and later on I get some nullpointerexceptions etc...

I'm going to try to remedy this by checking if we're dealing with the defaultProject for now, but I'm still curious about what it is for...

Please sign in to leave a comment.