private static KongaPreferences getPreferences() {
return KongaPreferences.getPreferences(PackingParametersDefiner.class);
}
private JCheckBox createReadOnlySelector() {
JCheckBox cb = new KongaCheckBox(Strings.get("Params.ReadOnly"));
if (project.isDeployable()) {
cb.setToolTipText(Strings.get("Params.ReadOnly.ToolTip"));
} else {
// If the project is already flagged as read-only we do not let the user
// override this setting. Otherwise the user could just create a new jitterpak
// to get around the read-only setting.
cb.setSelected(true);
cb.setEnabled(false);
cb.setToolTipText(Strings.get("Params.ReadOnly.Disabled.ToolTip"));
}
return cb;
}