JComboBox combo = getObjectComboBox(); if (combo.getItemCount()>0) combo.removeAllItems(); objs = com.cosylab.vdct.DataProvider.getInstance().getInspectable(); Enumeration e = objs.elements(); while (e.hasMoreElements()) { combo.addItem(e.nextElement());
try { updatingList = true;  JComboBox combo = getObjectComboBox(); if (combo.getItemCount()>0) combo.removeAllItems(); objs = com.cosylab.vdct.DataProvider.getInstance().getInspectable(); Enumeration e = objs.elements(); while (e.hasMoreElements()) { combo.addItem(e.nextElement()); } toRemove = null;
public void updateObjectList() {	JComboBox combo = getObjectComboBox();	if (combo.getItemCount()>0) combo.removeAllItems();		// !!!	objs = com.cosylab.vdct.DataProvider.getInstance().getInspectable();	Enumeration e = objs.elements();	while (e.hasMoreElements()) {		combo.addItem(e.nextElement());	}	toRemove = null;}