mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
ignored buffer: see com.intellij.debugger.ui.DebuggerExpressionComboBox.setText
This commit is contained in:
@@ -39,7 +39,7 @@ public class ExpressionEvaluationDialog extends EvaluationDialog {
|
||||
private JLabel myLanguageLabel;
|
||||
|
||||
public ExpressionEvaluationDialog(Project project, TextWithImports defaultExpression) {
|
||||
super(project, makeOnLine(defaultExpression));
|
||||
super(project, defaultExpression);
|
||||
setTitle(DebuggerBundle.message("evaluate.expression.dialog.title"));
|
||||
|
||||
final KeyStroke expressionStroke = KeyStroke.getKeyStroke(KeyEvent.VK_E, KeyEvent.ALT_MASK);
|
||||
@@ -104,22 +104,6 @@ public class ExpressionEvaluationDialog extends EvaluationDialog {
|
||||
}
|
||||
}
|
||||
|
||||
private static TextWithImports makeOnLine(TextWithImports text) {
|
||||
String initialExpression = text.getText();
|
||||
if (initialExpression != null) {
|
||||
int size = initialExpression.length();
|
||||
StringBuffer buf = new StringBuffer(size);
|
||||
for (int idx = 0; idx < size; idx++) {
|
||||
char ch = initialExpression.charAt(idx);
|
||||
if (ch != '\n' && ch != '\r') {
|
||||
buf.append(ch);
|
||||
}
|
||||
}
|
||||
text.setText(initialExpression);
|
||||
}
|
||||
return text;
|
||||
}
|
||||
|
||||
protected void initDialogData(TextWithImports text) {
|
||||
super.initDialogData(text);
|
||||
getExpressionCombo().selectAll();
|
||||
|
||||
Reference in New Issue
Block a user