Package org.openstreetmap.josm.actions
Class ShowStatusReportAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- org.openstreetmap.josm.actions.JosmAction
-
- org.openstreetmap.josm.actions.ShowStatusReportAction
-
- All Implemented Interfaces:
ActionListener
,Serializable
,Cloneable
,EventListener
,Action
,Destroyable
public final class ShowStatusReportAction extends JosmAction
Opens a dialog with useful status information like version numbers for Java, JOSM and plugins Also includes preferences with stripped username and password.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openstreetmap.josm.actions.JosmAction
JosmAction.ActiveLayerChangeAdapter, JosmAction.LayerChangeAdapter, JosmAction.SelectionChangeAdapter
-
-
Field Summary
Fields Modifier and Type Field Description static String
ACTION_DESCRIPTION
Localized description text for this action-
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
Constructors Constructor Description ShowStatusReportAction()
Constructs a newShowStatusReportAction
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
actionPerformed(ActionEvent e)
private static void
appendCollection(PrintWriter text, String label, Collection<String> col)
(package private) static Map<String,String>
getAnonimicDirectorySymbolMap()
Fill map with anonymized name to the actual used path.private static Collection<String>
getCustomUrls(SourcePrefHelper helper)
static String
getReportHeader()
Replies the report header (software and system info)(package private) static String
paramCleanup(String param)
Shortens and removes private informations from a parameter used for status report.private static List<String>
paramCleanup(Collection<String> params)
private static String
paramReplace(String str, String target, String replacement)
private static String
toString(Dimension dimension)
private static String
valueCleanup(Object value)
-
Methods inherited from class org.openstreetmap.josm.actions.JosmAction
buildActiveLayerChangeAdapter, buildLayerChangeAdapter, checkAndConfirmOutlyingOperation, destroy, getLayerManager, getShortcut, initEnabledState, installAdapters, listenToLayerChange, listenToSelectionChange, setHelpId, setToolbarId, setTooltip, updateEnabledState, updateEnabledState, updateEnabledStateOnCurrentSelection, updateEnabledStateOnCurrentSelection, updateEnabledStateOnModifiableSelection, waitFuture
-
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
-
-
-
Field Detail
-
ACTION_DESCRIPTION
public static final String ACTION_DESCRIPTION
Localized description text for this action
-
-
Constructor Detail
-
ShowStatusReportAction
public ShowStatusReportAction()
Constructs a newShowStatusReportAction
-
-
Method Detail
-
getReportHeader
public static String getReportHeader()
Replies the report header (software and system info)- Returns:
- The report header (software and system info)
-
getCustomUrls
private static Collection<String> getCustomUrls(SourcePrefHelper helper)
-
paramCleanup
private static List<String> paramCleanup(Collection<String> params)
-
getAnonimicDirectorySymbolMap
static Map<String,String> getAnonimicDirectorySymbolMap()
Fill map with anonymized name to the actual used path.- Returns:
- map that maps shortened name to full directory path
-
paramCleanup
static String paramCleanup(String param)
Shortens and removes private informations from a parameter used for status report.- Parameters:
param
- parameter to cleanup- Returns:
- shortened/anonymized parameter
-
paramReplace
private static String paramReplace(String str, String target, String replacement)
-
appendCollection
private static void appendCollection(PrintWriter text, String label, Collection<String> col)
-
valueCleanup
private static String valueCleanup(Object value)
-
actionPerformed
public void actionPerformed(ActionEvent e)
-
-