mirror of
https://github.com/angryip/ipscan.git
synced 2025-10-26 11:18:17 +00:00
This commit is contained in:
parent
3678864454
commit
4cea120b79
@ -27,7 +27,7 @@ public final class Config {
|
||||
/** various GUI preferences and dimensions are stored here */
|
||||
private GUIConfig guiConfig;
|
||||
/** favorites are stored here */
|
||||
private NamedListConfig favoritesConfig;
|
||||
private FavoritesConfig favoritesConfig;
|
||||
/** openers are stored here */
|
||||
private OpenersConfig openersConfig;
|
||||
|
||||
@ -78,7 +78,7 @@ public final class Config {
|
||||
/**
|
||||
* @return Favorites config (only local access)
|
||||
*/
|
||||
NamedListConfig forFavorites() {
|
||||
FavoritesConfig forFavorites() {
|
||||
return favoritesConfig;
|
||||
}
|
||||
|
||||
|
||||
@ -27,6 +27,10 @@ public class ConfigModule {
|
||||
return getConfig().forOpeners();
|
||||
}
|
||||
|
||||
@Provides public FavoritesConfig forFavorites() {
|
||||
return getConfig().forFavorites();
|
||||
}
|
||||
|
||||
@Provides public GUIConfig forGUI() {
|
||||
return getConfig().forGUI();
|
||||
}
|
||||
|
||||
@ -5,22 +5,17 @@
|
||||
*/
|
||||
package net.azib.ipscan.config;
|
||||
|
||||
import java.util.prefs.Preferences;
|
||||
|
||||
import net.azib.ipscan.feeders.FeederCreator;
|
||||
|
||||
import javax.inject.Inject;
|
||||
import javax.inject.Singleton;
|
||||
import java.util.prefs.Preferences;
|
||||
|
||||
/**
|
||||
* FavoritesConfig
|
||||
*
|
||||
* @author Anton Keks
|
||||
*/
|
||||
@Singleton
|
||||
public class FavoritesConfig extends NamedListConfig {
|
||||
|
||||
@Inject
|
||||
public FavoritesConfig(Preferences preferences) {
|
||||
super(preferences, "favorites");
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user