do not init artifacts for default project [nik]

This commit is contained in:
Dmitry Avdeev
2011-09-23 16:16:10 +04:00
parent 5ca49db3eb
commit ba1e28351e
@@ -130,7 +130,9 @@ public class ProjectStructureConfigurable extends BaseConfigurable implements Se
myGlobalLibrariesConfig.init(myContext);
myModulesConfig.init(myContext);
myFacetStructureConfigurable.init(myContext);
myArtifactsStructureConfigurable.init(myContext, myModulesConfig, myProjectLibrariesConfig, myGlobalLibrariesConfig);
if (!project.isDefault()) {
myArtifactsStructureConfigurable.init(myContext, myModulesConfig, myProjectLibrariesConfig, myGlobalLibrariesConfig);
}
final PropertiesComponent propertiesComponent = PropertiesComponent.getInstance(myProject);
myUiState.lastEditedConfigurable = propertiesComponent.getValue("project.structure.last.edited");