if (option.getName().equals("vacuum")) { for ( Enumeration i = optionComps.elements(); i.hasMoreElements(); ) { DialogOptionComponent comp_i = (DialogOptionComponent)i.nextElement(); if (comp_i.option.getName().equals("fire")) { comp_i.setEditable(!state); comp_i.setState(false); } } }
    public void optionClicked(DialogOptionComponent comp, IOption option, boolean state) {        if (option.getName().equals("inf_move_even")) { //$NON-NLS-1$            for ( Enumeration i = optionComps.elements(); i.hasMoreElements(); ) {                DialogOptionComponent comp_i = (DialogOptionComponent)i.nextElement();                if (comp_i.option.getName().equals("inf_deploy_even")) { //$NON-NLS-1$                    comp_i.setEditable(state);                    comp_i.setState(false);                }                if (comp_i.option.getName().equals("inf_move_multi")) { //$NON-NLS-1$                    comp_i.setEditable(!state);                }                if (comp_i.option.getName().equals("inf_move_later")) { //$NON-NLS-1$                    comp_i.setEditable(!state);                }            }        }        if (option.getName().equals("inf_move_multi")) { //$NON-NLS-1$            for ( Enumeration i = optionComps.elements(); i.hasMoreElements(); ) {                DialogOptionComponent comp_i = (DialogOptionComponent)i.nextElement();                if (comp_i.option.getName().equals("inf_move_even")) { //$NON-NLS-1$                    comp_i.setEditable(!state);                }                if (comp_i.option.getName().equals("inf_move_later")) { //$NON-NLS-1$                    comp_i.setEditable(!state);                }            }        }        if (option.getName().equals("inf_move_later")) { //$NON-NLS-1$            for ( Enumeration i = optionComps.elements(); i.hasMoreElements(); ) {                DialogOptionComponent comp_i = (DialogOptionComponent)i.nextElement();                if (comp_i.option.getName().equals("inf_move_even")) { //$NON-NLS-1$                    comp_i.setEditable(!state);                }                if (comp_i.option.getName().equals("inf_move_multi")) { //$NON-NLS-1$                    comp_i.setEditable(!state);                }            }        }        if (option.getName().equals("protos_move_even")) { //$NON-NLS-1$            for ( Enumeration i = optionComps.elements(); i.hasMoreElements(); ) {                DialogOptionComponent comp_i = (DialogOptionComponent)i.nextElement();                if (comp_i.option.getName().equals("protos_deploy_even")) { //$NON-NLS-1$                    comp_i.setEditable(state);                    comp_i.setState(false);                }                if (comp_i.option.getName().equals("protos_move_multi")) { //$NON-NLS-1$                    comp_i.setEditable(!state);                }                if (comp_i.option.getName().equals("protos_move_later")) { //$NON-NLS-1$                    comp_i.setEditable(!state);                }            }        }        if (option.getName().equals("protos_move_multi")) { //$NON-NLS-1$            for ( Enumeration i = optionComps.elements(); i.hasMoreElements(); ) {                DialogOptionComponent comp_i = (DialogOptionComponent)i.nextElement();                if (comp_i.option.getName().equals("protos_move_even")) { //$NON-NLS-1$                    comp_i.setEditable(!state);                }                if (comp_i.option.getName().equals("protos_move_later")) { //$NON-NLS-1$                    comp_i.setEditable(!state);                }            }        }        if (option.getName().equals("protos_move_later")) { //$NON-NLS-1$            for ( Enumeration i = optionComps.elements(); i.hasMoreElements(); ) {                DialogOptionComponent comp_i = (DialogOptionComponent)i.nextElement();                if (comp_i.option.getName().equals("protos_move_even")) { //$NON-NLS-1$                    comp_i.setEditable(!state);                }                if (comp_i.option.getName().equals("protos_move_multi")) { //$NON-NLS-1$                    comp_i.setEditable(!state);                }            }        }    }