remove app level fireProfileChanged/fireProfileChanged

This commit is contained in:
Vladimir Krivosheev
2016-11-09 18:39:49 +01:00
parent 33ab2e75be
commit fe612d8088
36 changed files with 86 additions and 100 deletions
@@ -37,7 +37,7 @@ class SingleInspectionProfilePanelTest : LightIdeaTestCase() {
val profile = configureInspections(arrayOf(myInspection), project, testRootDisposable)
val model = profile.modifiableModel
val panel = SingleInspectionProfilePanel(ProjectInspectionProfileManager.getInstanceImpl(project), model)
val panel = SingleInspectionProfilePanel(ProjectInspectionProfileManager.getInstance(project), model)
panel.isVisible = true
panel.reset()
@@ -54,7 +54,7 @@ class SingleInspectionProfilePanelTest : LightIdeaTestCase() {
fun testModifyInstantiatedTool() {
val project = ProjectManager.getInstance().defaultProject
val profileManager = ProjectInspectionProfileManager.getInstanceImpl(project)
val profileManager = ProjectInspectionProfileManager.getInstance(project)
val profile = profileManager.createProfile(myInspection, testRootDisposable)
profile.initInspectionTools(project)
@@ -82,7 +82,7 @@ class SingleInspectionProfilePanelTest : LightIdeaTestCase() {
fun testDoNotChangeSettingsOnCancel() {
val project = ProjectManager.getInstance().defaultProject
val profileManager = ProjectInspectionProfileManager.getInstanceImpl(project)
val profileManager = ProjectInspectionProfileManager.getInstance(project)
val profile = profileManager.createProfile(myInspection, testRootDisposable)
profile.initInspectionTools(project)
@@ -98,7 +98,7 @@ public class InspectionProfileTest extends LightIdeaTestCase {
InspectionProfileImpl localProfile = createProfile();
profileManager.updateProfile(localProfile);
ProjectInspectionProfileManager projectProfileManager = ProjectInspectionProfileManager.getInstanceImpl(getProject());
ProjectInspectionProfileManager projectProfileManager = ProjectInspectionProfileManager.getInstance(getProject());
try {
//normally on open project profile wrappers are init for both managers
profileManager.updateProfile(localProfile);
@@ -52,7 +52,7 @@ class ProjectInspectionManagerTest {
loadAndUseProject(tempDirManager, {
it.path
}) { project ->
val projectInspectionProfileManager = ProjectInspectionProfileManager.getInstanceImpl(project)
val projectInspectionProfileManager = ProjectInspectionProfileManager.getInstance(project)
assertThat(projectInspectionProfileManager.state).isEmpty()
@@ -106,7 +106,7 @@ class ProjectInspectionManagerTest {
val profileFile = inspectionDir.resolve("Project_Default.xml")
assertThat(profileFile).doesNotExist()
val projectInspectionProfileManager = ProjectInspectionProfileManager.getInstanceImpl(project)
val projectInspectionProfileManager = ProjectInspectionProfileManager.getInstance(project)
assertThat(projectInspectionProfileManager.state).isEmpty()
projectInspectionProfileManager.currentProfile
@@ -123,7 +123,7 @@ class ProjectInspectionManagerTest {
loadAndUseProject(tempDirManager, {
it.path
}) { project ->
val projectInspectionProfileManager = ProjectInspectionProfileManager.getInstanceImpl(project)
val projectInspectionProfileManager = ProjectInspectionProfileManager.getInstance(project)
projectInspectionProfileManager.forceLoadSchemes()
assertThat(projectInspectionProfileManager.state).isEmpty()
@@ -170,7 +170,7 @@ class ProjectInspectionManagerTest {
loadAndUseProject(tempDirManager, {
it.writeChild("test${ProjectFileType.DOT_DEFAULT_EXTENSION}", emptyProjectFile).path
}) { project ->
val projectInspectionProfileManager = ProjectInspectionProfileManager.getInstanceImpl(project)
val projectInspectionProfileManager = ProjectInspectionProfileManager.getInstance(project)
projectInspectionProfileManager.forceLoadSchemes()
assertThat(projectInspectionProfileManager.state).isEmpty()