mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Fix Editor not released on project close
This commit is contained in:
@@ -382,6 +382,12 @@ public void addMessageToConsoleWindow(final String message, final TextAttributes
|
||||
final String displayName = VcsBundle.message("vcs.console.toolwindow.display.name");
|
||||
Content content = contentManager.findContent(displayName);
|
||||
if (content == null) {
|
||||
if (myEditorAdapter != null) {
|
||||
final Editor editor = myEditorAdapter.getEditor();
|
||||
if (! editor.isDisposed()) {
|
||||
EditorFactory.getInstance().releaseEditor(editor);
|
||||
}
|
||||
}
|
||||
final EditorFactory editorFactory = EditorFactory.getInstance();
|
||||
final Editor editor = editorFactory.createViewer(editorFactory.createDocument(""), myProject);
|
||||
EditorSettings editorSettings = editor.getSettings();
|
||||
|
||||
Reference in New Issue
Block a user