public final class OsmDataManager extends java.lang.Object implements IOsmDataManager
| Modifier and Type | Class and Description |
|---|---|
private static class |
OsmDataManager.InstanceHolder |
| Modifier | Constructor and Description |
|---|---|
private |
OsmDataManager() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsDataSet(DataSet ds)
Determines if the list of data sets managed by JOSM contains
ds. |
DataSet |
getActiveDataSet()
Gets the active data set (can be read-only).
|
DataSet |
getEditDataSet()
Gets the active edit data set (not read-only).
|
java.util.Collection<? extends IPrimitive> |
getInProgressISelection()
Replies the current selected primitives, from a end-user point of view.
|
java.util.Collection<OsmPrimitive> |
getInProgressSelection()
Replies the current selected OSM primitives, from a end-user point of view.
|
static OsmDataManager |
getInstance()
Returns the unique instance.
|
void |
setActiveDataSet(DataSet ds)
Sets the active data set (and also edit data set if not read-only).
|
private OsmDataManager()
public static OsmDataManager getInstance()
public java.util.Collection<OsmPrimitive> getInProgressSelection()
IOsmDataManagerOsmData.getSelected().getInProgressSelection in interface IOsmDataManagernull.public java.util.Collection<? extends IPrimitive> getInProgressISelection()
IOsmDataManagerOsmData.getSelected().getInProgressISelection in interface IOsmDataManagernull.public DataSet getEditDataSet()
IOsmDataManagergetEditDataSet in interface IOsmDataManagernull.IOsmDataManager.getActiveDataSet()public DataSet getActiveDataSet()
IOsmDataManagergetActiveDataSet in interface IOsmDataManagernull.IOsmDataManager.getEditDataSet()public void setActiveDataSet(DataSet ds)
IOsmDataManagersetActiveDataSet in interface IOsmDataManagerds - New data set, or nullpublic boolean containsDataSet(DataSet ds)
IOsmDataManagerds.containsDataSet in interface IOsmDataManagerds - the data set to look fortrue if the list of data sets managed by JOSM contains ds