mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-82458 Edit configurations from configurations toolbar button doesn't include any existing configurations
This commit is contained in:
@@ -19,7 +19,6 @@ package com.intellij.execution.actions;
|
||||
import com.intellij.execution.ExecutionBundle;
|
||||
import com.intellij.execution.impl.EditConfigurationsDialog;
|
||||
import com.intellij.icons.AllIcons;
|
||||
import com.intellij.ide.DataManager;
|
||||
import com.intellij.openapi.actionSystem.*;
|
||||
import com.intellij.openapi.project.Project;
|
||||
import com.intellij.openapi.project.ProjectManager;
|
||||
@@ -40,9 +39,6 @@ public class EditRunConfigurationsAction extends AnAction{
|
||||
if (project != null && project.isDisposed()) {
|
||||
return;
|
||||
}
|
||||
if (project == null) {
|
||||
project = CommonDataKeys.PROJECT.getData(DataManager.getInstance().getDataContext());
|
||||
}
|
||||
if (project == null) {
|
||||
//setup template project configurations
|
||||
project = ProjectManager.getInstance().getDefaultProject();
|
||||
|
||||
@@ -57,7 +57,6 @@ public class ToggleFullScreenAction extends ToggleAction implements DumbAware {
|
||||
IdeFrameEx frame = null;
|
||||
boolean isApplicable = WindowManager.getInstance().isFullScreenSupportedInCurrentOS() && (frame = getFrame()) != null;
|
||||
|
||||
p.setVisible(isApplicable);
|
||||
p.setEnabled(isApplicable);
|
||||
|
||||
if (isApplicable) {
|
||||
@@ -70,7 +69,7 @@ public class ToggleFullScreenAction extends ToggleAction implements DumbAware {
|
||||
Component focusOwner = IdeFocusManager.getGlobalInstance().getFocusOwner();
|
||||
if (focusOwner != null) {
|
||||
Window window = focusOwner instanceof JFrame ? (Window) focusOwner : SwingUtilities.getWindowAncestor(focusOwner);
|
||||
if (window instanceof JDialog) {
|
||||
if (!(window instanceof IdeFrameEx)) {
|
||||
window = SwingUtilities.getWindowAncestor(window);
|
||||
}
|
||||
if (window instanceof IdeFrameEx) {
|
||||
|
||||
Reference in New Issue
Block a user