mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
it was impossible to create subpackage in floating mode. fixed.
This commit is contained in:
@@ -52,6 +52,7 @@ public class NavBarModel {
|
||||
private final Project myProject;
|
||||
private final NavBarModelListener myNotificator;
|
||||
private boolean myChanged = true;
|
||||
private boolean shouldSkipUpdateFromDataContext = false;
|
||||
|
||||
public NavBarModel(final Project project) {
|
||||
myProject = project;
|
||||
@@ -90,7 +91,7 @@ public class NavBarModel {
|
||||
}
|
||||
|
||||
protected void updateModel(DataContext dataContext) {
|
||||
if (LaterInvocator.isInModalContext()) return;
|
||||
if (LaterInvocator.isInModalContext() || shouldSkipUpdateFromDataContext) return;
|
||||
|
||||
PsiElement psiElement = LangDataKeys.PSI_FILE.getData(dataContext);
|
||||
if (psiElement == null) {
|
||||
@@ -116,6 +117,8 @@ public class NavBarModel {
|
||||
}
|
||||
}
|
||||
setChanged(false);
|
||||
|
||||
shouldSkipUpdateFromDataContext = !UISettings.getInstance().SHOW_NAVIGATION_BAR;
|
||||
}
|
||||
|
||||
protected void updateModel(final PsiElement psiElement) {
|
||||
|
||||
Reference in New Issue
Block a user