workspace model: treeProjectModel -> workspace model

GitOrigin-RevId: c8c0fdc5f629ccae51455001fe27217c858a98b7
This commit is contained in:
Leonid Shalupov
2019-10-29 20:32:24 +01:00
committed by intellij-monorepo-bot
parent e4a219484f
commit 64a56fc9a3
3 changed files with 7 additions and 7 deletions

View File

@@ -145,11 +145,11 @@ public abstract class ModuleRootManagerTestCase extends JavaModuleTestCase {
return IntelliJProjectConfiguration.getJarFromSingleJarProjectLibrary("ASM");
}
protected boolean underTreeProjectModel() {
protected boolean underWorkspaceModel() {
return ModuleManager.getInstance(myProject).getClass().getName() == "com.intellij.workspace.legacyBridge.intellij.LegacyBridgeModuleManagerComponent";
}
protected void ignoreTestUnderTreeProjectModel() {
Assume.assumeFalse("Not applicable to treeProjectModel", underTreeProjectModel());
protected void ignoreTestUnderWorkspaceModel() {
Assume.assumeFalse("Not applicable to workspace model", underWorkspaceModel());
}
}

View File

@@ -132,7 +132,7 @@ public class LibraryTest extends ModuleRootManagerTestCase {
}
public void testModificationCount() {
ignoreTestUnderTreeProjectModel();
ignoreTestUnderWorkspaceModel();
final long moduleModificationCount = ModuleRootManagerEx.getInstanceEx(myModule).getModificationCountForTests();
@@ -169,7 +169,7 @@ public class LibraryTest extends ModuleRootManagerTestCase {
}
public void testReloadLibraryTable() {
ignoreTestUnderTreeProjectModel();
ignoreTestUnderWorkspaceModel();
((LibraryTableBase)getProjectLibraryTable()).loadState(new Element("component"));
createLibrary("a", null, null);
@@ -178,7 +178,7 @@ public class LibraryTest extends ModuleRootManagerTestCase {
}
public void testReloadLibraryTableWithoutChanges() {
ignoreTestUnderTreeProjectModel();
ignoreTestUnderWorkspaceModel();
((LibraryTableBase)getProjectLibraryTable()).loadState(new Element("component"));
createLibrary("a", null, null);

View File

@@ -11,7 +11,7 @@
<extensions defaultExtensionNs="com.intellij">
<registryKey key="ide.new.project.model" defaultValue="false" restartRequired="false"
description="Enable new entities-based project model"/>
description="Enable new entities-based project model (workspace model)"/>
<cachesInvalidator implementation="com.intellij.workspace.legacyBridge.intellij.ProjectModelCachesInvalidator"/>