IDEA-75362 Groovy evaluate expression editor highlights keywords from Java.

This commit is contained in:
peter
2011-10-10 19:36:00 +02:00
parent 51c831222b
commit 87aca1372a
4 changed files with 6 additions and 5 deletions
@@ -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