mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-09 20:42:52 +07:00
remove app level fireProfileChanged/fireProfileChanged
This commit is contained in:
+3
-3
@@ -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);
|
||||
|
||||
+4
-4
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user