mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-05-31 12:34:23 -04:00
Use Persistable interface for local db data
This commit is contained in:
parent
8792666f78
commit
6a25e1c56c
71 changed files with 216 additions and 196 deletions
|
@ -19,6 +19,7 @@ package io.bitsquare.gui;
|
|||
|
||||
import com.google.inject.Inject;
|
||||
import io.bitsquare.app.Version;
|
||||
import io.bitsquare.common.persistance.Persistable;
|
||||
import io.bitsquare.gui.common.view.View;
|
||||
import io.bitsquare.gui.common.view.ViewPath;
|
||||
import io.bitsquare.gui.main.MainView;
|
||||
|
@ -27,11 +28,10 @@ import io.bitsquare.storage.Storage;
|
|||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.ArrayList;
|
||||
import java.util.concurrent.CopyOnWriteArraySet;
|
||||
|
||||
public class Navigation implements Serializable {
|
||||
public class Navigation implements Persistable {
|
||||
// That object is saved to disc. We need to take care of changes to not break deserialization.
|
||||
private static final long serialVersionUID = Version.LOCAL_DB_VERSION;
|
||||
private static final Logger log = LoggerFactory.getLogger(Navigation.class);
|
||||
|
|
|
@ -18,14 +18,14 @@
|
|||
package io.bitsquare.gui.common.view;
|
||||
|
||||
import io.bitsquare.app.Version;
|
||||
import io.bitsquare.common.persistance.Persistable;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
public class ViewPath extends ArrayList<Class<? extends View>> implements Serializable {
|
||||
public class ViewPath extends ArrayList<Class<? extends View>> implements Persistable {
|
||||
// That object is saved to disc. We need to take care of changes to not break deserialization.
|
||||
private static final long serialVersionUID = Version.LOCAL_DB_VERSION;
|
||||
|
||||
|
|
|
@ -90,7 +90,8 @@ public class ArbitratorSelectionView extends ActivatableViewAndModel<GridPane, A
|
|||
@Override
|
||||
protected void deactivate() {
|
||||
languagesListView.getItems().removeListener(listChangeListener);
|
||||
model.languageCodes.removeListener(languageCodesListChangeListener);
|
||||
if (languageCodesListChangeListener != null)
|
||||
model.languageCodes.removeListener(languageCodesListChangeListener);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue