Class 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
    • Field Detail

      • ACTION_DESCRIPTION

        public static final java.lang.String ACTION_DESCRIPTION
        Localized description text for this action
    • 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)
      • 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)