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:
ActionListener,Serializable,Cloneable,EventListener,Action,Destroyable
Nice about screen.
The REVISION resource is read and if present, it shows the revision information of the jar-file.
- See Also:
-
Nested Class Summary
Nested ClassesNested 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
scFields inherited from class javax.swing.AbstractAction
changeSupport, enabledFields 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 -
Method Summary
Modifier and TypeMethodDescriptionvoidprivate static voidaddInstallationLine(JPanel inst, String dir, String source) Add line to installation details showing symbolic name used in status report and actual directory.(package private) JPanelprivate static JLabelcreateImageLink(String tooltip, String icon, String link) private static JScrollPanecreateScrollPane(JosmTextArea area) private static voiddisplayErrorMessage(JTextArea ta, String msg) private static Stringprivate voidsetTextFromResourceFile(JTextArea ta, 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, waitFutureMethods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
Constructor Details
-
AboutAction
public AboutAction()Constructs a newAboutAction.
-
-
Method Details
-
buildAboutPanel
-
getPathToPreferences
-
actionPerformed
-
addInstallationLine
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
-
setTextFromResourceFile
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
-
createScrollPane
-