org.openstreetmap.josm.actions
Class OpenLocationAction

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

public class OpenLocationAction
extends JosmAction

Open an URL input dialog and load data from the given URL.

See Also:
Serialized Form

Field Summary
protected  java.util.List<java.lang.Class<? extends DownloadTask>> downloadTasks
           
 
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
OpenLocationAction()
          Create an open action.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 boolean addDownloadTaskClass(java.lang.Class<? extends DownloadTask> taskClass)
           
 void openUrl(boolean new_layer, java.lang.String url)
          Open the given URL.
protected  void remindUploadAddressHistory(HistoryComboBox cbHistory)
          Remind the current history in the preferences
protected  void restoreUploadAddressHistory(HistoryComboBox cbHistory)
          Restore the current history from the preferences
 
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
 

Field Detail

downloadTasks

protected final java.util.List<java.lang.Class<? extends DownloadTask>> downloadTasks
Constructor Detail

OpenLocationAction

public OpenLocationAction()
Create an open action. The name is "Open a file".

Method Detail

restoreUploadAddressHistory

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

Parameters:
cbHistory -

remindUploadAddressHistory

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

Parameters:
cbHistory -

actionPerformed

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

openUrl

public void openUrl(boolean new_layer,
                    java.lang.String url)
Open the given URL.


addDownloadTaskClass

public boolean addDownloadTaskClass(java.lang.Class<? extends DownloadTask> taskClass)


JOSM