mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
EA-35790 - assert: PsiDocumentManagerImpl.commitAllDocuments
async editor initialization
This commit is contained in:
-3
@@ -32,11 +32,9 @@ public class SmartTreeStructure extends AbstractTreeStructure {
|
||||
public SmartTreeStructure(@NotNull Project project, @NotNull TreeModel model) {
|
||||
myModel = model;
|
||||
myProject = project;
|
||||
|
||||
}
|
||||
|
||||
public void commit() {
|
||||
PsiDocumentManager.getInstance(myProject).commitAllDocuments();
|
||||
}
|
||||
|
||||
@NotNull
|
||||
@@ -54,7 +52,6 @@ public class SmartTreeStructure extends AbstractTreeStructure {
|
||||
|
||||
public Object getRootElement() {
|
||||
if (myRootElementWrapper == null){
|
||||
PsiDocumentManager.getInstance(myProject).commitAllDocuments();
|
||||
myRootElementWrapper = createTree();
|
||||
}
|
||||
return myRootElementWrapper;
|
||||
|
||||
+6
-1
@@ -300,7 +300,12 @@ public class ResourceBundleEditor extends UserDataHolderBase implements FileEdit
|
||||
private final Alarm myUpdateEditorAlarm = new Alarm();
|
||||
private void selectionChanged() {
|
||||
myBackSlashPressed.clear();
|
||||
updateEditorsFromProperties();
|
||||
UIUtil.invokeLaterIfNeeded(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
updateEditorsFromProperties();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
private void updateEditorsFromProperties() {
|
||||
|
||||
Reference in New Issue
Block a user