invisibleModeItem.setEnabled(getMode()!=OutLink.INVISIBLE_MODE);
invisibleModeItem.setEnabled(getMode()!=OutLink.INVISIBLE_MODE && getInput()!=null && (getOutput()==null || getOutput().getMode()!=OutLink.INVISIBLE_MODE));
public java.util.Vector getItems() {	Vector items = new Vector();	ActionListener al = createPopupmenuHandler();	JMenuItem descItem = new JMenuItem(descriptionString);descItem.setEnabled(false); //!!!	descItem.addActionListener(al);	items.addElement(descItem);	JMenuItem addItem = new JMenuItem(addConnectorString);	addItem.addActionListener(al);	items.addElement(addItem);		JMenuItem removeItem = new JMenuItem(removeConnectorString);	removeItem.addActionListener(al);	items.addElement(removeItem);		// modes	items.addElement(new JSeparator());		JMenu modeMenu = new JMenu(modeString);	items.addElement(modeMenu);	JRadioButtonMenuItem normalModeItem = new JRadioButtonMenuItem(normalString, getMode()==OutLink.NORMAL_MODE);	normalModeItem.setEnabled(getMode()!=OutLink.NORMAL_MODE);	normalModeItem.addActionListener(al);	modeMenu.add(normalModeItem);	JRadioButtonMenuItem invisibleModeItem = new JRadioButtonMenuItem(invisibleString, getMode()==OutLink.INVISIBLE_MODE);	invisibleModeItem.setEnabled(getMode()!=OutLink.INVISIBLE_MODE);		// what is input is output and also invisible!	invisibleModeItem.addActionListener(al);	modeMenu.add(invisibleModeItem);		modeMenu.add(new JSeparator());		JRadioButtonMenuItem inputModeItem = new JRadioButtonMenuItem(inputString, getMode()==OutLink.EXTERNAL_INPUT_MODE);	inputModeItem.setEnabled(getMode()!=OutLink.EXTERNAL_INPUT_MODE);	inputModeItem.addActionListener(al);	modeMenu.add(inputModeItem);	JRadioButtonMenuItem outputModeItem = new JRadioButtonMenuItem(outputString, getMode()==OutLink.EXTERNAL_OUTPUT_MODE);	outputModeItem.setEnabled(getMode()!=OutLink.EXTERNAL_OUTPUT_MODE);	outputModeItem.addActionListener(al);	modeMenu.add(outputModeItem);	return items;}