org.openstreetmap.josm.actions
Class DownloadPrimitiveAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by org.openstreetmap.josm.actions.JosmAction
          extended by org.openstreetmap.josm.actions.DownloadPrimitiveAction
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action, Destroyable

public class DownloadPrimitiveAction
extends JosmAction

Download an OsmPrimitive by specifying type and ID

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.openstreetmap.josm.actions.JosmAction
sc
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
DownloadPrimitiveAction()
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
static void processItems(boolean newLayer, java.util.List<PrimitiveId> ids, boolean downloadReferrers, boolean full)
           
protected  void remindPrimitivesHistory(HistoryComboBox cbHistory)
          Remind the current history in the preferences
private static ExtendedDialog reportProblemDialog(java.util.Set<PrimitiveId> errs, java.lang.String TITLE, java.lang.String TEXT, java.lang.String LIST_LABEL, int msgType)
           
protected  void restorePrimitivesHistory(HistoryComboBox cbHistory)
          Restore the current history from the preferences
private  void tryToPasteFromClipboard(OsmIdTextField tfId, OsmPrimitiveTypesComboBox cbType)
           
 
Methods inherited from class org.openstreetmap.josm.actions.JosmAction
destroy, getCurrentDataSet, getEditLayer, getShortcut, initEnabledState, installAdapters, setTooltip, updateEnabledState, updateEnabledState
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DownloadPrimitiveAction

public DownloadPrimitiveAction()
Method Detail

restorePrimitivesHistory

protected void restorePrimitivesHistory(HistoryComboBox cbHistory)
Restore the current history from the preferences

Parameters:
cbHistory -

remindPrimitivesHistory

protected void remindPrimitivesHistory(HistoryComboBox cbHistory)
Remind the current history in the preferences

Parameters:
cbHistory -

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)

processItems

public static void processItems(boolean newLayer,
                                java.util.List<PrimitiveId> ids,
                                boolean downloadReferrers,
                                boolean full)
Parameters:
newLayer - if the data should be downloaded into a new layer
ids -
downloadReferrers - if the referrers of the object should be downloaded as well, i.e., parent relations, and for nodes, additionally, parent ways
full - if the members of a relation should be downloaded as well

reportProblemDialog

private static ExtendedDialog reportProblemDialog(java.util.Set<PrimitiveId> errs,
                                                  java.lang.String TITLE,
                                                  java.lang.String TEXT,
                                                  java.lang.String LIST_LABEL,
                                                  int msgType)

tryToPasteFromClipboard

private void tryToPasteFromClipboard(OsmIdTextField tfId,
                                     OsmPrimitiveTypesComboBox cbType)


JOSM