Class OverpassWizardRegistration
- java.lang.Object
-
- org.openstreetmap.josm.gui.download.overpass.OverpassWizardRegistration
-
public final class OverpassWizardRegistration extends java.lang.Object
Registers the overpass query wizards.- Since:
- 13930
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceOverpassWizardRegistration.OverpassWizardCallbacks
-
Field Summary
Fields Modifier and Type Field Description private static java.util.List<java.util.function.Function<OverpassWizardRegistration.OverpassWizardCallbacks,javax.swing.Action>>wizardsA list of all registered wizards.
-
Constructor Summary
Constructors Modifier Constructor Description privateOverpassWizardRegistration()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.List<javax.swing.Action>getWizards(OverpassWizardRegistration.OverpassWizardCallbacks callbacks)Gets all wizards that are currently registered.static voidregisterWizard(java.util.function.Function<OverpassWizardRegistration.OverpassWizardCallbacks,javax.swing.Action> wizard)Registers a wizard to be added to the overpass download dialog
-
-
-
Field Detail
-
wizards
private static final java.util.List<java.util.function.Function<OverpassWizardRegistration.OverpassWizardCallbacks,javax.swing.Action>> wizards
A list of all registered wizards. Needs to be synchronized since plugin registration may happen outside main thread / asynchronously.
-
-
Constructor Detail
-
OverpassWizardRegistration
private OverpassWizardRegistration()
-
-
Method Detail
-
registerWizard
public static void registerWizard(java.util.function.Function<OverpassWizardRegistration.OverpassWizardCallbacks,javax.swing.Action> wizard)
Registers a wizard to be added to the overpass download dialogTo be called by plugins during the JOSM boot process or at least before opening the download dialog for the first time.
- Parameters:
wizard- The wizard to register- Since:
- 13930, 16355 (signature)
-
getWizards
public static java.util.List<javax.swing.Action> getWizards(OverpassWizardRegistration.OverpassWizardCallbacks callbacks)
Gets all wizards that are currently registered.- Parameters:
callbacks- wizard callbacks- Returns:
- The list of wizards.
-
-