com.izforge.izpack.installer.util
Class PackHelper
java.lang.Object
com.izforge.izpack.installer.util.PackHelper
public class PackHelper
- extends Object
Pack helper methods.
- Author:
- Tim Anderson
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PackHelper
public PackHelper()
getPackName
public static String getPackName(Pack pack,
Messages messages)
- Returns a localised name for a pack.
This uses
Pack.getLangPackId() to locate the localised name for the pack.
If no localised name exists, Pack.getName() will be returned.
- Parameters:
pack - the packmessages - the messages. May be null
- Returns:
- the pack name
getPackDescription
public static String getPackDescription(Pack pack,
Messages messages)
- Returns a localised description for a pack.
This uses
"<langPackId>.description" to locate the localised name for the pack.
If no localised description exists, Pack.getDescription() wil be returned.
- Parameters:
pack - the packmessages - the messages. May be null
- Returns:
- the pack description. May be
null
Copyright © 2018. All rights reserved.