org.netbeans.modules.i18n.wizard |
I18N Wizards
This package contains two wizards: Internationalization
wizard ("IW") and Test Internationalization wizard ("TIW").
Implementation is based on regular expressions ("RE") matching.
IW gathers from a user a set of files to internationalize
and then identifies using RE hardcoded strings and prepares
in-memory map of HardCodedString s to I18nString s.
User can customize it (remove a mapping or customize default
I18nString ).
TIW gathers from a user a set of files that are RE scanned for
internationalized strings. It extracts internationalizizes string keys
and their bundles (actually user must identify bundles, i.e. one
file cannot use more bundles) and then it scans bundles for the
keys. Any missing keys are reported.
Code Paths
IW I18nWizardAction creates I18nWizardDesctiptor
populated by SourceWizardPanel , ResourceWizardPanel ,
AdditionalWizardPanel and HardStringWizardPanel then
shows it.
TIW I18nTestWizardAction creates I18nWizardDesctiptor
populated by SourceWizardPanel.Panel(true) ,
ResourceWizardPanel.Panel(true)
and TestStringWizardPanel then shows it.
Some panels are self swapping to ProgressWizardPanel see
doLongTimeChanges() methods.
Data Flow
All wizard gathered data are passed using a map class created by
Util . Map content is transferred using wizard settings.
|
Java Source File Name | Type | Comment |
AdditionalWizardPanel.java | Class | WizardDescriptor.Panel used provide additional values modifying if avialble.
E.g. |
HardStringWizardPanel.java | Class | WizardDescriptor.Panel used for to show found hard coded strings
for sepcified sources. |
I18nTestWizardAction.java | Class | Action which runs i18n test wizard. |
I18nWizardAction.java | Class | Action which runs i18n wizard. |
I18nWizardDescriptor.java | Class | Wizard descriptor of i18n wizard and i18n test wizard. |
ProgressWizardPanel.java | Class | Panel to monitor long tasks in i18n wizard. |
ResourceWizardPanel.java | Class | Second panel of I18N Wizard. |
SourceData.java | Class | Object representing source dependent i18n data passed to i18n wizard
descriptor and its panels via readSettings and storeSettings methods. |
SourceWizardPanel.java | Class | First panel used in I18N (test) Wizard. |
TestStringWizardPanel.java | Class | WizardDescriptor.Panel used for to show found missing keys. |
Util.java | Class | Bundle access, ... |