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:
java.awt.event.ActionListener
,java.io.Serializable
,java.lang.Cloneable
,java.util.EventListener
,javax.swing.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 java.lang.String
ACTION_DESCRIPTION
Localized description text for this action-
Fields inherited from class org.openstreetmap.josm.actions.JosmAction
sc
-
-
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(java.awt.event.ActionEvent e)
private static void
appendCollection(java.io.PrintWriter text, java.lang.String label, java.util.Collection<java.lang.String> col)
(package private) static java.util.Map<java.lang.String,java.lang.String>
getAnonimicDirectorySymbolMap()
Fill map with anonymized name to the actual used path.private static java.util.Collection<java.lang.String>
getCustomUrls(SourcePrefHelper helper)
static java.lang.String
getReportHeader()
Replies the report header (software and system info)(package private) static java.lang.String
paramCleanup(java.lang.String param)
Shortens and removes private information from a parameter used for status report.private static java.util.List<java.lang.String>
paramCleanup(java.util.Collection<java.lang.String> params)
private static java.lang.String
paramReplace(java.lang.String str, java.lang.String target, java.lang.String replacement)
private static java.lang.String
toString(java.awt.Dimension dimension)
private static java.lang.String
valueCleanup(java.lang.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 java.lang.String ACTION_DESCRIPTION
Localized description text for this action
-
-
Constructor Detail
-
ShowStatusReportAction
public ShowStatusReportAction()
Constructs a newShowStatusReportAction
-
-
Method Detail
-
getReportHeader
public static java.lang.String getReportHeader()
Replies the report header (software and system info)- Returns:
- The report header (software and system info)
-
toString
private static java.lang.String toString(java.awt.Dimension dimension)
-
getCustomUrls
private static java.util.Collection<java.lang.String> getCustomUrls(SourcePrefHelper helper)
-
paramCleanup
private static java.util.List<java.lang.String> paramCleanup(java.util.Collection<java.lang.String> params)
-
getAnonimicDirectorySymbolMap
static java.util.Map<java.lang.String,java.lang.String> getAnonimicDirectorySymbolMap()
Fill map with anonymized name to the actual used path.- Returns:
- map that maps shortened name to full directory path
-
paramCleanup
static java.lang.String paramCleanup(java.lang.String param)
Shortens and removes private information from a parameter used for status report.- Parameters:
param
- parameter to cleanup- Returns:
- shortened/anonymized parameter
-
paramReplace
private static java.lang.String paramReplace(java.lang.String str, java.lang.String target, java.lang.String replacement)
-
appendCollection
private static void appendCollection(java.io.PrintWriter text, java.lang.String label, java.util.Collection<java.lang.String> col)
-
valueCleanup
private static java.lang.String valueCleanup(java.lang.Object value)
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
-
-