org.openstreetmap.josm.actions
Class OpenLocationAction
java.lang.Object
javax.swing.AbstractAction
org.openstreetmap.josm.actions.JosmAction
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
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 |
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 |
downloadTasks
protected final java.util.List<java.lang.Class<? extends DownloadTask>> downloadTasks
OpenLocationAction
public OpenLocationAction()
- Create an open action. The name is "Open a file".
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