mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
clarifying the purpose of the field. it's for the rider run widget only
GitOrigin-RevId: c0a5edc5b8c0f806d54779deb12e6ca24a340d0c
This commit is contained in:
committed by
intellij-monorepo-bot
parent
be1a34935e
commit
b881c7cb31
+2
-2
@@ -387,7 +387,7 @@ public final class ChooseRunConfigurationPopup implements ExecutorProvider {
|
||||
|
||||
final RunManager manager = RunManager.getInstance(project);
|
||||
|
||||
if (!manager.isRunWidgetActive()) RunManager.getInstance(project).setSelectedConfiguration(config);
|
||||
if (!manager.isRiderRunWidgetActive()) RunManager.getInstance(project).setSelectedConfiguration(config);
|
||||
MacroManager.getInstance().cacheMacrosPreview(context);
|
||||
ExecutionUtil.doRunConfiguration(config, executor, null, null, context);
|
||||
}
|
||||
@@ -634,7 +634,7 @@ public final class ChooseRunConfigurationPopup implements ExecutorProvider {
|
||||
if (dynamic) {
|
||||
manager.setTemporaryConfiguration(settings);
|
||||
}
|
||||
if (!manager.isRunWidgetActive()) manager.setSelectedConfiguration(settings);
|
||||
if (!manager.isRiderRunWidgetActive()) manager.setSelectedConfiguration(settings);
|
||||
ExecutionUtil.runConfiguration(settings, executor);
|
||||
}
|
||||
});
|
||||
|
||||
@@ -245,10 +245,10 @@ open class RunManagerImpl @JvmOverloads constructor(val project: Project, shared
|
||||
}
|
||||
|
||||
override fun shouldSetRunConfigurationFromContext(): Boolean {
|
||||
return Registry.`is`("select.run.configuration.from.context") && !isRunWidgetActive()
|
||||
return Registry.`is`("select.run.configuration.from.context") && !isRiderRunWidgetActive()
|
||||
}
|
||||
|
||||
override fun isRunWidgetActive(): Boolean {
|
||||
override fun isRiderRunWidgetActive(): Boolean {
|
||||
return RunToolbarSlotManager.getInstance(project).active
|
||||
}
|
||||
|
||||
|
||||
@@ -133,7 +133,7 @@ abstract class RunManager {
|
||||
*/
|
||||
abstract fun shouldSetRunConfigurationFromContext(): Boolean
|
||||
|
||||
abstract fun isRunWidgetActive(): Boolean
|
||||
abstract fun isRiderRunWidgetActive(): Boolean
|
||||
|
||||
/**
|
||||
* Creates a configuration of the specified type with the specified name. Note that you need to call
|
||||
|
||||
@@ -39,7 +39,7 @@ class RunToolbarProcessData {
|
||||
fun prepareSuppressMainSlotCustomization(project: Project, addition: Consumer<in ExecutionEnvironment>? = null): Consumer<in ExecutionEnvironment> {
|
||||
return Consumer { ee: ExecutionEnvironment ->
|
||||
val runManager = getInstance(project)
|
||||
if (runManager.isRunWidgetActive()) {
|
||||
if (runManager.isRiderRunWidgetActive()) {
|
||||
ee.putUserData(RUN_TOOLBAR_SUPPRESS_MAIN_SLOT_USER_DATA_KEY, true)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -40,7 +40,7 @@ class MockRunManager : RunManagerEx() {
|
||||
return true
|
||||
}
|
||||
|
||||
override fun isRunWidgetActive(): Boolean {
|
||||
override fun isRiderRunWidgetActive(): Boolean {
|
||||
return false
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user