mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
no need to select all on mode switch, only on first open
This commit is contained in:
-2
@@ -93,8 +93,6 @@ public class ExpressionInputComponent extends EvaluationInputComponent {
|
||||
expressionPanel.addToBottom(help);
|
||||
help.setVisible(showHelp);
|
||||
|
||||
myExpressionEditor.selectAll();
|
||||
|
||||
myMainForm.addExpressionComponent(expressionPanel);
|
||||
myMainForm.addLanguageComponent(myExpressionEditor.getLanguageChooser());
|
||||
|
||||
|
||||
+3
-5
@@ -24,7 +24,6 @@ import com.intellij.openapi.project.Project;
|
||||
import com.intellij.openapi.ui.DialogWrapper;
|
||||
import com.intellij.openapi.util.Condition;
|
||||
import com.intellij.openapi.util.SystemInfo;
|
||||
import com.intellij.openapi.util.text.StringUtil;
|
||||
import com.intellij.openapi.wm.IdeFocusManager;
|
||||
import com.intellij.openapi.wm.WindowManager;
|
||||
import com.intellij.util.ui.JBUI;
|
||||
@@ -182,6 +181,9 @@ public class XDebuggerEvaluationDialog extends DialogWrapper {
|
||||
}
|
||||
setTitle(XDebuggerBundle.message("xdebugger.evaluate.dialog.title"));
|
||||
switchToMode(mode, text);
|
||||
if (mode == EvaluationMode.EXPRESSION) {
|
||||
myInputComponent.getInputEditor().selectAll();
|
||||
}
|
||||
init();
|
||||
}
|
||||
|
||||
@@ -273,10 +275,6 @@ public class XDebuggerEvaluationDialog extends DialogWrapper {
|
||||
|
||||
myMode = mode;
|
||||
|
||||
if (mode == EvaluationMode.EXPRESSION) {
|
||||
text = new XExpressionImpl(StringUtil.convertLineSeparators(text.getExpression(), " "), text.getLanguage(), text.getCustomInfo());
|
||||
}
|
||||
|
||||
myInputComponent = createInputComponent(mode, text);
|
||||
myMainPanel.removeAll();
|
||||
myInputComponent.addComponent(myMainPanel, myResultPanel);
|
||||
|
||||
Reference in New Issue
Block a user