use of com.intellij.openapi.fileEditor.impl.text.PsiAwareTextEditorImpl in project intellij-community by JetBrains.
the class XVariablesViewBase method registerInlineEvaluator.
private void registerInlineEvaluator(final XStackFrame stackFrame, final XSourcePosition position, final Project project) {
final VirtualFile file = position.getFile();
final FileEditor fileEditor = FileEditorManagerEx.getInstanceEx(project).getSelectedEditor(file);
if (fileEditor instanceof PsiAwareTextEditorImpl) {
final Editor editor = ((PsiAwareTextEditorImpl) fileEditor).getEditor();
removeSelectionListener();
mySelectionListener = new MySelectionListener(editor, stackFrame, project);
editor.getSelectionModel().addSelectionListener(mySelectionListener);
}
}
Aggregations