// TODO run configuration icon change
public void register() {
        if (!isRegistered) {
            VirtualFileManager.getInstance().addAsyncFileListener((@NotNull List<? extends VFileEvent> events) -> {
                for (VFileEvent event : events) {
                    if (event instanceof VFileDeleteEvent) {
                        // TODO run configuration icon change
                        System.out.println("deleted : " + event.getFile());
                    }
                }
                return null;
            }, () -> {});
            isRegistered = true;
        }
    }
for (VFileEvent event : events) {
if (event instanceof VFileDeleteEvent) {
// TODO run configuration icon change
System.out.println("deleted : " + event.getFile());
}
public void register() {
if (!isRegistered) {
VirtualFileManager.getInstance().addAsyncFileListener((@NotNull List<? extends VFileEvent> events) -> {
for (VFileEvent event : events) {
if (event instanceof VFileDeleteEvent) {
// TODO run configuration icon change
System.out.println("deleted : " + event.getFile());
}
}
return null;
}, () -> {});
isRegistered = true;
}
}
public void register() {
if (!isRegistered) {
VirtualFileManager.getInstance().addAsyncFileListener((@NotNull List<? extends VFileEvent> events) -> {
for (VFileEvent event : events) {
if (event instanceof VFileDeleteEvent) {
// TODO run configuration icon change
System.out.println("deleted : " + event.getFile());
}
}
return null;
}, () -> {});
isRegistered = true;
}
}