public static class MapPaintPreference.MapPaintPrefHelper extends SourceEditor.SourcePrefHelper
Modifier and Type | Field and Description |
---|---|
static MapPaintPreference.MapPaintPrefHelper |
INSTANCE
The unique instance.
|
Constructor and Description |
---|
MapPaintPrefHelper()
Constructs a new
MapPaintPrefHelper . |
Modifier and Type | Method and Description |
---|---|
SourceEntry |
deserialize(Map<String,String> s) |
List<SourceEntry> |
get()
Returns the list of sources.
|
Collection<SourceEditor.ExtendedSourceEntry> |
getDefault()
Returns the default sources provided by JOSM core.
|
private boolean |
insertNewDefaults(List<SourceEntry> list)
If the selection of default styles changes in future releases, add
the new entries to the user-configured list.
|
Map<String,String> |
serialize(SourceEntry entry) |
getActiveUrls, put
public static final MapPaintPreference.MapPaintPrefHelper INSTANCE
public MapPaintPrefHelper()
MapPaintPrefHelper
.public List<SourceEntry> get()
SourceEditor.SourcePrefHelper
get
in class SourceEditor.SourcePrefHelper
private boolean insertNewDefaults(List<SourceEntry> list)
list
- new defaultstrue
if a change occurredpublic Collection<SourceEditor.ExtendedSourceEntry> getDefault()
SourceEditor.SourcePrefHelper
getDefault
in class SourceEditor.SourcePrefHelper
public Map<String,String> serialize(SourceEntry entry)
serialize
in class SourceEditor.SourcePrefHelper
public SourceEntry deserialize(Map<String,String> s)
deserialize
in class SourceEditor.SourcePrefHelper