mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
IDEA-75362 Groovy evaluate expression editor highlights keywords from Java.
This commit is contained in:
@@ -61,7 +61,9 @@ public class DebuggerExpressionComboBox extends DebuggerEditorImpl {
|
||||
if (twi != null) {
|
||||
restoreFactory(twi);
|
||||
}
|
||||
super.setItem(createDocument(twi));
|
||||
final Document document = createDocument(twi);
|
||||
getEditorComponent().setNewDocumentAndFileType(getCurrentFactory().getFileType(), document);
|
||||
super.setItem(document);
|
||||
/* Causes PSI being modified from PSI events. See IDEADEV-22102
|
||||
final Editor editor = getEditor();
|
||||
if (editor != null) {
|
||||
|
||||
@@ -64,7 +64,7 @@ public class DebuggerExpressionTextField extends DebuggerEditorImpl {
|
||||
@Override
|
||||
protected void doSetText(TextWithImports text) {
|
||||
restoreFactory(text);
|
||||
myEditor.setDocument(createDocument(text));
|
||||
myEditor.setNewDocumentAndFileType(getCurrentFactory().getFileType(), createDocument(text));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -130,7 +130,7 @@ public class DebuggerStatementEditor extends DebuggerEditorImpl {
|
||||
@Override
|
||||
protected void doSetText(TextWithImports text) {
|
||||
restoreFactory(text);
|
||||
myEditor.setDocument(createDocument(text));
|
||||
myEditor.setNewDocumentAndFileType(getCurrentFactory().getFileType(), createDocument(text));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user