for (Enumeration e = uniqueWeapons.keys(); e.hasMoreElements(); ) { optionComp.addValue((String)e.nextElement());
for (String name:uniqueWeapons) { optionComp.addValue(name);
    private void addOption(IOption option, GridBagLayout gridbag, GridBagConstraints c, boolean editable) {        DialogOptionComponent optionComp = new DialogOptionComponent(this, option, editable);        if (option.getName().equals("weapon_specialist")) { //$NON-NLS-1$            optionComp.addValue(Messages.getString("CustomMechDialog.None")); //$NON-NLS-1$            Hashtable uniqueWeapons = new Hashtable();            for (int i = 0; i < entity.getWeaponList().size(); i++) {                Mounted m = entity.getWeaponList().get(i);                uniqueWeapons.put(m.getName(),new Boolean(true));            }            for (Enumeration e = uniqueWeapons.keys(); e.hasMoreElements(); ) {                optionComp.addValue((String)e.nextElement());            }            optionComp.setSelected(option.stringValue());        }                gridbag.setConstraints(optionComp, c);        panOptions.add(optionComp);                optionComps.addElement(optionComp);    }