addGroup(group, gridbag, c);
for (Enumeration<IOption> j = group.getOptions(); j
.hasMoreElements();) {
IOption option = j.nextElement();
if(entity instanceof GunEmplacement) {
continue;
}
// a bunch of stuf should get disabled for conv infantry
if (((entity instanceof Infantry && !(entity instanceof BattleArmor)))
&& (option.getName().equals("vdni")
|| option.getName().equals("bvdni"))) {
continue;
}
//a bunch of stuff should get disabled for all but conventional infantry
if(!(entity instanceof Infantry && !(entity instanceof BattleArmor))
&& (option.getName().equals("grappler")
|| option.getName().equals("pl_masc")
|| option.getName().equals("cyber_eye_im")
|| option.getName().equals("cyber_eye_tele"))) {
continue;
}
addOption(option, gridbag, c, editable);
}