@Override public void update(ProgressMonitor monitor, @NotNull FileSystemEvent event) { assertCanChange(); for (IFile file : event.getRemoved()) { if (file.equals(myDescriptorFile)) { ModuleRepositoryFacade.getInstance().unregisterModule(this); return; } } for (IFile file : event.getChanged()) { if (file.equals(myDescriptorFile)) { SModuleOperations.reloadFromDisk(this); return; } } }
@Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; SLibrary library = (SLibrary) o; if (isHidden != library.isHidden) return false; if (parent != null ? !parent.equals(library.parent) : library.parent != null) return false; if (!file.equals(library.file)) return false; return true; }