Package org.openstreetmap.josm.actions
Class AboutAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- org.openstreetmap.josm.actions.JosmAction
-
- org.openstreetmap.josm.actions.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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classAboutAction.OpenDirAction-
Nested classes/interfaces inherited from class org.openstreetmap.josm.actions.JosmAction
JosmAction.ActiveLayerChangeAdapter, JosmAction.LayerChangeAdapter, JosmAction.SelectionChangeAdapter
-
-
Field Summary
-
Fields inherited from class org.openstreetmap.josm.actions.JosmAction
sc
-
-
Constructor Summary
Constructors Constructor Description AboutAction()Constructs a newAboutAction.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactionPerformed(java.awt.event.ActionEvent e)private static voidaddInstallationLine(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.(package private) javax.swing.JPanelbuildAboutPanel()private static javax.swing.JLabelcreateImageLink(java.lang.String tooltip, java.lang.String icon, java.lang.String link)private static javax.swing.JScrollPanecreateScrollPane(JosmTextArea area)private static voiddisplayErrorMessage(javax.swing.JTextArea ta, java.lang.String msg)private static java.lang.StringgetPathToPreferences()private voidsetTextFromResourceFile(javax.swing.JTextArea ta, java.lang.String filePath)Reads the contents of the resource file that is described by thefilePath-attribute and puts that text into theJTextAreagiven by theta-attribute.-
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
-
-
-
-
Constructor Detail
-
AboutAction
public AboutAction()
Constructs a newAboutAction.
-
-
Method Detail
-
buildAboutPanel
javax.swing.JPanel buildAboutPanel()
-
getPathToPreferences
private static java.lang.String getPathToPreferences()
-
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 paneldir- the actual path represented by a symbolsource- 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 thefilePath-attribute and puts that text into theJTextAreagiven by theta-attribute.- Parameters:
ta- theJTextAreato put the files contents intofilePath- the path where the resource file to read resides
-
displayErrorMessage
private static void displayErrorMessage(javax.swing.JTextArea ta, java.lang.String msg)
-
createScrollPane
private static javax.swing.JScrollPane createScrollPane(JosmTextArea area)
-
-