...
Now you have to create and include a class implementing the 'PackValidator' interface (Refer to IZPACK-1233):
Code Block |
---|
package my; import com.izforge.izpack.installer.InstallData; import com.izforge.izpack.panels.treepacks.PackValidator; import com.izforge.izpack.api.handler.AbstractUIHandler; public class Validatorclass implements PackValidator { public boolean validate(AbstractUIHandler handler, InstallData idata, String packsId, boolean isSelected) { [ your validation code here ] return false; // returns to the pack selection without further notice return true; // passes on to the next defined validator for this pack } } |
...