for (Enumeration<EquipmentMode> e = m.getType().getModes(); e
.hasMoreElements();) {
EquipmentMode em = e.nextElement();
m_chMode.addItem(em.getDisplayableName());
}
m_chMode.setSelectedItem(m.curMode().getDisplayableName());
} else {
CriticalSlot cs = getSelectedCritical();
if ((cs != null) && (cs.getType() == CriticalSlot.TYPE_SYSTEM)) {
if ((cs.getIndex() == Mech.SYSTEM_COCKPIT)
&& en.hasEiCockpit() && (en instanceof Mech)) {