Remove factory

GitOrigin-RevId: 87846c8bf8768c3f14cc02f51b5b78505e341c7e
This commit is contained in:
Vladimir Krasnotsvetov
2019-10-02 11:32:52 +00:00
committed by intellij-monorepo-bot
parent 89f90cb9e7
commit fccb01ec87
4 changed files with 1 additions and 25 deletions
@@ -1,8 +0,0 @@
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.openapi.wm.impl.status
import com.intellij.openapi.wm.StatusBarWidget
interface TogglePopupHintsPanelFactory {
fun create() : StatusBarWidget
}
@@ -1,12 +0,0 @@
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.openapi.wm.impl.status
import com.intellij.openapi.project.Project
import com.intellij.openapi.wm.StatusBarWidget
class TogglePopupHintsPanelFactoryImpl(val project: Project) : TogglePopupHintsPanelFactory {
override fun create(): StatusBarWidget {
return TogglePopupHintsPanel(project)
}
}
@@ -1,7 +1,6 @@
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.openapi.wm.impl.status
import com.intellij.openapi.components.ServiceManager
import com.intellij.openapi.project.Project
import com.intellij.openapi.wm.StatusBar
import com.intellij.openapi.wm.StatusBarWidget
@@ -9,7 +8,7 @@ import com.intellij.openapi.wm.StatusBarWidgetProvider
class TogglePopupHintsPanelProvider : StatusBarWidgetProvider {
override fun getWidget(project: Project): StatusBarWidget? {
return ServiceManager.getService(project, TogglePopupHintsPanelFactory::class.java).create()
return TogglePopupHintsPanel(project)
}
override fun getAnchor(): String {
@@ -1254,9 +1254,6 @@
<editorFactoryListener implementation="com.intellij.codeInsight.daemon.impl.EditorTracker$MyAppLevelEditorFactoryListener"/>
<projectService serviceInterface="com.intellij.openapi.wm.impl.status.TogglePopupHintsPanelFactory"
serviceImplementation="com.intellij.openapi.wm.impl.status.TogglePopupHintsPanelFactoryImpl"/>
<projectService serviceInterface="com.intellij.codeInsight.daemon.impl.HectorComponentFactory"
serviceImplementation="com.intellij.codeInsight.daemon.impl.HectorComponentFactoryImpl"/>
</extensions>