[izpack-changes] r1643 - in izpack-src/branches/branch-3.9: . src/lib/com/izforge/izpack/installer src/lib/com/izforge/izpack/panels
noreply at berlios.de
noreply at berlios.de
Tue Nov 21 10:56:50 CET 2006
Author: jponge
Date: 2006-11-21 10:56:47 +0100 (Tue, 21 Nov 2006)
New Revision: 1643
Modified:
izpack-src/branches/branch-3.9/Versions.txt
izpack-src/branches/branch-3.9/src/lib/com/izforge/izpack/installer/IzPanel.java
izpack-src/branches/branch-3.9/src/lib/com/izforge/izpack/panels/UserInputPanel.java
Log:
UserInputPanel: strings customization based on the panel instance number (Stefan Wachter, via Julien Ponge)
Modified: izpack-src/branches/branch-3.9/Versions.txt
===================================================================
--- izpack-src/branches/branch-3.9/Versions.txt 2006-11-21 09:50:08 UTC (rev 1642)
+++ izpack-src/branches/branch-3.9/Versions.txt 2006-11-21 09:56:47 UTC (rev 1643)
@@ -4,7 +4,8 @@
- Fixed the DesktopShortcutCheckboxEnabled Builtin Variable in docu (Fabrice Mirabile)
- Fixed build.xml (PathSelectionPanel without using TargetPanel) (Fabrice Mirabile)
-- UserInputPanel multiline label fix (Vladimir Ralev, JBoss/RedHat)
+- UserInputPanel multiline label fix (Vladimir Ralev @JBoss/RedHat, via Julien Ponge)
+- UserInputPanel: strings customization based on the panel instance number (Stefan Wachter, via Julien Ponge)
> 3.9.0 (build 2006.09.25)
Modified: izpack-src/branches/branch-3.9/src/lib/com/izforge/izpack/installer/IzPanel.java
===================================================================
--- izpack-src/branches/branch-3.9/src/lib/com/izforge/izpack/installer/IzPanel.java 2006-11-21 09:50:08 UTC (rev 1642)
+++ izpack-src/branches/branch-3.9/src/lib/com/izforge/izpack/installer/IzPanel.java 2006-11-21 09:56:47 UTC (rev 1643)
@@ -461,12 +461,19 @@
Class clazz = this.getClass();
while (retval == null && !clazz.getName().endsWith(".IzPanel"))
{
+ int instanceNumber = getInstanceNumber();
+ if (instanceNumber != -1) {
+ retval = getI18nStringForClass(clazz.getName(), subkey + "." + instanceNumber, null);
+ if (retval != null) return retval;
+ }
retval = getI18nStringForClass(clazz.getName(), subkey, null);
clazz = clazz.getSuperclass();
}
return (retval);
}
+ protected int getInstanceNumber() { return -1; }
+
/**
* Calls the langpack of parent InstallerFrame for the String <tt>RuntimeClassName.subkey</tt>.
* Do not add a point infront of subkey, it is always added in this method.
Modified: izpack-src/branches/branch-3.9/src/lib/com/izforge/izpack/panels/UserInputPanel.java
===================================================================
--- izpack-src/branches/branch-3.9/src/lib/com/izforge/izpack/panels/UserInputPanel.java 2006-11-21 09:50:08 UTC (rev 1642)
+++ izpack-src/branches/branch-3.9/src/lib/com/izforge/izpack/panels/UserInputPanel.java 2006-11-21 09:56:47 UTC (rev 1643)
@@ -475,6 +475,8 @@
}
}
+ protected int getInstanceNumber() { return instanceNumber; }
+
/*--------------------------------------------------------------------------*/
/**
* Indicates wether the panel has been validated or not. The installer won't let the user go
More information about the izpack-changes
mailing list