if(updating) return;  int index = getSelectedIndex(); Buffer buffer = jEdit.getFirstBuffer(); while(buffer != null) { if(index == 0) break; buffer = buffer.getNext(); index--; }  if(getComponentCount() == 0)
if(updating || getComponentCount() == 0)
		public void stateChanged(ChangeEvent evt)		{			if(updating)				return;			int index = getSelectedIndex();			Buffer buffer = jEdit.getFirstBuffer();			while(buffer != null)			{				if(index == 0)					break;				buffer = buffer.getNext();				index--;			}			if(getComponentCount() == 0)				return;			Magic comp = (Magic)getSelectedComponent();			if(comp != null)				comp.select();		}