java.lang.Object
javax.swing.AbstractAction
org.openstreetmap.josm.gui.dialogs.properties.HelpAction
All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action
Direct Known Subclasses:
HelpMembershipAction, HelpTagAction

public abstract class HelpAction extends AbstractAction
Launch browser with wiki help for selected object.
Since:
13521
See Also:
  • Constructor Details

    • HelpAction

      protected HelpAction()
      Constructs a new HelpAction.
  • Method Details

    • getKeyStroke

      public static KeyStroke getKeyStroke()
      Returns the keystroke launching this action (F1 by default).
      Returns:
      the keystroke launching this action
    • actionPerformed

      public void actionPerformed(ActionEvent e)
    • displayTagHelp

      public static void displayTagHelp(String key, String val)
      Displays the most specific wiki page for the given key/value.
      Parameters:
      key - Key
      val - Value
      Since:
      14208
    • displayRelationHelp

      public static void displayRelationHelp(IRelation<?> rel)
      Displays the most specific wiki page for the given relation.
      Parameters:
      rel - Relation
      Since:
      14208
    • displayGenericHelp

      public static void displayGenericHelp()
      Displays the localized Map Features.
      Since:
      14208
    • displayHelp

      public static void displayHelp(List<String> pages)
      Display help by opening the first existing wiki page in the given list.
      Parameters:
      pages - list of wiki page names to test
      Since:
      14208