Class AboutAction

  • All Implemented Interfaces:
    java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action, Destroyable

    public final class AboutAction
    extends JosmAction
    Nice about screen. The REVISION resource is read and if present, it shows the revision information of the jar-file.
    See Also:
    Serialized Form
    • Constructor Detail

      • AboutAction

        public AboutAction()
        Constructs a new AboutAction.
    • Method Detail

      • actionPerformed

        public void actionPerformed​(java.awt.event.ActionEvent e)
      • addInstallationLine

        private static void addInstallationLine​(javax.swing.JPanel inst,
                                                java.lang.String dir,
                                                java.lang.String source)
        Add line to installation details showing symbolic name used in status report and actual directory.
        Parameters:
        inst - the panel
        dir - the actual path represented by a symbol
        source - source for symbol
      • createImageLink

        private static javax.swing.JLabel createImageLink​(java.lang.String tooltip,
                                                          java.lang.String icon,
                                                          java.lang.String link)
      • setTextFromResourceFile

        private void setTextFromResourceFile​(javax.swing.JTextArea ta,
                                             java.lang.String filePath)
        Reads the contents of the resource file that is described by the filePath-attribute and puts that text into the JTextArea given by the ta-attribute.
        Parameters:
        ta - the JTextArea to put the files contents into
        filePath - the path where the resource file to read resides
      • displayErrorMessage

        private static void displayErrorMessage​(javax.swing.JTextArea ta,
                                                java.lang.String msg)