mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
PY-35587 Add icon and rename Python Console actions
GitOrigin-RevId: 14511502005cadcdc73d15c78d6efee63770465f
This commit is contained in:
committed by
intellij-monorepo-bot
parent
581f7353f4
commit
3ddbffb2db
@@ -34,7 +34,8 @@ import java.util.List;
|
||||
|
||||
public class PyExecuteSelectionAction extends AnAction {
|
||||
|
||||
public static final String EXECUTE_SELECTION_IN_CONSOLE = "Execute Selection in Console";
|
||||
public static final String EXECUTE_SELECTION_IN_CONSOLE = "Execute Selection in Python Console";
|
||||
public static final String EXECUTE_LINE_IN_CONSOLE = "Execute Line in Python Console";
|
||||
|
||||
public PyExecuteSelectionAction() {
|
||||
super(EXECUTE_SELECTION_IN_CONSOLE);
|
||||
@@ -155,7 +156,7 @@ public class PyExecuteSelectionAction extends AnAction {
|
||||
else {
|
||||
text = getLineUnderCaret(editor);
|
||||
if (text != null) {
|
||||
presentation.setText("Execute Line in Console");
|
||||
presentation.setText(EXECUTE_LINE_IN_CONSOLE);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -19,11 +19,12 @@ import com.intellij.psi.PsiFile;
|
||||
import com.jetbrains.python.psi.PyFile;
|
||||
import com.jetbrains.python.run.PythonRunConfigurationParams;
|
||||
import com.jetbrains.python.run.PythonRunConfigurationProducer;
|
||||
import icons.PythonIcons;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
public class PyRunFileInConsoleAction extends AnAction implements DumbAware {
|
||||
public PyRunFileInConsoleAction() {
|
||||
super("Run File in Console");
|
||||
super("Run File in Python Console", "Run Current File in Python Console", PythonIcons.Python.Python);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user