mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
cleanup (default impl)
This commit is contained in:
+12
-5
@@ -83,10 +83,17 @@ public interface LibraryTable {
|
||||
boolean isChanged();
|
||||
}
|
||||
|
||||
interface Listener extends EventListener{
|
||||
void afterLibraryAdded (Library newLibrary);
|
||||
void afterLibraryRenamed (Library library);
|
||||
void beforeLibraryRemoved (Library library);
|
||||
void afterLibraryRemoved (Library library);
|
||||
interface Listener extends EventListener {
|
||||
default void afterLibraryAdded(Library newLibrary) {
|
||||
}
|
||||
|
||||
default void afterLibraryRenamed(Library library) {
|
||||
}
|
||||
|
||||
default void beforeLibraryRemoved(Library library) {
|
||||
}
|
||||
|
||||
default void afterLibraryRemoved(Library library) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+1
-5
@@ -30,8 +30,8 @@ import org.jdom.Element;
|
||||
import org.jetbrains.annotations.NonNls;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
import org.jetbrains.jps.model.serialization.module.JpsModuleRootModelSerializer;
|
||||
import org.jetbrains.jps.model.serialization.java.JpsJavaModelSerializerExtension;
|
||||
import org.jetbrains.jps.model.serialization.module.JpsModuleRootModelSerializer;
|
||||
|
||||
/**
|
||||
* @author dsl
|
||||
@@ -278,9 +278,5 @@ class LibraryOrderEntryImpl extends LibraryOrderEntryBaseImpl implements Library
|
||||
public void beforeLibraryRemoved(Library library) {
|
||||
LibraryOrderEntryImpl.this.beforeLibraryRemoved(library);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void afterLibraryRemoved(Library library) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
-13
@@ -321,24 +321,11 @@ public abstract class LibraryTableBase implements PersistentStateComponent<Eleme
|
||||
myLibraryByNameCache = null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void afterLibraryAdded(Library newLibrary) {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void afterLibraryRenamed(Library library) {
|
||||
myLibraryByNameCache = null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void beforeLibraryRemoved(Library library) {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void afterLibraryRemoved(Library library) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeExternal(Element element) throws WriteExternalException {
|
||||
final List<Library> libraries = ContainerUtil.findAll(myLibraries, library -> !((LibraryEx)library).isDisposed());
|
||||
|
||||
Reference in New Issue
Block a user