Class: Registration::UI::AddonSelectionReregistrationDialog

Inherits:
AddonSelectionBaseDialog show all
Defined in:
src/lib/registration/ui/addon_selection_reregistration_dialog.rb

Overview

this class displays and runs the dialog with addon selection

Constant Summary

Constants inherited from AddonSelectionBaseDialog

Registration::UI::AddonSelectionBaseDialog::FILTER_BETAS_INITIALLY

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from AddonSelectionBaseDialog

#addon_widget_id, #filter_beta_releases

Constructor Details

#initialize(registration) ⇒ AddonSelectionReregistrationDialog

constructor


21
22
23
24
25
26
27
28
29
30
# File 'src/lib/registration/ui/addon_selection_reregistration_dialog.rb', line 21

def initialize(registration)
  textdomain "registration"

  super(registration)

  # filter out the unregistered addons
  @all_addons.select!(&:registered?)

  log.info "Registered addons: #{@all_addons}"
end

Class Method Details

.run(registration) ⇒ Symbol

display and run the dialog with addon selection


13
14
15
16
# File 'src/lib/registration/ui/addon_selection_reregistration_dialog.rb', line 13

def self.run(registration)
  dialog = AddonSelectionReregistrationDialog.new(registration)
  dialog.run
end

Instance Method Details

#runSymbol

display the extension selection dialog and wait for a button click


34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# File 'src/lib/registration/ui/addon_selection_reregistration_dialog.rb', line 34

def run
  Wizard.SetContents(
    # dialog title
    _("Extension and Module Re-registration"),
    content,
    # help text (1/3)
    _("<p>Here you can select extensions and modules which will be "\
        "registered again.</p>") + generic_help_text,
    # always enable Back/Next, the dialog cannot be the first in workflow
    true,
    true
  )

  handle_dialog
end