|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openstreetmap.josm.command.PseudoCommand
org.openstreetmap.josm.command.Command
org.openstreetmap.josm.command.PurgeCommand
public class PurgeCommand
Command, to purge a list of primitives.
| Field Summary | |
|---|---|
protected DataSet |
ds
|
protected Storage<PrimitiveData> |
makeIncompleteData
|
protected java.util.Map<PrimitiveId,PrimitiveData> |
makeIncompleteData_byPrimId
|
protected java.util.List<OsmPrimitive> |
toPurge
|
| Constructor Summary | |
|---|---|
PurgeCommand(OsmDataLayer layer,
java.util.Collection<OsmPrimitive> toPurge,
java.util.Collection<OsmPrimitive> makeIncomplete)
This command relies on a number of consistency conditions: - makeIncomplete must be a subset of toPurge. |
|
| Method Summary | |
|---|---|
boolean |
executeCommand()
Executes the command on the dataset. |
void |
fillModifiedData(java.util.Collection<OsmPrimitive> modified,
java.util.Collection<OsmPrimitive> deleted,
java.util.Collection<OsmPrimitive> added)
Fill in the changed data this command operates on. |
javax.swing.Icon |
getDescriptionIcon()
Provides a descriptive icon of this command. |
java.lang.String |
getDescriptionText()
Provides a description text representing this command. |
java.util.Collection<? extends OsmPrimitive> |
getParticipatingPrimitives()
Return the primitives that take part in this command. |
protected void |
saveIncomplete(java.util.Collection<OsmPrimitive> makeIncomplete)
|
static java.util.List<OsmPrimitive> |
topoSort(java.util.Collection<OsmPrimitive> sel)
Sorts a collection of primitives such that for each object its referrers come later in the sorted collection. |
void |
undoCommand()
Undoes the command. |
| Methods inherited from class org.openstreetmap.josm.command.Command |
|---|
checkAndConfirmOutlyingOperation, getLayer, getOrig, invalidBecauselayerRemoved |
| Methods inherited from class org.openstreetmap.josm.command.PseudoCommand |
|---|
getChildren |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.List<OsmPrimitive> toPurge
protected Storage<PrimitiveData> makeIncompleteData
protected java.util.Map<PrimitiveId,PrimitiveData> makeIncompleteData_byPrimId
protected final DataSet ds
| Constructor Detail |
|---|
public PurgeCommand(OsmDataLayer layer,
java.util.Collection<OsmPrimitive> toPurge,
java.util.Collection<OsmPrimitive> makeIncomplete)
| Method Detail |
|---|
protected void saveIncomplete(java.util.Collection<OsmPrimitive> makeIncomplete)
public boolean executeCommand()
Command
executeCommand in class Commandpublic void undoCommand()
Command
undoCommand in class Commandpublic static java.util.List<OsmPrimitive> topoSort(java.util.Collection<OsmPrimitive> sel)
public java.lang.String getDescriptionText()
PseudoCommand
getDescriptionText in class PseudoCommandpublic javax.swing.Icon getDescriptionIcon()
PseudoCommand
getDescriptionIcon in class PseudoCommandpublic java.util.Collection<? extends OsmPrimitive> getParticipatingPrimitives()
Command
getParticipatingPrimitives in class Command
public void fillModifiedData(java.util.Collection<OsmPrimitive> modified,
java.util.Collection<OsmPrimitive> deleted,
java.util.Collection<OsmPrimitive> added)
Command
fillModifiedData in class Commandmodified - The modified primitivesdeleted - The deleted primitivesadded - The added primitives
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||