public class PurgeAction extends JosmAction
| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
PurgeAction.SelectionForcedPrimitiveRenderer
force selection to be active for all entries
|
JosmAction.ActiveLayerChangeAdapter, JosmAction.LayerChangeAdapter, JosmAction.SelectionChangeAdapter| Modifier and Type | Field and Description |
|---|---|
protected javax.swing.JCheckBox |
cbClearUndoRedo |
protected OsmDataLayer |
layer |
protected boolean |
modified |
protected java.util.List<OsmPrimitive> |
toPurgeAdditionally
Subset of toPurgeChecked.
|
sc| Constructor and Description |
|---|
PurgeAction()
Constructs a new
PurgeAction. |
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent e) |
private javax.swing.JPanel |
buildPanel(boolean modified) |
PurgeCommand |
getPurgeCommand(java.util.Collection<OsmPrimitive> sel)
Creates command to purge selected OSM primitives.
|
protected void |
updateEnabledState()
Override in subclasses to update the enabled state of the action when
something in the JOSM state changes, i.e.
|
protected void |
updateEnabledState(java.util.Collection<? extends OsmPrimitive> selection)
Override in subclasses to update the enabled state of the action if the
collection of selected primitives changes.
|
buildActiveLayerChangeAdapter, buildLayerChangeAdapter, checkAndConfirmOutlyingOperation, destroy, getLayerManager, getShortcut, initEnabledState, installAdapters, listenToLayerChange, listenToSelectionChange, setHelpId, setTooltip, updateEnabledStateOnCurrentSelection, updateEnabledStateOnCurrentSelection, updateEnabledStateOnModifiableSelection, waitFutureprotected transient OsmDataLayer layer
protected javax.swing.JCheckBox cbClearUndoRedo
protected boolean modified
protected transient java.util.List<OsmPrimitive> toPurgeAdditionally
public PurgeAction()
PurgeAction.public void actionPerformed(java.awt.event.ActionEvent e)
public PurgeCommand getPurgeCommand(java.util.Collection<OsmPrimitive> sel)
sel - selected OSM primitivesprivate javax.swing.JPanel buildPanel(boolean modified)
protected void updateEnabledState()
JosmActionJosmAction.updateEnabledState(Collection) to respond to changes in the collection
of selected primitives.
Default behavior is empty.updateEnabledState in class JosmActionJosmAction.updateEnabledState(Collection),
JosmAction.initEnabledState(),
JosmAction.listenToLayerChange()protected void updateEnabledState(java.util.Collection<? extends OsmPrimitive> selection)
JosmActionupdateEnabledState in class JosmActionselection - the collection of selected primitives; may be empty, but not nullJosmAction.updateEnabledState(),
JosmAction.initEnabledState(),
JosmAction.listenToSelectionChange()