Class OverpassWizardRegistration
- java.lang.Object
-
- org.openstreetmap.josm.gui.download.overpass.OverpassWizardRegistration
-
public final class OverpassWizardRegistration extends Object
Registers the overpass query wizards.- Since:
- 13930
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
OverpassWizardRegistration.OverpassWizardCallbacks
-
Field Summary
Fields Modifier and Type Field Description private static List<Function<OverpassWizardRegistration.OverpassWizardCallbacks,Action>>
wizards
A list of all registered wizards.
-
Constructor Summary
Constructors Modifier Constructor Description private
OverpassWizardRegistration()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<Action>
getWizards(OverpassWizardRegistration.OverpassWizardCallbacks callbacks)
Gets all wizards that are currently registered.static void
registerWizard(Function<OverpassWizardRegistration.OverpassWizardCallbacks,Action> wizard)
Registers a wizard to be added to the overpass download dialog
-
-
-
Field Detail
-
wizards
private static final List<Function<OverpassWizardRegistration.OverpassWizardCallbacks,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(Function<OverpassWizardRegistration.OverpassWizardCallbacks,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 List<Action> getWizards(OverpassWizardRegistration.OverpassWizardCallbacks callbacks)
Gets all wizards that are currently registered.- Parameters:
callbacks
- wizard callbacks- Returns:
- The list of wizards.
-
-