mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Flex project structure: force configurable reset after apply(), otherwise we would hold references to disposed order entries (AS-324)
This commit is contained in:
+4
@@ -366,6 +366,10 @@ public class ModuleStructureConfigurable extends BaseStructureConfigurable imple
|
||||
if (myContext.myModulesConfigurator.isModified()) {
|
||||
myContext.myModulesConfigurator.apply();
|
||||
}
|
||||
|
||||
for (final ModuleStructureExtension extension : ModuleStructureExtension.EP_NAME.getExtensions()) {
|
||||
extension.afterModelCommit();
|
||||
}
|
||||
}
|
||||
|
||||
public boolean isModified() {
|
||||
|
||||
+3
@@ -82,4 +82,7 @@ public abstract class ModuleStructureExtension {
|
||||
public ActionCallback selectOrderEntry(@NotNull final Module module, @Nullable final OrderEntry entry) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public void afterModelCommit() {
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user